Skip to content

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
panchenkoai merged 2 commits into
mainfrom
harness/empty-table-manifest-mask
Nov 25, 2026
Merged

panchenkoai merged 2 commits into
mainfrom
harness/empty-table-manifest-mask

Conversation

@panchenkoai

Copy link
Copy Markdown
Collaborator

Why

Nightly Live run 45622453303, job "Full live suite": chunking_stand::stand_empty_table_under_chunk_by_days_mysql and ..._mssql fail at tests/live/chunking_stand.rs:1275. The two EmptyRun values differ only in the masked manifest name: manifest-stand_dated_#####_#_########T######.###_######.json vs ..._#####.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_runs in 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.
  • Offline unit test digit_mask_tests (runs in live_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

Check Result
RED, per-digit mask on main's behaviour: cargo test --test live_suite digit_mask left: "manifest-stand_dated_#####_#_########T######.###_#####.json" / right: "..._######.json"; test result: FAILED. 1 passed; 1 failed
GREEN with the fix: same command test result: ok. 2 passed; 0 failed
clippy --all-targets -D warnings, default features and --no-default-features --features jemalloc both exit 0
pre-push offline suite (devbox) Summary 1381 tests run: 1381 passed, 3440 skipped
Cyrillic grep 0

Live 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.

…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.
@panchenkoai
panchenkoai merged commit 1d15cf1 into main Nov 25, 2026
24 checks passed
@panchenkoai
panchenkoai deleted the harness/empty-table-manifest-mask branch November 25, 2026 21:25
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.

1 participant