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

Aperta
#137 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
5
Fork
1
Merge medio
11h 18m
PR unite (30g)
66

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TanStack/oracles

Tutte le issue di TanStack/oracles

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.