text:
🛑 Harmony Bot Website is down

In 1c00a0b, Harmony Bot Website ($HARMONY_WEB) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Harmony Bot Website is back up in 41c5777.


text:
E2E nice-to-haves around report messaging

From here: https://github.com/navapbc/platform-test-nextjs/pull/93#issuecomment-2515994282

currently the make e2e-test outputs : To open last HTML report run: npx playwright show-report - I think we should also echo at the end of the e2e-test command something like Use make e2e-show-report

e2e-merge-reports and e2e-show-report should have a warning when the corresponding folder is empty

e2e-merge-reports: ## Merge Playwright blob reports from multiple shards into an HTML report
	@if [ -d "./e2e/blob-report" ] && [ "$(ls -A ./e2e/blob-report)" ]; then \
		cd e2e && npm run e2e-merge-reports; \
	else \
		echo "Warning: './e2e/blob-report' folder is either missing or empty. Ensure reports exist before merging."; \
	fi

Original ticket:
From here: https://github.com/navapbc/platform-test-nextjs/pull/93#issuecomment-2515994282

currently the make e2e-test outputs : To open last HTML report run: npx playwright show-report - I think we should also echo at the end of the e2e-test command something like Use make e2e-show-report

e2e-merge-reports and e2e-show-report should have a warning when the corresponding folder is empty

e2e-merge-reports: ## Merge Playwright blob reports from multiple shards into an HTML report
	@if [ -d "./e2e/blob-report" ] && [ "$(ls -A ./e2e/blob-report)" ]; then \
		cd e2e && npm run e2e-merge-reports; \
	else \
		echo "Warning: './e2e/blob-report' folder is either missing or empty. Ensure reports exist before merging."; \
	fi

source: gharchive/issue

repo: navapbc/template-infra

license_type: permissive

license_source: github-api


text:
Test Project Card

Don't delete, testing the GitHub Projects API
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In gravida augue ut consectetur vestibulum. Nam volutpat aliquam ligula, vel faucibus purus semper a. In at nisl lacus.

Ack
On Mon, Aug 5, 2019, 16:47 Craig M. notifications@github.com wrote:

Don't delete, testing the GitHub Projects API
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/navcoin/navcoin-core/issues/580?email_source=notifications&email_token=AAIDAKJNMBMMMJQEB544BVTQC7SI3A5CNFSM4IJI3WCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDKLOIA,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIDAKNZGB7QMDOJ4HPPDKDQC7SI3ANCNFSM4IJI3WCA
.

I think we can close this now?

I think we can close this now?

authors: mxaddict proletesseract

repo: navcoin/navcoin-core

license: MIT


text:
swr test

Man blir litt oppfordret til å gå bort fra getInitialProps så jeg bruker det som unnskylding til å teste ut swr

Fancy og fancy, men bruker nok denne til en del test og læring av ting man ikke har hatt tid til tidligere :-)
Fordelen med små, avgrensede apper

source: gharchive/pull-request


text:
Legg søknaden på ekstern-subdomenet i preprod

💰 Hva forsøker du å løse i denne PR'en
Favro: NAV-20732
Basert på https://github.com/navikt/familie-ef-soknad/pull/1236/
Legger søknadene på ekstern-subdomenet i preprod heller enn intern, slik at de kan brukertestes av folk som ikke er på naisdevice
🔎 Er det noe spesielt du ønsker å fremheve?
Er det noe du er bekymret eller usikker på? Beskriv det gjerne her.
✅ Checklist
Har du husket alle punktene i listen?

[ ] Jeg har testet mine endringer i henhold til akseptansekriteriene/skissene 🕵
[ ] Jeg har testet endringene mine i mobilstørrelse, zoom 200%, skalerer riktig med endret tekststørrelse i browser 📱
[ ] Jeg har skrevet tester. Hvis du ikke har skrevet tester, beskriv hvorfor under 👇
[ ] Jeg har fikset en bug, og skrevet regresjonstest for denne
[ ] Jeg har endret søknadskontrakten og modellversjon i Miljø.ts

Jeg har ikke skrevet tester fordi:
🤷♀ Hvor er det lurt å starte?
F.eks. commit for commit, alt i ett?
💬 Ønsker du en muntlig gjennomgang?

[ ] Ja
[ ] Nei

👀 Screen shots
Har det visuelle endret seg? Legg til før- og etterbilder!

Testet OK på https://familie-ba-soknad.ekstern.dev.nav.no/barnetrygd/soknad/

repo: navikt/familie-ba-soknad


text:
🛑 ESTAT is down

In 343857a, ESTAT (https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/dataflow/ESTAT/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ESTAT is back up in 9c0a5d4.

repo: nbbrd/sdmx-upptime


text:
🛑 NBB is down

In 2853894, NBB (https://stat.nbb.be/restsdmx/sdmx.ashx/GetDataStructure/ALL) was down:

HTTP code: 429
Response time: 635 ms

Resolved: NBB is back up in 3e23078.


text:
🛑 ISTAT is down

In a437429, ISTAT (https://esploradati.istat.it/SDMXWS/rest/dataflow/all/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ISTAT is back up in b922ced.


text:
🛑 ESTAT is down

In c861992, ESTAT (https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/dataflow/ESTAT/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ESTAT is back up in 77f15a3 after 11 minutes.


text:
🛑 NBB is down

In f7641cb, NBB (https://stat.nbb.be/restsdmx/sdmx.ashx/GetDataStructure/ALL) was down:

HTTP code: 429
Response time: 1002 ms

Resolved: NBB is back up in 2fd78a4 after 6 minutes.


text:
🛑 ESTAT is down

In 21fabb8, ESTAT (http://ec.europa.eu/eurostat/SDMX/diss-web/rest/dataflow/ESTAT/all/latest/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ESTAT is back up in e573fb0.


text:
🛑 ISTAT is down

In 5baca9d, ISTAT (https://esploradati.istat.it/SDMXWS/rest/dataflow/all/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ISTAT is back up in 9af259e after 6 minutes.


text:
🛑 ESTAT is down

In e0e6e58, ESTAT (https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/dataflow/ESTAT/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ESTAT is back up in ae01194 after 57 minutes.


text:
🛑 OECD is down

In 7e3c230, OECD (https://sdmx.oecd.org/public/rest/dataflow/all/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: OECD is back up in 8efce58 after 1 hour, 11 minutes.


text:
🛑 ESTAT is down

In 731f31b, ESTAT (https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/dataflow/all/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ESTAT is back up in 02340b5 after 15 minutes.


text:
🛑 ESTAT is down

In 58613cf, ESTAT (https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/dataflow/all/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ESTAT is back up in c301245 after 20 minutes.


text:
🛑 NBB is down

In 678b3dc, NBB (https://stat.nbb.be/restsdmx/sdmx.ashx/GetDataStructure/ALL) was down:

HTTP code: 429
Response time: 566 ms

Resolved: NBB is back up in 24a79b6 after 7 minutes.


text:
🛑 ESTAT is down

In 7e28f9e, ESTAT (https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/dataflow/all/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ESTAT is back up in 5a5e60e after 17 minutes.


text:
🛑 ESTAT is down

In da5c1f1, ESTAT (https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/dataflow/all/all/latest) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ESTAT is back up in c260822 after 6 minutes.


text:
🛑 Forgejo is down

In 7eb4d23, Forgejo (https://git.sucks.win/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Forgejo is back up in 5ba6c88 after 2 hours, 2 minutes.

repo: nbitzz/status


text:
ImportError: No module named Random

Hello im having trouble with executing winpayloads. I just cant install module named Random, was trying to find but i dont find anything
Traceback (most recent call last):
File "./WinPayloads.py", line 2, in
from lib.main import *
File "/root/Winpayloads/lib/main.py", line 20, in
import psexec
File "/root/Winpayloads/lib/psexec.py", line 31, in
from impacket import version, smb
File "/usr/local/lib/python2.7/dist-packages/impacket-0.9.21.dev1+20200325.171015.69fee03f-py2.7.egg/impacket/smb.py", line 54, in
from impacket.krb5.gssapi import KRB5_AP_REQ
File "/usr/local/lib/python2.7/dist-packages/impacket-0.9.21.dev1+20200325.171015.69fee03f-py2.7.egg/impacket/krb5/gssapi.py", line 20, in
from Cryptodome.Hash import HMAC, MD5
File "/usr/local/lib/python2.7/dist-packages/pycryptodomex-3.9.7-py2.7-linux-x86_64.egg/Cryptodome/Hash/HMAC.py", line 39, in
from Cryptodome.Hash import BLAKE2s
File "/usr/local/lib/python2.7/dist-packages/pycryptodomex-3.9.7-py2.7-linux-x86_64.egg/Cryptodome/Hash/BLAKE2s.py", line 35, in
from Cryptodome.Random import get_random_bytes
ImportError: No module named Random

This is likely due to mismatch of some libraries.
I can only suggest try using docker image

docker image

how can i do that if i can ask

This is likely due to mismatch of some libraries.
I can only suggest try using docker image

okay i fix it by deleting python2.7 folder

i think this command can work

pip2 install random

authors: Charliedean Gillkubrus crypter4908394

repo: nccgroup/Winpayloads


text:
Add SSL to API endpoint (freegeoip.net)

See it live: https://freegeoip.net/json/
Remark: FreeGeoIP will be deprecated as of July 1st, 2018. For more information, see:
https://github.com/apilayer/freegeoip#readme

I've setup
https://freegeoip.app

HTTPS (no HTTP, sorry - it's 2018)
Rate limit of 15000/hour as before for FREE, guaranteed
No logs, no analytics - privacy alway in mind

It's the same api - just a different TLD ;) let me know if you have any problems integrating.

authors: fabricecolas freegeoipapp

repo: nchaulet/node-geocoder

license: mit

license_source: bigquery


text:
Updating NAT rules

The prior NAT rules will not work in a ROS VLAN environment. The best way to guarantee that no user will bypass plain text DNS requests is to redirect the traffic flow to the router itself. Still, you can create multiple NAT rules based on the source address / list.

Thank you! I completely missed that redirect existed 😅

authors: ncravino obinoob


text:
No coverage statement

When I use the action to generate a coverage report, it shows
warning: no packages being tested depend on matches for pattern /...
?   	github.com/catalogfi/blockchain/testutil	[no test files]
ok  	github.com/catalogfi/blockchain/btc	78.177s	coverage: [no statements]

It seems it did run the tests, but not sure why there're no statments.
The workflow file is this
The actual action can be found here
I also tried the coverage-file param and it doesn't work
cover: open ./cover.out: no such file or directory

The actual action can be found here

The first one is likely because your repo and module path are different (github.com/catalogfi/blockchain vs. github.com/catalogfi/multichain) and everything gets filtered out by -coverpkg "$(go list)/...". Please confirm.
The second one, I have no idea. I don't use the feature myself. If you could troubleshoot it'd be extremely helpful.

Still got no statements after fixing the module path
Latest action here

It would've been helpful if you'd just run the go test command from the script a checkout of your project.
$ git clone https://github.com/catalogfi/blockchain
$ cd blockchain
$ go test ./... -coverpkg "$(go list)/..." -coverprofile coverage.out

Output:
warning: no packages being tested depend on matches for pattern /...

Digging a little deeper:
$ go list
no Go files in /Users/cruces/Desktop/blockchain

I don't have bandwidth track down your other bug, I'm sorry.

authors: ncruces tok-kkk

repo: ncruces/go-coverage-report


text:
Rclone output - Cleaner for easier parsing.

When filing an issue, please include the following information if possible as well as a description of the problem.  Make sure you test with the latest beta of rclone.
http://beta.rclone.org/
http://rclone.org/downloads/

If you've just got a question or aren't sure if you've found a bug then please use the rclone forum instead of filing an issue.

What is your rclone version (eg output from rclone -V)

Latest

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows

Which cloud storage system are you using? (eg Google Drive)

Any

The command you were trying to run (eg rclone copy /tmp remote:tmp)

It would be nice to have a very minimal output on things like lsd for easy parsing of the output.
While something like this works "rclone.exe lsd remote:| % {($_ -split ' -1')[2]}"
Its a lot of overhead on scripting.

Hi,
This is very nice idea. I know how it is annoying when you have to use sed or python to parse output... To remove whitespace, replace separator and etc...
I would like to work on this issue in this weekend and I have one idea.
I will add flags, which we can use in command ls/lsd/lsl (maybe also in lsjson?).
Example:
--format "nm" --sep ";"
How it works?
In flag --format each char represent one type of informations which will be printed. Order is important.
n - file/dir name
s - size
t - modTime
etc.
and flag --sep will contains information about string, which will be printed between informations (default one space).
For example:

$ rclone lsl drive:
3541475 2017-11-28 09:52:40.042000000 Presentation.pptx
25600 2014-05-19 12:05:49.018000000 Beijing2014.doc
0 2017-11-12 00:01:19.060000000 subdir
0 2006-01-02 01:00:00.000000000 file
248000 2017-11-24 20:37:18.357000000 b/b
13584 2017-11-24 20:53:31.444000000 b/animal.jpg

$ rclone lsl --format "ns" --sep " " drive:
Presentation.pptx 3541475
Beijing2014.doc 25600
subdir 0
file 0
b/b 248000
b/animal.jpg 13584

or

$ rclone lsl --format "ns" --sep "__SEP__" drive:
Presentation.pptx__SEP__3541475
Beijing2014.doc__SEP__25600
subdir__SEP__0
file__SEP__0
b/b__SEP__248000
b/animal.jpg__SEP__13584

Maybe I should implemented this as new function?
For example named it print.
And to better understand my idea, these command will give us almost this same output:

$ rclone ls drive:
$ rclone print --format "sn" --sep "\t"

and

$ rclone lsl drive:
$ rclone print --format "stn" --sep "\t"

I think I will be very easy to use.

authors: justusiv kubatasiemski

repo: ncw/rclone


text:
cache: Not sending info request for cached chunk

Improve cache backend performance.

I'm not sure this is worth doing at most it will save a few cycles and stop contention on the refreshMutex.  Have you measured an improvement with this patch?

rclone always sends an info request to the source remote, regardless of whether the chunk is already cached.
Therefore, access to the cached chunk is delayed by latency between source remote.
This patch prevents this. The difference is noticable when you access already cached chunks.

I wrote a test program for random read performance benchmarks.
Mount cache remote and run
randtest [file to cache mount]
package main

import (
	"log"
	"math/rand"
	"os"
	"time"
)

func check(e error) {
	if e != nil {
		panic(e)
	}
}

func main() {
	var err error
	b := make([]byte, 16384)
	fn := os.Args[1]
	f, err := os.Open(fn)
	check(err)
	fi, err := f.Stat()
	check(err)
	log.Printf(fn)

	start := time.Now()
	fs := fi.Size()
	for i := 0; i < 30; i++ {
		cstart := time.Now()
		of := rand.Int63n(fs)
		_, err = f.Seek(of, 0)
		check(err)
		_, err = f.Read(b)
		check(err)
		celapsed := time.Since(cstart)
		log.Printf("offset %d took %s", of, celapsed)
	}
	f.Close()
	elapsed := time.Since(start)
	log.Printf("took %s", elapsed)
}

Here is my results from 140M file on gdrivecache mount.
Original
1m 8s non cached
42s cached
With #2493
42s non cached
12s cached
With #2493 #2495
32s non cached
0.6s cached

Thanks for doing the test :-)
I was looking at the source of refreshFromSource - I can see I mis-read it now and your change does make a difference.
So it looks like your change is equivalent to calling o.refreshFromSource(false) rather than o.refreshFromSource(true) - would you agree?
// refreshFromSource requests the original FS for the object in case it comes from a cached entry
func (o *Object) refreshFromSource(force bool) error {
	o.refreshMutex.Lock()
	defer o.refreshMutex.Unlock()
	var err error
	var liveObject fs.Object

	if o.Object != nil && !force {
		return nil
	}

@remusb - can you help with this?  Is this sensible or will we miss updates from the source?

Yes. They are equivalent.

@B4dM4n could you take a look at this change?

This looks good to me.
Using o.refresh() is the right way to check for expiration when o.Object != nil.
What I didn't figure out yet is why this change impacts seek performance. Object.Open should only be called once, but it looks like it is called on every seek.
I will investigate this further.

Got it, cache.Object.Open returns a readers.NewLimitedReadCloser not a cache.Object.Handle as I assumed.
This change definitely improves the cache performance.

Thanks for your review @B4dM4n
I'll merge this now then - thank you very much @dcpu for the contribution.

authors: B4dM4n dcpu ncw


text:
recipes-kernel: Bump the SRCREV for linux-linaro-qcomlt_5.14.bb (sa81…

…55p board)
Signed-off-by: Bhupesh Sharma bhupesh.sharma@linaro.org

@bhupesh-sharma the commit message needs to be fixed obviously. Please see previous commits for the typical style.

@bhupesh-sharma the commit message needs to be fixed obviously. Please see previous commits for the typical style.

Done @lumag . Sent a new version.

authors: bhupesh-sharma lumag

repo: ndechesne/meta-qcom


text:
Post to Buzz

Buzz expects file name only, not the full url, when creating new media. Changed this in the create action.

👍

authors: jgondron jonhartzler

repo: ndlib/honeycomb


text:
Create GitHub Release and upload build to release

Added option to create GitHub Release and upload the compiled files there

Thanks for your contribution.
Will give it a try asap.

authors: KeimaSenpai ndonkoHenri


text:
[EHZ] Added sorting features to personal page

Hello, I often need to search for specific information while using cp-ranking, such as which problems were solved in a particular contest, or what is the highest Rating I have achieved. To improve the efficiency of visualizing data in cp-ranking, I have added sorting functionality for each column in the displays of codeforces live contest, Atcoder, and ICPC practice contests.
Description

Which sections can be sorted: Codeforces, Atcoder, ICPC on personal page.
Which columns can be sorted: All columns except from Handle and Problem ID, since I don't consider sorting these useful. A ↕ is tagged to the column with sorting feature.
How to sort: Click on the column name. The logic is basically from hard to easy and from recent to former

Contest ID: decreasing
Rating: decreasing
Solved Time: recent -> former
Upsolved: false -> true
Division: increasing
Points: dereasing

Examples
Original (sort by time)

sort by contest ID (contests regardless of upsolving status are gathered)

sort by rating

sort by whether upsolved

sort by division

sort by points

Test

Looks good on Vite with npm run dev (but I haven't tested with the deployment)
No conflict when clicking multiple columns in the same section (the last click is valid)
No conflict when clicking multiple columns in different sections (changes in different sections will remain)

If you could consider adding the aforementioned feature or provide suggestions regarding it, I would be very grateful~

Thanks for your review! I would be grateful if you could merge the changes as I don't have write access.


text:
[DOC] Add documentation for rainbow bridge

Rainbow bridge is now on live on mainnet! 🌈 🎉  Let's get some documentation added to the NEAR <> ETH section of docs.

rainbow-bridge-client repo is currently the best source for how to incorporate the bridge into your app. [ See here ]

rainbow-bridge-frontend is a great example of the bridge in action [ See here ]

testing documentation resource

repo: near/docs


text:
Drop support for IE 8

I guess it's about time to drop support for IE 8. Shipping code for such an outdated browsers isn't necessary. Is this a welcome change/PR?
I would also love to remove all IE 9 related styles, but I'm sure there're still people depending on it. Any thoughts or plans to remove support for old browsers?

@electerious, for IE 8 we only have one rule:
/**
 * Add the correct margin in IE 8.
 */

figure {
  margin: 1em 40px;
}

Removing it wouldn't make a big difference:

With IE 8 support: 966 bytes.
Without IE 8 support: 956 bytes.

And regarding IE 9, I think we're not in a position to remove it yet.

authors: battaglr electerious


text:
Coverage combine is additive.

Discussed at PyCon 2016.
When running coverage combine, coverage will merge the information not only from every generated covfile, but also from the .coverage result file from the previous run of coverage combine if that file is still in the directory.
That can lead to misleading coverage results where lines are reported as covered because they were covered at some time in the past, even if they aren't now.

I agree this is misleading.  The idea originally was that combine could be used to fold in new data.  I could add --append switch to mirror the same considerations in coverage run.  This would be a compatibility change, but I think a good one.

Changed in https://bitbucket.org/ned/coveragepy/commits/f4e4c627a486a3d2eeb56809d8886c179108d1fe
Now the default is to ignore an existing .coverage file, and --append gets you the old behavior.

authors: Lukasa nedbat

repo: nedbat/coveragepy


text:
catch TokenError on parse

closes #1787.
Reproduced by running atheris locally on the coverage.py oss-fuzz runner:
p = PythonParser(text="\r'\\\n'''")
p.parse_source()

This string passes ast.parse but fails tokenize.generate_tokens (on 3.10 but not 3.12):
s = "\r'\\\n'''"
ast.parse(s) # passes
generate_tokens(s) # errors on 3.10

so we can't rely on ast.parse to give us nice syntax/indentation errors.

This is now released as part of coverage 7.5.2.

authors: nedbat tybug


text:
Chihayafuru 2 Ep 3 subs disappeared.

Present here.
https://github.com/nedragrevev/custom-subs/commit/328725e9bcc5a86e132f76df54d9632987e01ecb
Disappeared in latest commit.
https://github.com/nedragrevev/custom-subs/commit/0f3091092387ba211c6d22b93eff01532306bc6f

Not sure what was I doing, but I just readded it (zero changes, just a new archive to include the dialogue subs for EP03).
Thanks for the report.

authors: mibby nedragrevev

repo: nedragrevev/custom-subs


text:
Relative dates

Since there is going to be a Date class anyway, we might as well include relative date support (e.g. just now, two hours ago, four months ago). Naturally, this would be optional.

Since this shouldn't cause any major delays, this will be done in Alpha 1.

repo: nedroden/DraiWiki


text:
Is there a past functionality and if how to use it

So I didn't know how to use the clipboard patch so i looked inside of the diff and found that to copy out of the terminal you use ctrl+t.
But can I past or not because it is the only reason I sometimes have to use urxvt.
Thanks :)

You should be able to paste with Shift+Insert

I have to tap on shift to get insert. Can I change the shortcut ?

Can I change the shortcut ?

Currently, not here (you could fork and tweak the config.h file). The X11 paste is S-Insert but there also M-S-c and M-S-v(alt-shift) for copy/paste.

Ok thanks :)

If you are on zsh, you could do something like this:
# Copy(C-S-C) and Paste(C-S-V) functionality for `st`
x-kill-region () {
  zle kill-region
  print -rn $CUTBUFFER | xsel -i -b
}
zle -N x-kill-region

x-yank () {
  CUTBUFFER=$(xsel -o -b </dev/null)
  zle yank
}
zle -N x-yank
bindkey -e '^X' x-kill-region
bindkey -e '^V' x-yank

authors: PeterGottesman mustaqimM neeasade pExeen

repo: neeasade/xst


text:
Cannot use Arena together with the midir crate

I'm using midir to connect to a midi device and receive and store midi events.
Here's the problem: https://docs.rs/midir/0.7.0/midir/struct.MidiInput.html#method.connect requires a closure that is Send. If a closure owns an Arena, it is not Send.
Here is my project, so you may judge whether it is a use case you want to support:
Dependencies:
[dependencies]
midir = "0.7.0"
midly = "0.5.0"

main.rs:
#![feature(try_blocks)]
#![feature(with_options)]
use midir::{Ignore, MidiInput};
use midly::{live::LiveEvent, num::u28, Arena, Format, Fps, Header, Timing, TrackEvent};
use std::{
    error::Error,
    fs::File,
    sync::{Arc, Mutex},
    thread,
    time::{Duration, Instant},
};

const TICKS_PER_FRAME: u8 = 80;
const TICKS_PER_SECOND: u64 = 24 * (TICKS_PER_FRAME as u64);

fn midi_header() -> Header {
    Header::new(
        Format::SingleTrack,
        Timing::Timecode(Fps::Fps24, TICKS_PER_FRAME),
    )
}
fn main() -> Result<(), Box<dyn Error>> {
    let mut midi_in = MidiInput::new("midir reading input")?;
    midi_in.ignore(Ignore::None);

    let in_ports = midi_in.ports();
    let in_port = in_ports[6].clone();
    let in_port_name = midi_in.port_name(&in_port)?;

    let file = File::with_options()
        .append(true)
        .create(true)
        .open("out.midi");
    let file = Arc::new(Mutex::new(file));
    let last_change = Arc::new(Mutex::new(Instant::now()));

    let track = Arc::new(Mutex::new(Vec::<TrackEvent>::new()));
    let arena = Arena::new();

    let _conn_in = midi_in.connect(
        &in_port,
        "midir-read-input",
        move |us, mut message, _| {
            let result: Result<(), midly::Error> = try {
                println!("{}: {:?} (len = {})", us, message, message.len());

                let tick = (us * TICKS_PER_SECOND) / 1_000_000;

                let event = LiveEvent::parse(&message)?;

                let mut track = track.lock().unwrap();
                track.push(TrackEvent {
                    delta: u28::try_from(tick as u32).unwrap(),
                    kind: event.as_track_event(&arena),
                });

                *last_change.lock().unwrap() = Instant::now();
            };
            if let Err(e) = result {
                println!("ERROR HANDLING MIDI EVENT: {:?}", e);
            }
        },
        (),
    )?;

    println!(
        "Connection open, reading input from '{}' (press enter to exit) ...",
        in_port_name
    );

    std::thread::sleep(Duration::from_secs(9999999999999999));
    println!("Closing connection");
    Ok(())
}

Error:
error[E0277]: `*mut [u8]` cannot be sent between threads safely
  --> src/main.rs:40:28
   |
40 |     let _conn_in = midi_in.connect(
   |                            ^^^^^^^ `*mut [u8]` cannot be sent between threads safely
   |
   = help: the trait `std::marker::Send` is not implemented for `*mut [u8]`
   = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<*mut [u8]>`
   = note: required because it appears within the type `alloc::raw_vec::RawVec<*mut [u8]>`
   = note: required because it appears within the type `std::vec::Vec<*mut [u8]>`
   = note: required because it appears within the type `std::cell::UnsafeCell<std::vec::Vec<*mut [u8]>>`
   = note: required because it appears within the type `midly::Arena`
   = note: required because it appears within the type `[closure@src/main.rs:43:9: 63:10 track:std::sync::Arc<std::sync::Mutex<std::vec::Vec<midly::TrackEvent<'_>>>>, arena:midly::Arena, last_change:std::sync::Arc<std::sync::Mutex<std::time::Instant>>]`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `transcribe`.

I could get around this issue by running my program in another thread (in my case I chose to go async so I use a single-threaded executor) which holds the Arena, and using a mpsc channel to send message from the closure provided to midir to said thread.
This requires of course that I do message.to_vec() before I send it in the channel. I don't really mind the allocation but it feels a bit ironic that this whole workaround which includes extra allocation was required due to midly's effort to avoid allocations.
However, it's not too bad, just requires some setting up and careful consideration with threads and channels (and in my case async executors).

First of all, thanks for bringing this up!
There's no intrinsic issue preventing Arena from being Send, I just forgot to implement it. Just fixed it and publishing 0.5.1 along with some other minor fixes. Make sure to run cargo update!

authors: Ploppz negamartin

repo: negamartin/midly

license: Unlicense


text:
portfolio-backend用のスキーマを定義する

Doneの定義

https://github.com/nekochans/portfolio-backend に定義されているAPIのIFが実装されている事

https://future-architect.github.io/articles/20200409/
参考になりそう。

https://future-architect.github.io/articles/20191008/
こちらも参考になりそう。

repo: nekochans/nekochans-openapi


text:
Implement user DM flow for sending new messages.

How do we DM users now then and respond to DMs?
make two API calls per message we want to send to ensure the channel is open?

Yep sounds about right, right now this cache is gateway only and seeing as the events were removed from V8 there's no point in keeping any of this around as it'll always be empty
Originally posted by @FasterSpeeding in https://github.com/nekokatt/hikari/pull/234#issuecomment-699677059

So can you explain what the issue actually is? What do we want to do?

we want to send messages to users.
This may require one API call if you know the channel ID, or two if you dont.

how come we don't know the channel id? Won't the user specify the ID when they want to send a message? and if we don't have the channel ID, how do we get it?

@ahnaf-zamil how come we don't know the channel id?
Because discord don't tell us anymore, v8 removed the event for it.

Won't the user specify the ID when they want to send a message?

Sure, they can. Where are they going to find an arbitrarily generated snowflake from Discord's internal datastore though? :)

and if we don't have the channel ID, how do we get it?

call the create_dm_channel endpoint first. Then call the create_message endpoint with that result for the channel.

So if we make this whole thing as a single function, is that it for this issue?

We wanted to implement it in a nicer implementation. This should allow sending several messages to the same dm without having to execute both calls all the time. Something along the lines of this:
async with user.dm() as dm_channel:
    await dm_channel.send("hello")
    await dm_channel.send("hello again")

I'd probably implement dm() in the same way I did trigger_typing(), where it works in an async with or as an await, possibly.

Yep, that was my idea

authors: ahnaf-zamil davfsa nekokatt

repo: nekokatt/hikari


text:
[Bug] Enabling Minimal Theme Setting deforms the cards.

When using minimal Theme, if I activate the minimal theme settings plugins, the cards will be deformed...

I'm using obsidian 1.4.12
Thanks

@albertoloscerritos Thank you for reporting this.

@ormai Thank you for fixing this bug.
Release it as v1.2.2!

authors: albertoloscerritos nekoshita ormai

repo: nekoshita/obsidian-auto-card-link


text:
Добавлен функционал удаления ключевых слов которые давно не были использованы

Добавлено поле last_used в таблицу ключевых слов, туда будет записываться дата последнего использования слова, очистка выполняется по шедулеру, так же настроен shedlock

в имя МР и опционально в сообщение коммита стоит добавить название задачи, да и название МР бы скопировать из жиры
(тогда привяжется ссылка на жиру и коллегам будет проще понять, какая задача решается)


text:
FMA support

For RAxML

[ ] _mm256_fmadd_pd

others:

[ ] _mm_fmadd_pd
[ ] _mm_fmadd_ps
[ ] _mm256_fmadd_ps
[ ] _mm_fmadd_sd
[ ] _mm_fmadd_ss
[ ] _mm_fmaddsub_pd
[ ] _mm256_fmaddsub_pd
[ ] _mm_fmaddsub_ps
[ ] _mm256_fmaddsub_ps
[ ] _mm_fmsub_pd
[ ] _mm256_fmsub_pd
[ ] _mm_fmsub_ps
[ ] _mm256_fmsub_ps
[ ] _mm_fmsub_sd
[ ] _mm_fmsub_ss
[ ] _mm_fmsubadd_pd
[ ] _mm256_fmsubadd_pd
[ ] _mm_fmsubadd_ps
[ ] _mm256_fmsubadd_ps
[ ] _mm_fnmadd_pd
[ ] _mm256_fnmadd_pd
[ ] _mm_fnmadd_ps
[ ] _mm256_fnmadd_ps
[ ] _mm_fnmadd_sd
[ ] _mm_fnmadd_ss
[ ] _mm_fnmsub_pd
[ ] _mm256_fnmsub_pd
[ ] _mm_fnmsub_ps
[ ] _mm256_fnmsub_ps
[ ] _mm_fnmsub_sd
[ ] _mm_fnmsub_ss

4166fefd86956722fe78b3afa633e91acc94cc1f adds _mm256_fmadd_pd, so hopefully RAxML works now.

@nemequ Thanks! I've refreshed the SIMDe copy in RAxML. They have their own makefiles for AVX, SSE3, and SIMD-free compilation that we are using in the Debian Package, so it'll take me a bit longer to adapt them for compilation at decreasing levels of SIMD support.

FMA support is complete as of 306d1a1371f36493c297b8a4ed50079e14108e68.

Woohoo!

authors: mr-c nemequ

repo: nemequ/simde


text:
Does not currently work in OSGi and to share my experience trying to get it to work

Hi, I wanted to get this to work in the OSGi context. I have been successful in hacking so far to get it to save a single entity with no relationships. I understand OSGi is not so popular, but its a good technology. Most Java libraries produce OSGi bundles.
There are a few problems with this in trying to make it work in OSGi, they are:

This neo4j-ogm project doesn't use the Java reflection API, it loads classes from files and parses the binary Java file contents to do reflection. Can you tell me why your doing this rather than using Java reflection API? (this is a question, not saying you must use Java reflection API, there may be perfectly valid reasons).
I had to use Java reflection API, adjust your code to use Java reflection API, so far only getting simple entity creation working in Neo4J.
The MetaDataClassLoader had to be changed to use the OSGi classloader, anywhere its using classloader must use the OSGi one.
When this is build as an OSGi bundle it must have DynamicImport-Package * to allow it to access classes outside of the OSGi bundle, dynamically.
The OSGi bundle using it must expose public-ally its model classes so that this can use it.
This program neo4j-ogm doesn't produce OSGi bundles, but many other Java libraries do provide OSGi bundles. So I had to throw all of this code into one single project and get it to expose an OSGi bundle to my project.
Some things like CompilerService, eg. return new org.neo4j.ogm.compiler.MultiStatementCypherCompiler(); I just hard coded the class to be created, I guess I could use bundle context classloader.

I'll push ahead with adapting your code to work in OSGi for my purposes, will share the code on my github later than today, any ideas or comments please make them if they are helpful.
┆Issue is synchronized with this Asana task

Here is the code - https://github.com/PhilAndrew/neo4j-ogm-osgi
You can see the changes I made by looking at the commits from the time the project was created. I notice it was successful at creating nodes and relationships from annotated code (surprisingly), and I haven't tried anything else yet.
One interesting part is where it uses Java reflection in
src/main/java/org/neo4j/ogm/metadata/ClassInfo.java

In method
public ClassInfo(Class<?> c) {

Inheritance now works using Java reflection, for example a super-class with @NodeEntity and @GraphId works.

Note that I update the code of this github https://github.com/PhilAndrew/neo4j-ogm-osgi from time to time by bringing in the code from this project into that (neo4j-ogm-osgi). Merge into, so its not always up to date but sometimes is.

Related: #255

Thanks Phil for your input. I've checked your demo. As far as I can tell from the sbt build file, it uses a rather old version of OGM, which we don't support anymore.
Apart from that, see my comment on #255. If this is still relevant, feel free to open a new issue.

authors: PhilAndrew mangrish michael-simons


text:
Neo4j OGM general question

Hi! Thank you very much for such a great library!
I have a question - I am using Spring Boot 3 with SDN 5.3.9.RELEASE and Neo4j OGM 3.2.39. I ran a production project, https://decisionwanted.com, which is entirely built on Neo4j with OGM. The system works great with OGM. The only thing that concerns me is that, due to SDN 5.3.9.RELEASE, I am unable to use the latest version of OGM. I am considering completely removing SDN and implementing my own data layer using the pure Neo4j OGM library. Before proceeding, I would like to ask: will you continue to support and develop OGM for future Neo4j DB versions?

Thanks a lot ❤
The last question is easy to answer: YES, we actually already do 😄
(But...) There are some more things to be clear about: SDN is not based on Neo4j-OGM anymore. There were some technical reasons to make the split. Foremost this was a decision to keep Neo4j-OGM's API as it is but give SDN the freedom to introduce new features like the reactive support.
In fact, both libraries are supporting the latest Neo4j versions.
I cannot tell you which way to go in your case, but using Neo4j-OGM alone or switching to the new SDN implementation are both valid alternatives. It really depends on what the changes besides the general migrations (like renaming annotations) would contain.
(Don't tell anyone: There is a very unofficial SDN fork that depends on Neo4j-OGM 4 and adapts the new API over at https://github.com/michael-simons/spring-data-neo4j)

👍 It would be great to see an officially supported SDN version based on OGM that is compatible with Neo4j 5 and Spring 5/6.

@meistermeier what a great news! This, without exaggeration, is a historic moment. I've been waiting for it for several years! OGM is a great framework, and it deserves it!
Thank you very much for your work!!!

Thanks a lot, @alexanoid
But to be clear: This is not something new, it's the previous generation of SDN, on the state of 5.3.x, with just enough changes, to make it work with the latest Spring Boot and Spring Data Commons.
So SDN 5.x and prior has always used Neo4j-OGM under the hood.
SDN 6 and higher is a new thing, an object mapper in its own rights, with different behaviour and characteristics, for better or worse. We catered especially the row based approach by it, to make it work proper in reactive scenario.
Anyway, we do think too that this is the way forward, as we decided a while back that the approach of Neo4j-OGM is still worth supporting and that the Spring integration is part of it.

authors: alexanoid meistermeier michael-simons torstenkuhnhenne


text:
Consume non-200 responses response entities

Not a complete fix but I was able to alleviate issue mentioned in #80 with a combination of making sure 40x response entities are consumed and by increase my Neo4j server's transaction timeout value. (org.neo4j.server.transaction.timeout)

See comments in #80


text:
Add more detailed exception message

I got the problem that the neo4j-driver throws an expcetion in the travis enviroment that could be improved.
Especially the message ;)
I got the following error message:
Traceback (most recent call last):
  File "/home/travis/build/DLR-SC/prov-db-connector/provdbconnector/tests/db_adapters/test_baseadapter.py", line 515, in test_8_get_records_by_filter
    raw_result = self.instance.get_records_by_filter()
  File "/home/travis/build/DLR-SC/prov-db-connector/provdbconnector/db_adapters/neo4j/neo4jadapter.py", line 394, in get_records_by_filter
    for result in result_set:
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/neo4j/v1/api.py", line 437, in records
    keys = self.keys()
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/neo4j/v1/api.py", line 427, in keys
    self.fetch()
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/neo4j/v1/api.py", line 409, in fetch
    return self._session.fetch()
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/neo4j/v1/bolt.py", line 151, in fetch
    return self.connection.fetch()
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/neo4j/bolt/connection.py", line 407, in fetch
    response.on_failure(metadata or {})
  File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/neo4j/v1/bolt.py", line 222, in on_failure
    raise self.error_class(metadata)
neo4j.v1.api.CypherError: Internal error - should have used fall back to execute query, but something went horribly wrong

Do you have any idea what could cause this exception?

Hi @B-Stefan,
I tried to search in the whole driver codebase, but I did not find anything related to this error message.
And also you seems on a old 1.1 driver, could you try to update to the latest driver and retry your test?
I am closing this issue as I cannot find the error message from the driver code. Either because we already fixed or it is an external error.
Best,
Zhen

authors: B-Stefan zhenlineo


text:
each_with_rel should populate the relationship with its nodes rather than neo_id

currently the relationship part of the each_with_rel has neo_id set for its end nodes, while it would be better if they were populated with the already known node.
Additional information which could be helpful if relevant to your issue:
Code example (inline, gist, or repo)
Assuming comment is an OUTGOING relationship
movie.actors.each_with_rel.map { |node, rel| rel.to_node.name }
should not cause 1 + n queries.
It may seem unreasonable to use the node via the relationship when the node is readily available, but there are situations especially in generic code where it would be of advantage to have the consistency without causing additional queries.
Runtime information:
Neo4j database version:
neo4j gem version:  8.1
neo4j-core gem version:

Released as 8.1.2

authors: cheerfulstoic klobuczek


text:
Open list only in case of errors / add User autocommand?

It would be nice if Neomake could be configured to only open the list in case of errors.
This should be an additional setting probably, and not get added to neomake_open_list?!
Alternatively I could imagine triggering a User autocommand in this case maybe, so you could configure this yourself?!
The suggested autocmd from https://github.com/neomake/neomake/pull/463 could be used for this, and should be probably moved?!

Will be fixed by #463 / https://github.com/neomake/neomake/pull/463#issuecomment-226608071.

repo: neomake/neomake


text:
Safekeeper doesnt exit cleanly

Steps to reproduce
Using our unit files for systemd call systemctl stop safekeeper
Expected result
Clean shutdown with exit code 0
Actual result
Exit code is 111
● safekeeper.service - Neon safekeeper
     Loaded: loaded (/etc/systemd/system/safekeeper.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code)
   Main PID: 1119737 (code=exited, status=111)

Found this TODO for implementation of graceful shutdown
https://github.com/neondatabase/neon/blob/baa8d5a16ac5ee5e033d633d06c137fb4e4bf06e/safekeeper/src/bin/safekeeper.rs#L276
Environment
all
Logs, links

Hi @LizardWizzard!
Should this graceful shutdown just do something like
signals.handle(|signal| {
        //handle all signals
        info!(
            "Got {}. Terminating in immediate shutdown mode",
            signal.name()
        );
        for thread in threads.into_iter() {
            thread.join().unwrap(); // just panic
        }
    })

Or do we want a cleaner version like task_mgr
Thanks!

Hi @andresrsanchez!
I think we'll need something thats close to task_mgr here. join + unwrap can hang indefinitely, and panic caused by unwrap can prevent going through the rest of the threads.
cc @arssher

authors: LizardWizzard andresrsanchez

repo: neondatabase/neon


text:
fix: LocalFs root in test_compatibility is PosixPath('...')

I forgot a str(...) conversion in #5243. This lead to log lines such as:
Using fs root 'PosixPath('/tmp/test_output/test_backward_compatibility[debug-pg14]/compatibility_snapshot/repo/local_fs_remote_storage/pageserver')' as a remote storage

This surprisingly works, creating hierarchy of under current working directory (repo_dir for tests):

PosixPath('

tmp .. up until .. local_fs_remote_storage

pageserver')

It should not work but right now test_compatibility.py tests finds local metadata and layers, which is used. After #5172 when remote storage is the source of truth it will no longer work.

I don't think LocalFs should only work on absolute directories. Perhaps this could be demanded if an environment variable is not set. Then we would not set it on workflows, but could set it when doing local testing.
Looks like there's already some support for it.

Fix works: https://neon-github-public-dev.s3.amazonaws.com/reports/pr-5261/6124077382/index.html#suites/0fbaeb107ef328d03993d44a1fb15690/f65f6527c2a1b143/
Confirmed locally as well. I'll leave the "absolute only" to another PR, as I don't know if someone was actually using that.


text:
tests: perform graceful rolling restarts in storcon scale test

Problem
Scale test doesn't exercise drain & fill.
Summary of changes
Make scale test exercise drain & fill
Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

Don't get why https://github.com/neondatabase/neon/actions/runs/9777402273/job/26996882519 failed when the report was generated. Merging regardless.


text:
The ^M character appears when I format the file - Windows 11

Description
When I use the language server format the ^M character appears at the end of the line, I've tried some solutions as shown below and it still didn't work

Neovim version
NVIM v0.7.0-dev+761-g0d7a97224
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Nvim-lspconfig version
commit 5b8bea1b7177d7ced74bb0fd501cbe682f13b370 (HEAD -> master, origin/master, origin/HEAD)
Operating system and version
Windows 11
Affected language servers
vue, js, php etc...
Steps to reproduce
format on save
Actual behavior
When i format on save using the language server formatter appear the ^M character.
Expected behavior
No response
Minimal config
https://github.com/maxmx03/dotfiles/tree/main/.config/nvim-windows

Health check

   lspconfig: require("lspconfig.health").check()
   ========================================================================
    - INFO: html: configuration checked.
    - INFO: pyright: configuration checked.
    - INFO: tsserver: configuration checked.
    - INFO: sumneko_lua: configuration checked.
    - INFO: cssls: configuration checked.
    - INFO: jsonls: configuration checked.
    - INFO: eslint: configuration checked.
    - INFO: intelephense: configuration checked.
    - INFO: vuels: configuration checked.

LSP log
https://gist.github.com/maxmx03/2d1b697c803b68a37045257b00a592c8

This isn't implemented in lspconfig. You can file an issue against neovim core.

This isn't implemented in lspconfig (see, the issue template and README.md). You can file an issue against neovim core.

But when i use https://github.com/mhartington/formatter.nvim everything works fine.

Like I said, lspconfig is not a language server client. Neovim has a language server client. This plugin is not that.

solution
vim.api.nvim_command [[ set ff=unix ]]

vim.api.nvim_command [[ set ff=unix ]]

doesn't work for me.

You shouldn't force the encoding. The client is supposed to account for different line endings. Someone send me a minimal reproduction with our minimal init.lua and an example file to be formatted and I'll look at this on windows next time I have access to a windows computer. This isn't an lspconfig bug though.

You shouldn't force the encoding. The client is supposed to account for different line endings. Someone send me a minimal reproduction with our minimal init.lua and an example file to be formatted and I'll look at this on windows next time I have access to a windows computer. This isn't an lspconfig bug though.

Making sure you're notified since you asked: https://github.com/neovim/neovim/issues/17053

vim.api.nvim_command [[ set ff=unix ]]

doesn't work for me.

here my dotfiles, you can see my solution here: dotfiles/.config/nvim-windows/after/plugin/lspconfig.rc.lua.

repo: neovim/nvim-lspconfig


text:
When I use tflint, it reports error

Description
Whe I use tflint, it reports error like below
Error executing vim.schedule lua callback: Vim:E474: Invalid argument
stack traceback:
	[C]: in function 'sign_place'
	/usr/local/share/nvim/runtime/lua/vim/diagnostic.lua:899: in function 'show'
	/usr/local/share/nvim/runtime/lua/vim/diagnostic.lua:1235: in function 'show'
	/usr/local/share/nvim/runtime/lua/vim/diagnostic.lua:696: in function 'set'
	/usr/local/share/nvim/runtime/lua/vim/lsp/diagnostic.lua:259: in function 'handler'
	/usr/local/share/nvim/runtime/lua/vim/lsp.lua:1151: in function 'fn'
	vim/_editor.lua:342: in function <vim/_editor.lua:341>

Workaround:
If I disablediagnostics signs, it works well.
  vim.diagnostic.config({ signs = false })

Neovim version
NVIM v0.10.0-dev-c881092
Build type: Release
LuaJIT 2.1.1697887905
Run ":verbose version" for more info
Nvim-lspconfig version
No response
Operating system and version
Arch Linux
Affected language servers
tflint
Steps to reproduce
Open terraform file and re-open it
:e main.tf
:e

Actual behavior
Error raised
Error executing vim.schedule lua callback: Vim:E474: Invalid argument
stack traceback:
	[C]: in function 'sign_place'
	/usr/local/share/nvim/runtime/lua/vim/diagnostic.lua:899: in function 'show'
	/usr/local/share/nvim/runtime/lua/vim/diagnostic.lua:1235: in function 'show'
	/usr/local/share/nvim/runtime/lua/vim/diagnostic.lua:696: in function 'set'
	/usr/local/share/nvim/runtime/lua/vim/lsp/diagnostic.lua:259: in function 'handler'
	/usr/local/share/nvim/runtime/lua/vim/lsp.lua:1151: in function 'fn'
	vim/_editor.lua:342: in function <vim/_editor.lua:341>

Expected behavior
no error
Minimal config
1. Install depending binaries

Install tflint

See: https://github.com/terraform-linters/tflint?tab=readme-ov-file#installation

Install nvim-lspconfig

git clone https://github.com/neovim/nvim-lspconfig ./path/to/nvim-lspconfig

2. Prepare tf file
main.tf
provider "aws" {}

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~>5.0"
    }
  }
}

and make empty ".terraform" file in same dir.
3. Configure
vim.opt.runtimepath:append("path/to/nvim-lspconfig")
vim.env.PATH = vim.env.PATH .. ":" .. "path/to/tflint"
vim.cmd([[autocmd BufNewFile,BufRead *.tf set filetype=terraform]])
require("lspconfig").tflint.setup({})

LSP log
[START][2023-11-04 14:24:27] LSP logging initiated
[ERROR][2023-11-04 14:24:27] .../vim/lsp/rpc.lua:675	"rpc"	"/home/kyoh86/.local/share/nvim/mason/bin/tflint"	"stderr"	"14:24:27 langserver.go:28: Starting language server...\n"
[ERROR][2023-11-04 14:24:27] .../vim/lsp/rpc.lua:675	"rpc"	"/home/kyoh86/.local/share/nvim/mason/bin/tflint"	"stderr"	'14:24:27 handler.go:114: Received `initialize` with `{"capabilities":{"general":{"positionEncodings":["utf-16"]},"textDocument":{"callHierarchy":{"dynamicRegistration":false},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dataSupport":true,"dynamicRegistration":true,"isPreferredSupport":true,"resolveSupport":{"properties":["edit"]}},"completion":{"completionItem":{"commitCharactersSupport":false,"deprecatedSupport":false,"documentationFormat":["markdown","plaintext"],"preselectSupport":false,"snippetSupport":false},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"contextSupport":false,"dynamicRegistration":false},"declaration":{"linkSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"diagnostic":{"dynamicRegistration":false},"documentHighlight":{"dynamicRegistration":false},"documentSymbol":{"dynamicRegistration":false,"hierarchicalDocumentSymbolSupport":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"formatting":{"dynamicRegistration":true},"hover":{"contentFormat":["markdown","plaintext"],"dynamicRegistration":true},"implementation":{"linkSupport":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":[]}},"publishDiagnostics":{"dataSupport":true,"relatedInformation":true,"tagSupport":{"valueSet":[1,2]}},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":false},"rename":{"dynamicRegistration":true,"prepareSupport":true},"semanticTokens":{"augmentsSyntaxTokens":true,"dynamicRegistration":false,"formats":["relative"],"multilineTokenSupport":false,"overlappingTokenSupport":true,"requests":{"full":{"delta":true},"range":false},"serverCancelSupport":false,"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"]},"signatureHelp":{"dynamicRegistration":false,"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true,"dynamicRegistration":false,"willSave":true,"willSaveWaitUntil":true},"typeDefinition":{"linkSupport":true}},"window":{"showDocument":{"support":true},"showMessage":{"messageActionItem":{"additionalPropertiesSupport":false}},"workDoneProgress":true},"workspace":{"applyEdit":true,"configuration":true,"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true},"inlayHint":{"refreshSupport":true},"semanticTokens":{"refreshSupport":true},"symbol":{"dynamicRegistration":false,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"workspaceEdit":{"resourceOperations":["rename","create","delete"]},"workspaceFolders":true}},"clientInfo":{"name":"Neovim","version":"0.10.0-dev+4c32927"},"initializationOptions":{},"processId":31844,"rootPath":"/home/kyoh86/path/to/workdir","rootUri":"file:///home/kyoh86/path/to/workdir","trace":"off","workspaceFolders":[{"name":"/home/kyoh86/path/to/workdir","uri":"file:///home/kyoh86/path/to/workdir"}]}`\n'
[ERROR][2023-11-04 14:24:27] .../vim/lsp/rpc.lua:675	"rpc"	"/home/kyoh86/.local/share/nvim/mason/bin/tflint"	"stderr"	'14:24:27 handler.go:114: Received `initialized` with `{}`\n14:24:27 handler.go:114: Received `textDocument/didOpen` with `{"textDocument":{"languageId":"terraform","text":"provider \\"aws\\" {}\\n\\nterraform {\\n  required_providers {\\n    aws = {\\n      source  = \\"hashicorp/aws\\"\\n      version = \\"~\\u003e5.0\\"\\n    }\\n  }\\n}\\n","uri":"file:///home/kyoh86/path/to/workdir/main.tf","version":0}}`\n14:24:27 handler.go:154: Changing directory: /home/kyoh86/path/to/workdir\n'
[ERROR][2023-11-04 14:24:27] .../vim/lsp/rpc.lua:675	"rpc"	"/home/kyoh86/.local/share/nvim/mason/bin/tflint"	"stderr"	'14:24:27 text_document_did_open.go:51: Notify `textDocument/publishDiagnostics` with `map[string][]lsp.Diagnostic{"/home/kyoh86/path/to/workdir":[]lsp.Diagnostic{lsp.Diagnostic{Range:lsp.Range{Start:lsp.Position{Line:-1, Character:-1}, End:lsp.Position{Line:-1, Character:-1}}, Severity:2, Code:"", Source:"", Message:"terraform \\"required_version\\" attribute is required"}}}`\n'

there doesn't have signs see :help vim.diagnostic.config

@glepnir
??? There is.

• signs: (default true) Use signs for diagnostics.
Options:
• severity: Only show signs for diagnostics matching
the given severity |diagnostic-severity|
• priority: (number, default 10) Base priority to use
for signs. When {severity_sort} is used, the priority
of a sign is adjusted based on its severity.
Otherwise, all signs use the same priority.

oh sorry. I just woke up and felt a little bit sleepy. I read it as sign define. error in there
      vim.fn.sign_place(0, sign_group, sign_highlight_map[diagnostic.severity], bufnr, {
        priority = get_priority(diagnostic.severity),
        lnum = diagnostic.lnum + 1,
      })

so not sure which argument is invalid. need log then.

@glepnir Thank you !
I'll try to reproduce it with minimal config and take more detail logs.

Sorry, I misunderstood the ls causing the problem, it seems to be caused by tflint, not terraform-ls.

so some linte plugin convert to vim.diagnostic not correct.

tflint is not a plugin, a linter program managed in this plugin.
but I got that it is better to issue for tflint. thanks.

tflint is not a plugin, a linter program managed in this plugin. but I got that it is better to issue for tflint. thanks.

Hello @kyoh86 !
Have you found a way to solve this issue?
I encountered the same error and was looking for a solution, but no luck so far.

no, I do not.
I could find just workaround for that.
(it's described in this issue body)

authors: awerebea glepnir kyoh86


text:
Terraform LSP does not work

nvim v0.5.0-746-gf7cc3ae0b
nvim-lsp version(commit hash): 60133c
:checkhealth result: no error: INFO: terraformls: configuration checked
terraform-ls v0.8.0
xterm-kitty:

How to reproduce the problem from neovim startup
Given test.vim:
packadd nvim-lspconfig
lua require'nvim_lsp'.terraformls.setup{}

and test.tf:
resource "null_resource" "void" {
  provisioner "local-exec" {
    command = "echo Hello World > success.txt"
  }
}

bogus should upset LSP...

and having initialized it with terraform init...
Actual behaviour
nvim -u test.vim test.tf shows no error, even though the Terraform code is obviously invalid.
You can also run terraform validate to confirm the code is invalid.
Expected behaviour
I expect LSP to complain about invalid code (at the very least) OR :checkhealth to report there is an issue with the LSP setup, if that's what the problem is.
I can run terraform-ls manually just fine, however I do not see terraformls in the output of :LspInstallInfo at all.

See https://github.com/neovim/nvim-lspconfig/pull/351

Sorry I missed that @lithammer , not sure how, I did search for terraform before creating this ticket... yup, it just won't come up: https://github.com/neovim/nvim-lspconfig/issues?q=is%3Aissue+terraform+is%3Aopen
Should I close this one?

Sorry I missed that @lithammer , not sure how, I did search for terraform before creating this ticket... yup, it just won't come up: https://github.com/neovim/nvim-lspconfig/issues?q=is%3Aissue+terraform+is%3Aopen

Probably because it's a pull request, and not an issue 😉

Should I close this one?

Depends. Did you try the workaround mentioned in #351?

Sorry I missed that @lithammer , not sure how, I did search for terraform before creating this ticket... yup, it just won't come up: https://github.com/neovim/nvim-lspconfig/issues?q=is%3Aissue+terraform+is%3Aopen

Probably because it's a pull request, and not an issue

That would explain it 🙂

Should I close this one?

Depends. Did you try the workaround mentioned in #351?
Nope, seems like it does not. The updated test.vim is now:

packadd nvim-lspconfig
lua require'nvim_lsp'.terraformls.setup{cmd = {'terraform-ls', 'serve'}}

Running the command manually seems fine:
$ terraform-ls serve
2020/10/12 18:11:35 serve_command.go:137: Starting terraform-ls 0.8.0
2020/10/12 18:11:35 service.go:61: Preparing new session ...
2020/10/12 18:11:35 service.go:78: Worker pool size set to 24
2020/10/12 18:11:35 watcher.go:118: watching for changes ...
2020/10/12 18:11:35 langserver.go:69: Starting server (pid 2006877) ...

Might be a problem with root_uri then. Do you have either .terraform or  .git in the same directory?

Yes, I do. In the OP, under "How to reproduce..." the last step I gave was to run terraform init. That will initialize the .terraform folder (among other things).

Check what the logs say. You can find its location with this:
:lua print(vim.lsp.get_log_path())

Very nice - progress! :)
[ ERROR ] 2020-10-12T15:54:27+0300 ] ..._nvim.a7VNZhj/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:428 ]	"rpc"	"terraform-ls"	"stderr"	"Usage: terraform-ls [--version] [--help] <command> [<args>]\n\nAvailable commands are:\n    completion        Lists available completion items\n    inspect-module    Lists available debug items\n    serve             Starts the Language Server\n\n"

Obviously, I do NOT have terraform-ls stderr in my config, I have what was suggested earlier and posted above. Thank you!

Now that GH-351 have been merged, I guess this can bli closed?

Seems to be working fine now, with my regular init.vim. For some reason, I cannot get it to work with the code provided in the OP, no idea why. Seems like that alone should be sufficient to have the LSP kick in.
Anyway, it works, so AFAIAC it can be closed. Thank you! :)

I'm not a maintainer, but maybe it's easier if you close it yourself?

Is this actually working for you?  Even with the overridden cmd, before this commit, I get nothing from the Terraform server.

@mnarrell It works for me.
Provide me with a minimal code base that doesn't boot and I'll try to debug it.

A simple provider definition:
provider "kubernetes" {
  insecure         = true
  load_config_file = false
  host             = var.kubernetes_api_host
  token            = var.rdei_token
}

nvim-lsp configured as: require'lspconfig'.setup{}
I open this file (with a terraform init'd directory) and I see the lsp output in the logs.  If I try the hover action implemented here: https://github.com/hashicorp/terraform-ls/pull/294, im told the following:
[ ERROR ] 2020-11-15T18:27:12-0700 ] ...ocal/share/neovim/share/nvim/runtime/lua/vim/lsp/rpc.lua:443 ]  "rpc"   "terraform-ls"  "stderr"        "2020/11/15 18:27:12 root_module.go:254: loading of root module /Users/matt/tmp/example finished: 0 errors occurred:\n\t\n\n"
[ WARN ] 2020-11-15T18:27:16-0700 ] ...t/.local/share/neovim/share/nvim/runtime/lua/vim/lsp.lua:85 ]    "method textDocument/hover is not supported by any of the servers registered for the current buffer"

Am I missing additional configuration?

@mnarrell
terraform-ls which is implemented "hover" has not yet been release.
https://github.com/hashicorp/terraform-ls/tree/v0.9.0/internal/lsp

If you want to use that feature, you can use it if you build it yourself.

I see.  Apologies for my confusion...

@mnarrell No problem :)

authors: alexaandru h-michael lithammer mnarrell


text:
Hints don't show in pyright

nvim --version: NVIM v0.5.0-dev+950-g5ce328df4

nvim-lsp version(commit hash): 1e4a963ba4d00d559247b5fca827142958d4dbdf

:checkhealth result

health#lspconfig#check
========================================================================
## Checking language server protocol configuration
  - INFO: rust_analyzer: configuration checked.
  - INFO: pyright: configuration checked.
  - INFO: tsserver: configuration checked.

health#nvim#check
========================================================================
## Configuration
  - OK: no issues found

## Performance
  - OK: Build type: Release

## Remote Plugins
  - OK: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  - INFO: $COLORTERM='truecolor'

health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: xclip

## Python 2 provider (optional)
  - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
  - ERROR: Python provider error:
    - ADVICE:
      - provider/pythonx: Could not load Python 2:
          python2 not found in search path or not executable.
          python2.7 not found in search path or not executable.
          python2.6 not found in search path or not executable.
          /usr/bin/python is Python 3.9 and cannot provide Python 2.
  - INFO: Executable: Not found

## Python 3 provider (optional)
  - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
  - INFO: Executable: /usr/bin/python3
  - INFO: Python version: 3.9.1
  - INFO: pynvim version: 0.4.2
  - OK: Latest pynvim is installed.

## Python virtualenv
  - OK: no $VIRTUAL_ENV

## Ruby provider (optional)
  - WARNING: `ruby` and `gem` must be in $PATH.
    - ADVICE:
      - Install Ruby and verify that `ruby` and `gem` commands work.

## Node.js provider (optional)
  - INFO: Node.js: v15.4.0
  - WARNING: Missing "neovim" npm (or yarn) package.
    - ADVICE:
      - Run in shell: npm install -g neovim
      - Run in shell (if you use yarn): yarn global add neovim

## Perl provider (optional)
  - ERROR: perl provider error:
    - ADVICE:
      - "Neovim::Ext" cpan module is not installed

What language server(If the problem is related to a specific language server): pyright
Operating system/version: Arch Linux x86_64 5.9.13
Terminal name/version: alacritty 0.6.0 (04cbf767)
$TERM: alacritty

How to reproduce the problem from neovim startup
import a library in a python file and never use it (e.g. import collections)
Actual behaviour
No "hint" diagnostics shown
Expected behaviour
Should have a "hint" diagnostic saying library is not accessed like shown in https://github.com/neovim/nvim-lspconfig/issues/441#issuecomment-748535461. I tried same behavior using the tsserver and it works. I know that the tsserver is using a "hint" diagnostic because it displays the LspDiagnosticSignHint: "H".

I've confirmed this. I'm not sure what we could be doing, and I'm still leaning towards this being an issue with hints in core rather than how we're initializing pyright (which is really all this repo does). You can compare the options we are sending to the options that lsp-pyright (emacs lsp-mode) is sending.
https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/pyright.lua
https://github.com/emacs-lsp/lsp-pyright/blob/master/lsp-pyright.el
I don't see anything suspect. Would welcome a PR that fixes this.

It is caused by core and I opened a PR that should fix it: https://github.com/neovim/neovim/pull/13578

authors: mjlbach tzx


text:
Problems in installing Nephele environment

My server version is Ubuntu 22.04, with Linux kernel version 5.15.
Because my server originally had a Xen environment, I did not follow the instructions at https://github.com/nephele-vm/experiments entirely, but I referenced the Xen part of the build.sh script to set up. Here is the installation process:
git clone https://github.com/nephele-vm/experiments.git
cd experiments
mkdir dev
cd dev
git clone https://github.com/nephele-vm/xen.git

# build ovs，the build.sh script used
build_ovs

cd /root/experiments/dev/xen

# configure
./configure --disable-docs --disable-stubdom #--prefix=/root/dist/xen/

# build xen hypervisor
cd xen
cp /root/experiments/build/xen/config .config
make CONFIG_MEM_SHARING=y
cd ../

# build tools
make dist-tools CONFIG_SEABIOS=n CONFIG_IPXE=n CONFIG_QEMU_XEN=y CONFIG_QEMUU_EXTRA_ARGS="--disable-slirp --enable-virtfs --disable-werror" OCAML_TOOLS=y GIT_HTTP=y
make install-tools

Then I used xen.gz compiled from the xen/xen directory for booting, and the GRUB program I used is:
menuentry 'Ubuntu GNU/Linux, with Xen xen and Linux 5.15.0-100-generic' --class ubuntu --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-5.15.0-100-generic-advanced-11caf4b7-5439-477c-9845-f067275de7df' {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  f6a640c9-038e-4061-8828-757241d84dfc
	else
	  search --no-floppy --fs-uuid --set=root f6a640c9-038e-4061-8828-757241d84dfc
	fi
	echo	'Loading Xen xen ...'
        if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
            xen_rm_opts=
        else
            xen_rm_opts="no-real-mode edd=off"
        fi
	multiboot2	/xen.gz placeholder   ${xen_rm_opts}
	echo	'Loading Linux 5.15.0-100-generic ...'
	module2	/vmlinuz-5.15.0-100-generic placeholder root=/dev/mapper/ubuntu--vg-ubuntu--lv ro
	echo	'Loading initial ramdisk ...'
	module2	--nounzip   /initrd.img-5.15.0-100-generic
}

The server hangs at this point during startup, and there are RCU CPU Stall warnings on each CPU.

Firstly, I am certain that there are no issues with the dom0 Linux kernel because when I attempted to boot with the original xen-4.16, no errors occurred, and Xen executed normally.
I suspect that there might be an error in the xen.gz I compiled. Subsequently, I replaced xen.gz with xen-4.16-unstable.gz from the /alpine-v3.13-rootfs/boot/ directory. However, during boot, it still hangs at this point.

First of all, thanks for your interest in Nephele!  I would need a few more details to understand your setup:

What kind of machine are you using? And how does it access the storage?

Can you please also paste the entire stack trace in the first case?

In the second case, when using the Xen image from alpine-v3.13-rootfs, does Dom0 respond to ping?

Because I haven't had the chance to continue trying Nephele recently, I apologize for not receiving and replying to your messages in a timely manner.

I performed this operation on a physical machine with 48 Intel(R) Xeon(R) Silver 4214 CPUs @ 2.20GHz. The virtual machine created on it has 16GB of memory and 400GB of storage space, using the default virtual disk storage method provided by VMware, and includes necessary support for virtualization.
Like this? Because the startup log output is very fast, I find it difficult to capture all the stack traces and determine the error location.

dom0 can ping the network.

repo: nephele-vm/experiments


text:
Add RBAC for OpenShift clusters to bootstrap controller role

This is required once the following change in Nephio is approved
https://github.com/nephio-project/nephio/pull/421

/ok-to-test

authors: adetalhouet johnbelamaric

repo: nephio-project/nephio-example-packages


text:
Switching e2e tests to run on main

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind bug
/kind cleanup
/kind design
/kind documentation

/kind failing-test

/kind feature
/kind flake

What this PR does / why we need it:
Switching to main catalog branch
Which issue(s) this PR fixes:

Special notes for your reviewer:
Does this PR introduce a user-facing change?:

/test provision-linter

I found only two more references to v2.0.0 in the end to end tests:
https://github.com/nephio-project/test-infra/blob/8d9d67dfe172c50b92ae2e1642d640a98ec5909e/e2e/defaults.env#L14
The variable "REVISION" is used in a few places:

https://github.com/nephio-project/test-infra/blob/8d9d67dfe172c50b92ae2e1642d640a98ec5909e/e2e/tests/free5gc/001.sh#L48
https://github.com/nephio-project/test-infra/blob/8d9d67dfe172c50b92ae2e1642d640a98ec5909e/e2e/tests/free5gc/003.sh#L36
https://github.com/nephio-project/test-infra/blob/8d9d67dfe172c50b92ae2e1642d640a98ec5909e/e2e/tests/oai/001b-infra-metal-lb.sh#L46

Then it looks like we are using a prebuilt version of the v2.0.0 porchctl command here:
https://github.com/nephio-project/test-infra/blob/8d9d67dfe172c50b92ae2e1642d640a98ec5909e/e2e/provision/playbooks/cluster.yml#L133
I think that frr porchctl we probably should build it from source in the e2e tests to make sure we have the latest version. There are some small changes in porchctl between R2 and R3

/test bootstrap-integration

@radoslawc It seems like you missed the change on the porch client version. BTW, I suggest completing this issue in this release

/approve

/lgtm

/test e2e-oai-ubuntu-jammy

/test e2e-free5gc-ubuntu-focal

/retest

/retest

/retest-required

/test e2e-free5gc-ubuntu-focal

/retest

/retest-required

/test e2e-free5gc-fedora-34

/retest

/test e2e-oai-ubuntu-jammy

/test e2e-oai-fedora-34

/approve
/lgtm

/test bootstrap-integration

/test bootstrap-integration

/test bootstrap-integration

@radoslawc @vjayaramrh @liamfallon there is an error on the bootstrap integration test that needs to be fixed. Please take time to review it.
 TASK [bootstrap : Ensure gtp5g kernel constraints] *****************************
fatal: [int-focal-vm-bootstrap-3299538048]: FAILED! => {"msg": "The conditional check 'ansible_facts.kernel == \"5.0.0-23-generic\" or True' failed. The error was: Conditional is marked as unsafe, and cannot be evaluated."}

@radoslawc @vjayaramrh @liamfallon there is an error on the bootstrap integration test that needs to be fixed. Please take time to review it.
 TASK [bootstrap : Ensure gtp5g kernel constraints] *****************************
fatal: [int-focal-vm-bootstrap-3299538048]: FAILED! => {"msg": "The conditional check 'ansible_facts.kernel == \"5.0.0-23-generic\" or True' failed. The error was: Conditional is marked as unsafe, and cannot be evaluated."}

Thanks @electrocucaracha , we'll check it.

/test bootstrap-integration

@electrocucaracha @liamfallon now bootstrap-integration fails on:
TASK [Gathering Facts] *********************************************************
fatal: [int-focal-vm-bootstrap-659977273]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: root@34.170.197.210: Permission denied (publickey).", "unreachable": true}

Only change was removing curly braces like in https://github.com/nephio-project/test-infra/pull/278/files where it worked afterwards.

@electrocucaracha @liamfallon now bootstrap-integration fails on:
TASK [Gathering Facts] *********************************************************
fatal: [int-focal-vm-bootstrap-659977273]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: root@34.170.197.210: Permission denied (publickey).", "unreachable": true}

Only change was removing curly braces like in https://github.com/nephio-project/test-infra/pull/278/files where it worked afterwards.

There is a tech debt on the integration tests, I'm not sure if it's conflicting with other existing VMs or sometimes GCP can't smoothly create those molecule instances. Usually those errors are gone in the second try, but definitely it's necessary to investigate the root cause
/test bootstrap-integration

/test bootstrap-integration

/lgtm
/approve

/test e2e-oai-ubuntu-jammy

/test e2e-oai-fedora-34

/test e2e-oai-fedora-34

/test e2e-oai-ubuntu-jammy

/test e2e-oai-fedora-34
/test e2e-oai-ubuntu-jammy

/test e2e-oai-ubuntu-jammy

@radoslawc @liamfallon @vjayaramrh be cautious to use retest prow commands, every error is an opportunity to improve the resiliency of the CI. Forcing some jobs can lead to future problems.

@radoslawc @liamfallon @vjayaramrh be cautious to use retest prow commands, every error is an opportunity to improve the resiliency of the CI. Forcing some jobs can lead to future problems.

I opened this discussion:
https://github.com/nephio-project/nephio/discussions/774

authors: electrocucaracha liamfallon radoslawc vjayaramrh

repo: nephio-project/test-infra


text:
refactor: use Amqp instead of AMQP prefix

It will perform a BREAKING CHANGES from nestx-amqp v1

[ ] using Amqp prefix instead of AMQP (respect case usage)

:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: nest-x/nestx-amqp


text:
Create unified ES end-point for health scanner

This would unify the three datasets under a common schema, alleviating the need for GraphQL whose cold lambda starts are currently causing poor performance.
This will be implemented as a Luigi task that will take data from the latest ES indices for each dataset, apply a remapping and insert them under a unified index (adding a flag for the dataset type).

[ ] Write schema remappings
[ ] Write tasks to apply remappings

[ ] NiH
[ ] Crunchbase
[ ] Meetup

@jaklinger here's the definitive mapping in CSV format:
new_name,CB,MU,NIH
address,address_of_organisation,,
alias,terms_alias_organisation,,
brief,textBody_summary_organisation,,textBody_abstract_project
continent_id,id_of_continent,id_continent_group,id_of_continent
continent,placeName_continent_organisation,placeName_continent_group,placeName_continent_organisation
country_id,id_iso2_country,id_iso2_country,id_iso2_country
country,placeName_country_organisation,placeName_country_group,placeName_country_organisation
city,placeName_city_organisation,placeName_city_group,placeName_city_organisation
dataset,type_of_entity,type_of_entity,type_of_entity
date_end,date_death_organisation,date_end_project,
date_start,date_birth_organisation,date_start_group,date_start_project
date_update,datetime_updated_organisation,,
description,textBody_descriptive_organisation,textBody_descriptive_group,textBody_descriptive_project
funding_cost,cost_of_funding,,cost_total_project
funding_currency,currency_of_funding,,currency_total_cost
funding_rounds,count_rounds_funding,,json_funding_project
funding_year,,,year_fiscal_funding
funder,,,title_of_funder
id,,id_of_group,id_of_project
is_autotranslated,,booleanFlag_autotranslated_entity,
is_duplicate,,,booleanFlag_duplicate_abstract
is_health,booleanFlag_health_organisation,,
location,coordinate_of_city,coordinate_of_group,coordinate_of_organisation
name,name_of_organisation,name_of_group,title_of_organisation
novelty,rank_rhodonite_organisation,rank_rhodonite_group,rank_rhodonite_abstract
parent_id,id_parent_organisation,,
region_name,placeName_region_organisation,,
state_id,id_state_organisation,id_state_organisation,id_state_organisation
state,placeName_state_organisation,,placeName_state_organisation
status,status_of_organisation,,
size,count_employee_organisation,count_member_group,
terms_category,terms_category_organisation,,name_of_category
terms_funder,terms_of_funders,,terms_of_funders
terms_lang,,terms_iso2lang_entity,
terms_mesh,terms_mesh_description,terms_mesh_group,terms_mesh_abstract
terms_place,terms_of_countryTags,terms_of_countryTags,terms_of_countryTags
terms_role,terms_roles_organisation,,
terms_sdg,,,terms_sdg_abstract
terms_subcategory,terms_subcategory_organisation,,
terms_topics,,terms_topics_group,terms_descriptive_project
title,,,title_of_project
type,,,type_of_organisation
url_source,url_crunchBase_organisation,url_of_group,
url_fb,url_facebook_organisation,,
url_li,url_linkedIn_organisation,,
url_site,url_of_organisation,,
url_tw,url_twitter_organisation,,
zipcode,,,placeName_zipcode_organisation
<remove>,id_iso3_country,id_iso3_country,id_iso3_country
<remove>,id_isoNumeric_country,id_isoNumeric_country,id_isoNumeric_country
<remove>,id_continent_organisation (dupe),_id_state_group,id_continent_organisation (dupe)
<remove>,date_last_funding,_placeName_state_group,
<remove>,_cost_usd2018_organisation,_terms_memberOrigin_group,
<remove>,_terms_sdg_summary,_terms_sdg_description,

I've marked some fields for removal as they're duplicate, temporary or unused, see <remove>

In the above csv, changed dataset into source, with the request to change the current value of type_of_entity into crunchbase, meetup and NIH, so that in arxiv this could be source = arxiv|biorxiv|medrxiv (instead of article_source, for uniformity)

In the above csv, I've changed alias into terms_alias (I didn't realise it was an array).

authors: bishax mindrones

repo: nestauk/nesta


text:
Finished: Contribute to course content

Closed #138

However,
Could I ask you to pull latest changes from master before I would merge your PR ?

authors: DeuceX nesterone


text:
Use runfromprocess-rs all the time

Fixes #24

I think we should have a github action in place to update the current image  with the new entrypoint.sh if it has changed.
As per now this will cause a full rebuild :cry:
Maybe some logic that does the following:

Checkout the repo.
Downloads the latest zwift container
docker run -d -t zwift netbrain/zwift:latest sleep infinity
docker cp zwift:/bin/entrypoint /tmp/entrypoint
diff entrypoint.sh /tmp/entrypoint
if exit code == 0, then the files are equal, if exit code == 1 then continue to next step
docker cp entrypoint.sh zwift:/bin/entrypoint
docker commit -m "$git message? or something hardcoded" -c "need to change the command" zwift netbrain/zwift:latest
docker tag netbrain/zwift:latest netbrain/zwift:$VERSION
docker push netbrain/zwift:latest && docker push netbrain/zwift:$VERSION
:partying_face:

Should also look into which files we should to this diff comparison against. Maybe even the runfromprocess-rs if it ever changes.
Thoughts?

Looks like the files required to be checked as of now is the runfromprocess-rs files, zwift-auth.sh and entrypoint.sh
Could probably also reorganize the repo a bit, so that all files used in the container is in it's own folder.
Would make diffing easier i guess.

It should probably be both sh scripts only.
runfromprocess-rs doesn't belong in the repo, and it's unlikely to change.

Could you elaborate on the "doesn't belong in the repo" part? Do you mean
it was a mistake to include the source code?
I'm open for changes, if you provide some argumentation for your stance on
this.
On Mon, Sep 18, 2023, 14:38 quietvoid @.***> wrote:

It should probably be both sh scripts only.
runfromprocess-rs doesn't belong in the repo, and it's unlikely to change.
—
Reply to this email directly, view it on GitHub
https://github.com/netbrain/zwift/pull/25#issuecomment-1723323473, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACTNC5UKZHUDAM3CDUMRNLX3A6DPANCNFSM6AAAAAA43VJDEM
.
You are receiving this because you commented.Message ID:
@.***>

Do you mean it was a mistake to include the source code?

Yes, there's no good reason to do that when you can just clone on build.
https://github.com/quietvoid/zwift/commit/cdd7f97c58654a05fddb56b63a102a6825dbc087#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557R10

Im fine with that as long as you promise to never delete the repo :)

The alternative is that you can just fork it, retag and use your fork.
I don't really care.

authors: netbrain quietvoid

repo: netbrain/zwift


text:
pod 集成与其他库冲突

问题检查清单
感谢您向我们提出问题，在提交问题之前，请确认以下事宜：

[x] 我已经阅读了组件文档:
《项目结构介绍》
《界面排版自定义》
《新消息类型集成》
《用户信息自定义》
《机器人消息排版指南》

[x] 我已经阅读了常见问题, 但是找不到相关解决方案。

[x] 我已经阅读了SDK 文档, 但是找不到相关解决方案。

[x] 我已经搜索了当前问题, 但是找不到相关解决方案。

问题描述
集成
pod 'NIMKit/Full' #IM 音视频完整版po
pod 'SSZipArchive' #IM 云信需要
pod 'FMDB' #IM 云信需要
的时候，
项目中集成了 YYKit ，pod报冲突，搞了三天都没解决
[!] The 'Pods-WisdomCraftsman' target has frameworks with conflicting names: webp.framework.
问题现象
Update all pods
Updating local specs repositories
Analyzing dependencies
Pre-downloading: Masonry from https://github.com/pingwinator/Masonry.git
Downloading dependencies
Installing FLAnimatedImage (1.0.12)
Installing M80AttributedLabel (1.9.9)
Installing Masonry 1.1.1
Installing NIMKit (2.12.22)
Installing NIMSDK (7.7.4)
Installing SDWebImage 5.0.6 (was 5.8.3 and source changed to https://cdn.cocoapods.org/ from trunk)
Installing Toast (3.1.0)
Installing YYImage (1.0.4)
[!] The 'Pods-WisdomCraftsman' target has frameworks with conflicting names: webp.framework.
是否重现
[!] The 'Pods-WisdomCraftsman' target has frameworks with conflicting names: webp.framework.
其它备注
[!] The 'Pods-WisdomCraftsman' target has frameworks with conflicting names: webp.framework.
[在这里添加任何其他相关细节]

YYKit 和 YYImage 都包含了 webp.framework

YYKit 已经分成组件了，项目里集成各组件，不要直接集成 YYKit

暂时解决办法如下：

Podfile中只保留YYKit，执行pod install
在Pods目录下，找到YYImage/Vendor/WebP.framework，删除
Podfile中重新添加NIMKit，重新pod update

可以添加个 pre_install hook 自动删除多余的 WebP.framework
这个问题是 YYKit 和 YYImage 是两个互相冲突的组件，两者都包含了 WebP.framework。可以试试以下解决方案：

YYKit 已经拆分成多个独立组件了，可以根据项目需要引入独立的组件，比如 YYImage, YYText 等，不要使用 YYKit。（我没用过 YY 系列的组件，不知道 YYKit 和 独立组件的代码一样不，所以不晓得迁移成本有多大）
修改 YYKit，移除 WebP.framework 引入 libwebp 依赖，然后发布 YYText 到私有 CocoaPods 源。
修改 YYImage，移除 WebP.framework 引入 libwebp 依赖，然后发布 YYText 到私有 CocoaPods 源。这个我之前做过，可以参考 https://github.com/ElfSundae/YYImage
在 Podfile 中指定 YYImage 从我的私有源（不包含 WebP.framework）安装：（未尝试）pod 'YYImage', :source => 'https://github.com/ElfSundae/CocoaPods-Specs.git'

authors: ElfSundae WenchaoD yanashenyang


text:
"routers" parameter for queries

Apparently, you can provide a routers query parameter to the API and it will "resolve" urls for documents and links with this information on the server returning the urls in the payload.
This means that all types would possibly contain a top-level url property and url may also be present in links that have Document type.
The documentation is pretty scant:

https://prismic.io/docs/core-concepts/link-resolver-route-resolver#route-resolver

… but it looks like you can provide router config during initialisation and then reuse the config for every request thereafter. I assume that the config will be included in the meta-data payload as default options for the forms property.
Currently, it looks like routers should be specified as a JSON array of objects, something like this:
let routers = [
    {
        "type": "my-type", // Name of document type
        "path": "/products/:range/:category/:uid", // Where ":category" is the UID of the linked category document and ":range" is the UID of the grandparent category.range document
        "resolvers": {
            "category": "parent-category", // Top-level content relationship to a "category" type where "parent-category" is the property name of "my-type"
            "range": "category.range" // "range" is a property of "category" in this example being a content-relationship to a range document.
        }
    },
    {
        "type": "blog-post",
        "path": "/:lang/blog/:uid" // :lang is the document locale ie 'en-gb'
    },
    // Not yet known whether other types/properties are feasible such as
    {
        "type": "whatever",
        "path": "/:id/:date-published/:tags" // <- Who knows?
    }
];

Result sets over multiple pages from queries where the routes parameter has been provided do not include the route configuration in the URLs for the next and previous pages. This makes those URLs effectively useless.

Generic document properties that definitely do not work as route url parameters:

type
id
date
href
first_publication_date
last_publication_date

It looks like only lang and uid are supported on the root document, and only uid on linked documents.

repo: netglue/prismic-client