npm test fails on main because publication subtests share leaked state
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- git, github-actions, node.js, typescript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2
- Forks
- 1
- Ø Merge
- 6 Std. 19 Min.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus hyperlight-dev/hyperlight-bench
-
Dashboard cannot show runs older than the last 14Evtl. vergeben @NopeCharon hat das vor 4 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
hyperlight-dev/hyperlight-bench#54 ·
Maintainer antworten meist innerhalb von 1 Tag
-
add arm64Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
hyperlight-dev/hyperlight-bench#53 ·
Maintainer antworten meist innerhalb von 1 Tag
-
add macosOffen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
hyperlight-dev/hyperlight-bench#52 ·
Maintainer antworten meist innerhalb von 1 Tag
-
add windowsOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
hyperlight-dev/hyperlight-bench#51 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 30/100
hyperlight-dev/hyperlight-bench#50 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in hyperlight-dev/hyperlight-bench
Ähnliche Issues
-
bug
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 62/100
garethgeorge/backrest#1451 ·
Maintainer antworten meist innerhalb von 1 Tag
-
fix(core): \.pluck() returns values in key insertion order instead of requested argument orderEvtl. vergeben @ManyaS-Git hat das vor 1 Tag übernommen. Offenstatus:in-linear
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
n8n-io/n8n#45027 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 13 Tagen
-
bug
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 68/100
navikt/skjemabygging-formio#2399 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
lidofinance/validator-ejector#233 ·
Maintainer antworten meist innerhalb von 1 Tag