Skip to content

test(zero-conformance): vectors from the re-baselined restored zql push tests - #198

Merged
tmm merged 1 commit into
mainfrom
test/rebaselined-ivm-vectors
Nov 13, 2026
Merged

tmm merged 1 commit into
mainfrom
test/rebaselined-ivm-vectors

Conversation

@tmm

@tmm tmm commented Nov 13, 2026

Copy link
Copy Markdown
Member

Adds conformance vectors from the re-baselined push copies in #195. Test-only, so there's no changeset.

  • restored-ivm.test.ts also runs the copies of cap.push, flipped-join.push, flipped-join.more-fetch and take.push, with their own assertions. It records each case they pass to runPushTest or runFetchTest.
  • The new cases go to a new vectors/restored-ivm-rebaselined.json. restored-ivm.json and every other vector file stay byte-identical: a full pnpm run generate adds only the new file.
  • 124 new cases: cap.push 19, flipped-join.push 52, flipped-join.more-fetch 1, take.push 52. The copies build 125 cases; the chunked-path test in flipped-join.push builds one of them twice, so that one is dropped. None duplicates a case in restored-ivm.json. None has the same AST as a case in ivm, ivm-features or bughunt-ivm.
  • Swift's RestoredIVMTests replays the new file case by case, like restored-ivm.json. Rust's restored suite replays it too; otherwise its runner would list the file as unreplayed.

Local checks:

  • Swift (Linux): all 124 new cases pass, along with the existing 112 and the chinook lane.
  • With two results cut from a copy of the new vectors, Swift fails exactly those two cases.
  • zero-conformance check mode, check-types, lint, oxfmt and swift format lint pass.
  • Rust didn't run locally because the orb has no cargo; CI covers it.

…sh tests

restored-ivm.test.ts now also runs the re-baselined copies of cap.push,
flipped-join.push, flipped-join.more-fetch and take.push from #195, with
their own assertions, and records the cases they build. Their 125 cases,
less one the chunked flipped-join test builds twice, go to the new
vectors/restored-ivm-rebaselined.json: 124 cases, none of which
restored-ivm.json has. restored-ivm.json and every other vector file are
unchanged.

Swift's RestoredIVMTests replays the new file case by case, like
restored-ivm.json, and so does Rust's restored suite.

Amp-Thread-ID: https://ampcode.com/threads/T-472dde83-243c-421c-b41d-4e7aaf375188
Co-authored-by: tmm <tmm@tmm.dev>
@tmm
tmm merged commit 232e35f into main Nov 13, 2026
22 checks passed
@tmm
tmm deleted the test/rebaselined-ivm-vectors branch November 13, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants