oracle-gaps e2e: an abort stop owes SIGABRT under a setup file that throws (main and #131)

Offen
#137 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript
Bereich
testing

Rechercherichtung

Start by replaying the supplied Vitest command with the given seed and unit, then inspect the oracle-gaps report law and the stop-run handling that produces the stopped checkpoint. Trace how a setup file that throws interacts with the abort stop obligation. Done means the replay reports the expected SIGABRT error line instead of a completed report.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

A random unit of the gap report's end-to-end oracle fails on main and on #131 with the same difference. This was found by the merge gate's F6 sweep on #131.

  • Unit: random seed: a declaration fault: setupThrows.
  • Law: greppable stream, checkpoint stopped.
  • Difference: "the stopped run's last line is oracle-gaps: done completed, 4 gaps (provisional), report <package>/out-stop/summary.md, not oracle-gaps: done error, the run's process exited with SIGABRT".
  • Replay: ORACLE_SEED=2039724679 ORACLE_PATH=0 ORACLE_PROPERTY='oracle-gaps.report' ORACLE_UNIT='random seed: a declaration fault: setupThrows' vitest run -t '^oracle-gaps\.report(?: | > )random seed: a declaration fault: setupThrows$'.
  • The replay on main 2552d6a (Arca mc-attr-setup-main) and on #131 at 21d37bc (mc-attr-setup-head) fails the same way, so the defect is main's (base-replay attribution, v21.2 R42).

The likely cause:

  • The history combines the setupThrows fault with a stop run whose when is abort.
  • A setup file that throws fails file a before any test runs, so file a's aborting test never runs, and the stop run completes.
  • The law still owes the abort's error line for it. This is a model or driver precondition gap (v21.2 R7: an obligation whose precondition contradicts the model's own prediction). It is not confirmed.

Full history (the M entry "Replay by history"):

Counterexample: [{"functions":[[{"kind":"optional"}]],"containers":[],"overloads":[],"owners":[],"library":[],"libraryOwners":[],"runes":[],"derived":null,"sourceSpelling":"linked","dotGen":false,"ownsSpelling":"plain","wholeFile":"none","template":true,"tests":[{__proto__:null,"file":"b","route":"fixed history","registered":true,"name":"route","fn":0,"input":1,"judges":false,"law":"L","channel":"observe","flaky":false,"judgeBy":"soft","hangs":false,"slow":false,"shrinks":false,"draws":false,"ioWait":false,"stops":false,"rawImport":true,"cleanupThrows":false,"asProp":false,"then":{__proto__:null,"route":"determinism","input":1},"work":null,"timed":false},{"file":"b","route":"determinism","registered":true,"name":"route","fn":7,"input":0,"judges":true,"law":"reach agreement","channel":"observe","flaky":false,"judgeBy":"verdict","hangs":false,"slow":false,"shrinks":false,"draws":false,"ioWait":false,"stops":false,"rawImport":false,"cleanupThrows":true,"asProp":true,"then":{"route":"determinism","input":1},"work":null,"timed":false},{__proto__:null,"file":"b","route":"fixed history","registered":true,"name":"route","fn":7,"input":6,"judges":false,"law":"reach agreement","channel":"observe","flaky":false,"judgeBy":"soft","hangs":false,"slow":false,"shrinks":false,"draws":false,"ioWait":false,"stops":false,"rawImport":false,"cleanupThrows":true,"asProp":false,"then":{"route":"random seed","input":0},"work":null,"timed":false}],"witness":"capture","authored":{"stmt":19,"kind":"ambiguous"},"declaration":"wrapper","ownerless":false,"fault":"setupThrows","stability":"reformat","ordinary":false,"lazyGate":false,"secondAuthored":false,"consoleOutput":false,"config":"function","configEnv":true,"setupGlobal":true,"native":"none","depSubpath":false,"unbuiltDep":false,"boot":true,"budget":"one","stopRuns":[{"signal":"SIGTERM","pool":"threads","when":"run"},{__proto__:null,"signal":"SIGINT","pool":"forks","when":"abort"}],"onlyRun":false,"pragma":false,"cliPath":"plain","concurrentStart":false,"configFile":"vite.config.mjs","configPlace":"discovered","packageType":"commonjs","configAwait":false,"configRequire":false,"contexts":4,"steps":null,"dataOwners":["none","a","none"],"exportOwners":["a","none","b"],"importer":"a","midrunBy":"b","midrunTarget":"helper","prePlugin":true,"fsRead":"none","laterSteps":[],"tornRows":false,"pauseEngages":true,"warmReplaced":true,"testRoot":"parent","loadPlugin":true,"rejectBatch":0,"replyHeld":false,"spinData":false,"siblingDir":true,"hookStops":false,"spinThrows":true}]

This issue was written by Isaac.

Vorherrschende Sprache
JavaScript
Sterne
5
Forks
1
Ø Merge
11 Std. 18 Min.
Gemergte PRs (30 T.)
66

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

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TanStack/oracles

Alle Issues in TanStack/oracles

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.