npm test fails on main because publication subtests share leaked state
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- git, github-actions, node.js, typescript
Direzione di ricerca
Start with the failing subtests in scripts/publication.test.ts and inspect how the store, counters, and PR labels are reset between them. Run npm test to reproduce the four failures, then verify cleanup prevents one subtest from affecting the next. The issue also proposes a read-only workflow for pull requests and pushes to main; done means npm test passes and the workflow runs it on both events.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
npm test fails on main, and has since #34. 4 of the 30 tests fail (Node 24.22):
✖ label changes prevent archival and promotion
✖ merge with no archive reports failure and requires manual archival
✖ promotion failure after merge still retains the valid archive remotely
✖ CI archival and promotion with simulated GitHub and Git
The publication code is fine. This is shared state leaking between subtests of CI archival and promotion with simulated GitHub and Git in scripts/publication.test.ts:
- #34 added
incomplete artifacts and untrusted runner SKUs cannot archive. It ends withdownloads === 2and doesn't reset the counters. Before that change, the preceding test ended withclearStore(). label changes prevent archival and promotiondoesn't callclearStore(), soassert.equal(downloads, 0)sees2and throws.- The throw skips the
pr.labels = []on the last line, so the PR keeps thebenchmarks: skiplabel. The next two tests then take the approved-skip path instead of the failure they expect, and fail with "Missing expected rejection".
Bisecting confirms it. 02d7c6f passes 29/29, and bdbca55 (#34) is the first commit that fails.
No workflow runs npm test, so CI didn't catch it. #34 notes "Tests were not run."
Proposed fix:
- Reset the store and counters at the start of the label test, and restore the mutated fixtures in
finallyblocks so one failing subtest can't cascade into later ones. - Add a read-only workflow that runs
npm teston PRs and pushes tomain.
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 1
- Merge medio
- 6h 19m
- PR unite (30g)
- 4
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hyperlight-dev/hyperlight-bench
-
Dashboard cannot show runs older than the last 14Forse già presa @NopeCharon l’ha presa 4 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
hyperlight-dev/hyperlight-bench#54 ·
I maintainer di solito rispondono entro 1 giorno
-
add arm64Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
hyperlight-dev/hyperlight-bench#53 ·
I maintainer di solito rispondono entro 1 giorno
-
add macosAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
hyperlight-dev/hyperlight-bench#52 ·
I maintainer di solito rispondono entro 1 giorno
-
add windowsAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
hyperlight-dev/hyperlight-bench#51 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
hyperlight-dev/hyperlight-bench#50 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di hyperlight-dev/hyperlight-bench
Issue simili
-
bug
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
garethgeorge/backrest#1451 ·
I maintainer di solito rispondono entro 1 giorno
-
fix(core): \.pluck() returns values in key insertion order instead of requested argument orderForse già presa @ManyaS-Git l’ha presa 1 giorno fa. Apertastatus:in-linear
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
n8n-io/n8n#45027 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 13 giorni
-
bug
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
navikt/skjemabygging-formio#2399 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
lidofinance/validator-ejector#233 ·
I maintainer di solito rispondono entro 1 giorno