Skip to content

oracle-gaps: random seed -229453302 breaks the ownership law at replay (expected undefined, got []) #327

Backlog

Description

@KyleAMathews

What

The end-to-end gap oracle's random seed: generated unit fails the ownership law at the replay checkpoint for seed -229453302. The oracle expects undefined and the CLI reports [].

It failed in CI on #323's run 46959838128 (job "Gap report end-to-end oracle (random seed, 12/12)"). It also fails locally on a tree whose oracle-gaps/ and src/ equal main at fee6439: #323 changes only the CI packing scripts. So main fails it too, and by M-20 it does not block #323.

Replay

From packages/oracles:

ORACLE_SEED=-229453302 ORACLE_PATH=0 ORACLE_PROPERTY='oracle-gaps.report' ORACLE_UNIT='random seed: generated' pnpm --silent exec vitest --run --config oracle-gaps/vitest.config.mjs gap-report-oracle -t '^oracle-gaps\.report(?: | > )random seed: generated$' --maxWorkers=2

The unit takes about 13 s locally. It fails after 1 test and shrinks 0 times (CI and the default local run).

History

The full counterexample, from fast-check's Counterexample: line in a local run. The oracle's own History: line is cut at 2,000 characters, in CI and locally (#185).

Counterexample
[{"functions":[[{__proto__:null,"kind":"fieldCall","target":3},{__proto__:null,"kind":"libCall","target":3,"alias":false},{"kind":"fieldCall","target":1},{"kind":"helperCall","helper":"report"}],[{__proto__:null,"kind":"bindCall","target":2},{__proto__:null,"kind":"libCall","target":2,"alias":true},{"kind":"call","target":0},{__proto__:null,"kind":"bindCall","target":2}]],"containers":["C0"],"overloads":[true],"owners":["b"],"library":[[{"kind":"dollar"},{__proto__:null,"kind":"dollar"}],[{__proto__:null,"kind":"dollar"}]],"libraryOwners":["a"],"runes":[[{__proto__:null,"kind":"runeEffect","rune":"$effect"},{"kind":"runeEffect","rune":"$effect"},{"kind":"runeDerivedBy"}],[{"kind":"runeState","op":"!==","k":7},{__proto__:null,"kind":"runeState","op":">","k":0},{"kind":"runeDerived"},{"kind":"runeState","op":"===","k":8}]],"derived":{__proto__:null,"params":"plain","field":false,"before":[],"form":"or","after":[{"kind":"if","op":"<","k":9},{__proto__:null,"kind":"if","op":">","k":9}]},"sourceSpelling":"plain","dotGen":false,"ownsSpelling":"plain","wholeFile":"a","template":true,"tests":[{"file":"a","route":"determinism","registered":true,"name":"route","fn":2,"input":4,"judges":false,"law":"reach agreement","channel":"expect","flaky":false,"judgeBy":"verdict","hangs":false,"slow":false,"shrinks":false,"draws":false,"ioWait":false,"stops":false,"rawImport":false,"cleanupThrows":false,"asProp":false,"then":null,"work":null,"timed":false,"slowMs":16000,"loops":0,"timerWait":null,"pulse":false,"pendingIo":null,"caughtVerdict":false,"flakyHang":false,"catchesBudget":false,"callWork":0},{"file":"b","route":"determinism","registered":true,"name":"route","fn":1,"input":9,"judges":false,"law":"reach agreement","channel":"observe","flaky":false,"judgeBy":"assertion","hangs":false,"slow":false,"shrinks":false,"draws":false,"ioWait":false,"stops":false,"rawImport":false,"cleanupThrows":false,"asProp":false,"then":{__proto__:null,"route":"enumerated","input":9},"work":null,"timed":false,"slowMs":3000,"loops":0,"timerWait":null,"pulse":false,"pendingIo":null,"caughtVerdict":false,"flakyHang":false,"catchesBudget":false,"callWork":0},{"file":"b","route":"fixed history","registered":true,"name":"plain","fn":0,"input":8,"judges":true,"law":"reach agreement","channel":"observe","flaky":false,"judgeBy":"assertion","hangs":false,"slow":false,"shrinks":false,"draws":false,"ioWait":false,"stops":false,"rawImport":false,"cleanupThrows":false,"asProp":false,"then":{"route":"calibration","input":5},"work":null,"timed":false,"slowMs":3000,"loops":19999,"timerWait":null,"pulse":false,"pendingIo":null,"caughtVerdict":false,"flakyHang":false,"catchesBudget":false,"callWork":0},{"file":"a","route":"case","registered":true,"name":"plain","fn":2,"input":2,"judges":true,"law":"L","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":"probe calibration","input":2},"work":null,"timed":false,"slowMs":3000,"loops":0,"timerWait":null,"pulse":true,"pendingIo":null,"caughtVerdict":false,"flakyHang":false,"catchesBudget":false,"callWork":0},{"file":"a","route":"case","registered":false,"name":"plain","fn":7,"input":7,"judges":false,"law":"L","channel":"observe","flaky":false,"judgeBy":"verdict","hangs":false,"slow":false,"shrinks":false,"draws":false,"ioWait":false,"stops":false,"rawImport":false,"cleanupThrows":true,"asProp":false,"then":{__proto__:null,"route":"case","input":5},"work":null,"timed":false,"slowMs":3000,"loops":0,"timerWait":{"waitMs":600,"unref":true},"pulse":false,"pendingIo":null,"caughtVerdict":false,"flakyHang":false,"catchesBudget":false,"callWork":0}],"witness":"capture","authored":{__proto__:null,"stmt":2,"kind":"apply"},"declaration":"wrapper","ownerless":false,"fault":"setupThrows","stability":"reformat","ordinary":false,"lazyGate":false,"secondAuthored":false,"consoleOutput":false,"config":"promise","configEnv":true,"setupGlobal":false,"native":"gyp","depSubpath":false,"unbuiltDep":false,"boot":false,"budget":"two","stopRuns":[{"signal":"SIGINT","pool":"threads","when":"run"},{__proto__:null,"signal":"SIGINT","pool":"forks","when":"run"},{"signal":"SIGTERM","pool":"threads","when":"run"},{"signal":"SIGINT","pool":"forks","when":"run"},{"signal":"SIGTERM","pool":"forks","when":"run"}],"onlyRun":false,"pragma":false,"cliPath":"plain","concurrentStart":true,"configFile":"vitest.config.cjs","configPlace":"named","packageType":"commonjs","configAwait":false,"configRequire":true,"contexts":4,"steps":null,"dataOwners":["none","a","none"],"exportOwners":["b"],"importer":"none","midrunBy":"b","midrunTarget":"data","prePlugin":false,"fsRead":"none","laterSteps":[],"tornRows":false,"pauseEngages":true,"warmReplaced":true,"testRoot":"link","loadPlugin":false,"rejectBatch":0,"outMode":"default","logBlocked":false,"overlap":false,"stopWitness":false,"spawnStop":false,"spawnSignal":"SIGTERM","spawnDelay":4,"spawnOnStart":false,"claimScenario":false,"logLost":false,"supervisorDeath":false,"unsupervised":false,"psMissing":false,"holdOverlap":false,"replyHeld":false,"spinData":true,"siblingDir":false,"hookStops":false,"spinThrows":true,"slowStart":false,"shortWait":false,"absentObjects":["undefined","undefined","null","null","null"],"optionalChains":[{"links":3,"level":3,"call":"none","returns":"object"},{__proto__:null,"links":2,"level":1,"call":"optional","returns":"nothing"},{"links":2,"level":0,"call":"plain","returns":"nothing"},{"links":3,"level":1,"call":"none","returns":"object"},{"links":1,"level":2,"call":"none","returns":"object"},{__proto__:null,"links":1,"level":3,"call":"plain","returns":"object"},{__proto__:null,"links":1,"level":3,"call":"none","returns":"object"},{"links":2,"level":0,"call":"optional","returns":"object"}],"failingLaw":"a","failingLawAt":"end","failingLawCalls":"none","failingLawHook":"beforeAll","failingLawSpins":true,"faults":[],"diffBase":"none","authoredSpan":false,"hangMs":null,"heavy":0,"pair":false,"failingLawHangs":false}]

Found by Session 3 of the post-#99 handoff. This issue is not in its scope, so it is filed for an owner.

This issue was written by Isaac.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions