Repository navigation
harness: the empty-table delivery cells mask a run id by digit runs, so a 5-digit and a 6-digit pid compare equal - #1244
Merged
Conversation
…so a 5-digit and a 6-digit pid compare equal The manifest name is manifest-<export>_<UTC ms>_<pid>.json and a pid has no fixed width. The cell masked every digit to one #, so two runs whose pids differed in width (5 vs 6 digits) read as different deliveries. The mask is now one shared function (mask_digit_runs) that collapses each digit run to one #, with an offline unit test that fails on the per-digit mask.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Nightly Live run 45622453303, job "Full live suite":
chunking_stand::stand_empty_table_under_chunk_by_days_mysqland..._mssqlfail at tests/live/chunking_stand.rs:1275. The twoEmptyRunvalues differ only in the masked manifest name:manifest-stand_dated_#####_#_########T######.###_######.jsonvs..._#####.json.The product names the manifest
manifest-<export>_<UTC ms>_<pid>.json(fresh_run_id, src/pipeline/summary.rs). A pid has no fixed width, and the cell masked every digit to its own#, so two runs whose pids differed in width (5 vs 6 digits) read as different deliveries. The cell was non-deterministic by pid, not by product behaviour.What
mask_digit_runsin tests/common/runner.rs collapses each run of ASCII digits to one#. It is the only digit mask in tests/; the cell's inline per-digit closure is replaced by it. No sync point added, one hand-synced digit count removed.digit_mask_tests(runs inlive_suite, not ignored): a 5-digit and a 6-digit pid mask to the same manifest name; names that differ in letters or digit placement still differ.Evidence
cargo test --test live_suite digit_maskleft: "manifest-stand_dated_#####_#_########T######.###_#####.json"/right: "..._######.json";test result: FAILED. 1 passed; 1 failedtest result: ok. 2 passed; 0 failed--all-targets -D warnings, default features and--no-default-features --features jemallocSummary 1381 tests run: 1381 passed, 3440 skippedLive cells (
stand_empty_table_under_chunk_by_days_{postgres,mysql,mssql,oracle}) were not run here: the devbox live slots are held by another run. Commands are in the PR comment / report for rivet-runner.Tests-only change: no
src/diff, so no Invariants section.