Repository navigation
Check compat across all versions and frozen core editions - #12008
Conversation
Fixes #10754 by running scheduled compat-validation checks with --mode all and --profile ci, caching the vortex-compat build per (cwd, profile) and aggregating errors across versions in compat.py, recording all fixture build/decode/comparison/projection/row-range failures without panicking in check.rs, and aligning README/DESIGN docs with --git-ref behavior. Signed-off-by: Will Manning <will@willmanning.io>
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
The mode fallback and the per-fixture failure collection look correct, and a failed fixture still fails the run. Four notes are inline. CI has not run yet because the PR is a draft.
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
roborev: Combined Review (
|
Merging this PR will not alter performanceWarning vortex-data has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 8, 2026 to keep using CodSpeed. 2 warnings
Comparing Footnotes
|
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
6fe25ac31 resolves my four earlier notes. The checker now uses assert_arrays_eq! inside run_catching_panic, so it still records a mismatch per fixture. The projected and row-range scans are gone, and the scheduled check still runs every version and collects every failure. test_compat.py now runs in the script test step. The dispatch in mode all on this commit checked 29 versions in under six minutes, so the timeout is not a concern.
One doc fix remains. DESIGN.md line 239 says workflow_call defaults to all, but the workflow marks that input as required, and release-checks passes last. Please say that only the weekly schedule uses all.
Two smaller items are optional. In compat.py, _read_manifest calls .get() before validation, so a manifest of [] or null raises AttributeError. That error escapes the handler for each version and stops the remaining versions. A type check after json.loads that raises ValueError would fix it. Also, assert_arrays_eq! lists every mismatched index, so a regression across a whole TPC-H fixture produces a very long failure line for each version.
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
8b84f6c48 fixes the manifest case from my last review. A manifest of [] now skips the legacy upgrade and fails schema validation with a ValueError. The loop records that failure and moves on to the next version, and the new 0.58.0 test case covers it. The DESIGN.md note about workflow_call still applies.
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
Reviewed 373bcfa. This commit resolves the last note from my review. DESIGN.md now says that workflow_call callers pass a required mode and that manual dispatch defaults to last, which matches the inputs in compat-validation.yml. No new findings.
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
Reviewed c62e912, which merges develop. The only conflict was in the pytest file list in ci.yml. develop dropped scripts/tests/test_triage.py in favour of the test_triage_*.py glob, and this branch added vortex-test/compat-gen/tests/test_compat.py. The resolution keeps the glob and the compat test, which is right. The rest of the PR's diff is unchanged. No findings.
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
A fresh review of c62e912 found no bugs. The check now keeps going after a failed fixture, and the tests reach the paths they claim. The dispatch run with mode: all finished well inside the timeout. Two points need a line each before this merges.
-
The description says that scheduled runs use the
ciprofile. In factcompat-validation.ymlpasses--profile cion every trigger, and that includes theCompat checkjob inrelease-checks.yml(mode: last). That job used to buildvortex-compatwith thereleaseprofile, which is the default incompat.py. Release checks now run an unoptimized build with debug assertions on. That is probably what we want, but please say so in the description. -
check_fixturesincheck.rschangesVortexSession::empty()toVortexSession::default(), butgenerate.rsstill usesempty(). So the published file and the expected file come from different sessions. The comparison is by logical value, so this is unlikely to cause a false failure. Please give the reason for the switch in a code comment, or use the same session on both sides.
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
|
Addressed both points:
|
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
A fresh review of deac68d found no bugs. Scheduled runs now check every version, and each failed fixture or version is recorded without stopping the run. The PR is larger than the fix for #10754 needs, though. It adds about 280 production lines and 400 test lines, and the fix needs about 60 production lines. Please remove these parts and the tests that exist only for them:
- The
_BUILT_BINScache and_profile_dir_nameincompat.py, with the parametrizedtest_profile_dir_name_and_build_path. A secondcargo buildof an unchanged binary is cheap, and thetestandbenchentries are never used. - The
--profileoption repeated on each subcommand withargparse.SUPPRESS, withtest_cli_accepts_profile_before_or_after_subcommand. The workflow passes--profilebefore the subcommand, so the top-level option is enough. - The extra checks in
_run_rust_checkfor bad JSON, non-dict output, and a non-zero exit with an emptyfailedlist, withtest_run_rust_check_handles_malformed_or_nonzero_output. The binary always prints a JSON object, andcheck()exits non-zero only whenfailedis not empty. handles_mode_mismatches_across_all_filesincheck.rs. It tests mode logic that this PR does not change.
The Debug, PartialEq, Eq derives on Mode, CheckResult and FailedFixture also look unused. Keep the isinstance(manifest, dict) guard that the earlier review asked for, and the --profile ci change that the description now states.
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
|
Trimmed all four items and the unused |
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
…ceptions Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
I reviewed the commits from 7321b02 to 40e6c7f. They resolve the two points I still had on edition_reader.py:
- Each accepted entry now lists
expected_causes, and_evaluate_edition_resultsreports a cause that no entry expects as an unexpected failure, and an expected cause that no longer appears as stale. An accepted fixture can no longer start failing for a new reason unnoticed. _run_isolatednow catchesBaseExceptionin the child, always leaves throughos._exit, and kills a child that runs past its timeout.
Building the expected Arrow IPC with build_expected() instead of reading back a file from HEAD's writer is also a good change: the oracle no longer depends on the writer under test. The file names still match, because fixture.name() is the manifest entry name for both adapters. The stale-file cleanup in write_fixtures now ignores manifest names that are not a plain .vortex file name, and the new test covers a ../ entry. No new findings.
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
A fresh read of the whole PR at 40e6c7f, on top of the review above. The two test directions fit the spec's compatibility invariants: old files read by the current reader test invariant 3, and current files at edition E read by E's recorded minimum test invariant 6. These points remain:
- "Forward" and "backward" are swapped relative to the spec.
DESIGN.mdcalls old writers to current reader the "Forward direction", butdocs/specs/versioning.mdand invariant 3 indesign.mdcall that backward compatibility. I would name them "backward (current reader, old files)" and "forward (old reader, current files)". - The new paragraph in
design.mdcalls everycore2025.*entry a wire-format incompatibility. Most are: FSST's 3 buffers, RunEnd with Utf8 values, the Bitpacked patch child, the narrow DecimalByteParts part, Pco format 4, Zstd's null handling and the Struct validity child. Others are bugs in the old reader's Arrow export: timezone-aware timestamps, i256 decimals, and sparse Utf8. Saying which is which would keep the spec accurate. - Expected causes are matched per fixture, not per column.
_probe_column_causescollects read errors into one set without the column name, so a TPC-H column that newly fails with "Expected 2 buffers, got 3" is accepted under the FSST cause that the fixture already lists. Prefixing each read error with its column, as the type and value mismatches already do, would close this. - One failed fixture write stops the whole edition check.
write_fixturesreturns at the firstfixture.write(...)?error, and_run_rust_generateruns withcheck=True, so the other editions get no report. The old-files check already records each failure and continues. - The edition skip list is not checked.
generaterecords the fixtures it skips because an edition lacks their encoding, butcheck-editionsnever compares that list with anything. If a fixture starts to need a new encoding, it drops out of the older editions without any signal.
On size, the PR adds about 2,860 lines. Two cuts would keep the same coverage: the reader_overrides support in compat.py handles a section that is now empty, and the allowlist takes 391 lines of JSON for 40 entries, which one line per entry would shrink. Also worth considering: TPC-H and ClickBench account for 18 of the 40 accepted entries, and their causes repeat those of the single-encoding fixtures. Leaving them out of check-editions would also cut most of the column probing time.
…terminology Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
|
Addressed in
|
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
I reviewed 580a6db. The per-column cause matching in _cause_matches is what I asked for, and the test for a new failure on another column with the same message covers it. One problem and one nit:
- The 0.42.0
tpch_lineitem.compact.vortexentry pins a tokio task number. Its first expected cause isArrowInvalid: External error: task 13 panicked with message .... The task number depends on scheduling, and_strip_error_wrapperremoves only theArrowInvalid: External error:prefix, so a run where another task panics first reports a different number and the check fails. Matching frompanicked with messageonward, or dropping the full-table cause since the per-column causes already cover every column, would make it stable. - Nit: the two 0.85.0
map.vortexentries now expect onlytype mismatch in column sorted_attrs:, which accepts any type mismatch on that column. Adding thekeys_sortedpart of the message would keep the entry as narrow as its reason.
…nore Trafic typo Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
|
Fixed in
|
…eneration-failure invariant Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
…tions Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
…IPC is missing Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
I reviewed 6c58662. The atomic write of the expected IPC looks right, but the new guard in _evaluate_edition_results never matches a real reader result.
compat.py checks for causes that start with missing expected Arrow IPC:. The cause that edition_reader.py reports when the expected file is absent is expected Arrow IPC missing: {exp_path.name}. No code emits the string that the guard checks for. The new test passes because the stub returns the guard's string, not the reader's.
In a real run, an accepted fixture whose expected IPC is missing therefore still falls through to the cause matching. The run reports it as an unexpected failure and also reports every one of its expected_causes as stale. This is the result the commit means to prevent. Please match the reader's string, or better, share one constant between edition_reader.py and compat.py. Please also make the test stub use that string.
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
|
Good catch — fixed in |
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
robert3005
left a comment
There was a problem hiding this comment.
let's try this. I think this is reasonable. We can always go and fix up old versions if necessary
Extends compatibility validation to cover both directions defined in
docs/specs/versioning.md, running the full suite (--mode all+check-editions) both every 6 hours (0 */6 * * *UTC, up from weekly Monday 6am UTC) and as a release-blocking check inrelease-checks.yml(called byrelease-tag.ymlbefore tagging, up frommode: lastwithoutcheck-editions):--mode all) instead oflast, and collect every fixture error/panic instead of stopping at the first failure. The all-versions sweep stays alongside edition checks because older published files preserve historical physical encodings that HEAD no longer writes under the same fixture names (such as pre-Tracking Issue: Fix Canonical Decimal #10701 non-canonical decimal widths from compat-gen skips old fixture versions in CI and stops at the first failure #10754).compat-validation.ymlpasses--profile cion every trigger.vortex-compat generate --edition <EDITION>enables a frozencoreedition on the write session (skipping up front only encoding-specific fixtures whose required encodings are not supported by that edition via any serializerwrite_id, and collecting per-fixture write errors without aborting),vortex-compat dump-expectedwrites expected Arrow IPC tables directly from in-memory fixture arrays on HEAD, andcompat.py check-editionsverifies every frozencoreedition with its oldestvortex-datarelease. Known reader defects and expected edition skips are tracked invortex-test/compat-gen/accepted-edition-failures.json(40 grandfathered entries with per-columnexpected_causes, plusexpected_skips) with shrink-only enforcement: any generation failure, unexpected skip, or unlisted reader failure/cause fails the check, and any listed failure or skip that is now resolved also fails until removed.core2025.06.0minimum library version: Raisedmin_library_versionfrom0.40.0to0.42.0inv2025_06.rs,vortex/editions/core/core2025.06.0.toml, anddocs/specs/versioning/editions.md(since0.40.0and0.41.xdo not registervortex.pcoorvortex.zstdinvortex-file'sDEFAULT_REGISTRY), with a single narrow exception inxtask/src/check_editions.rsallowing only that exact correction.Ran
compat.py --profile ci check-editionsacross all 7 frozencoreeditions: 247 passed, 40 accepted, 0 unexpected, 0 stale (fullmode=all+check-editionsworkflow run completed in ~7m). Seevortex-test/compat-gen/DESIGN.mdandvortex-test/compat-gen/README.mdfor details.Assisted by Antigravity (Gemini 4 Neon) and Devin.