Repository navigation
ci(fleet-search): drift guard for the atlas-search writer copies (#5920) - #6393
Conversation
pkgs/fleet/crates/fleet-search/src/{pyjson,render}.rs are verbatim copies of the atlas-search writers (fleet step 5, #5433) with no mechanical drift guard: a fix to a float-formatting or escaping edge case in one copy would silently break the byte-parity contract.
Add .github/scripts/check-fleet-search-parity.sh: after removing each file's pinned four-line parity header (lines 2-5), both pairs must be byte-identical; a changed or removed header fails too. Contract tests (.test.sh) pin pass/fail shapes: verbatim pass, body drift in either copy fails, changed/removed header fails, mirrored change passes. Wire both into a new basic-tier workflow (fleet-search-parity-guard, merge_group + dispatch, following the mcpx-fix-test-guard / production-line-guard pattern) and document it in .github/ci-policy.md.
Both copies now reference the #5433 contract and the guard: atlas-search files gain the parity header (source of the verbatim copy, mirror changes, guard path), fleet files gain the guard line under their port header. No writer behavior changes.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Fixes #5920 (queue task 10804; triage route from task 10317)
What
The fleet-search copies of atlas-search's
pyjson.rs/render.rswriters (#5433 byte-parity contract) had no mechanical drift guard. This adds one, following the repo's existing guard pattern (.github/scripts/check-*.sh+.test.sh+ a basic-tier workflow, as in mcpx-fix-test-guard / production-line-guard):.github/scripts/check-fleet-search-parity.sh— for each pair, removes the file's parity header (lines 2–5, directly after the shared first line) and requires the remainders to be byte-identical. The header text itself is pinned in the script: a changed or removed header fails too, and an intentional header change must update the script in the same PR..github/scripts/check-fleet-search-parity.test.sh— contract tests: verbatim copies pass; body drift in either copy fails; changed fleet header fails; removed atlas header fails; a change mirrored in both copies passes..github/workflows/fleet-search-parity-guard.yml— new basic-tier workflow (basic: fleet-search pyjson/render parity (#5920)),merge_group+workflow_dispatch, pure bash, runs the contract tests and the guard..github/ci-policy.md— documents the guard next to the other basic-tier guards.Verification
fleet-search parity: OK.🤖 Queue worker lane code-m, task 10804.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit