Repository navigation
fix(er-cli): give each dictionary test file a unique temp path (#1203) - #1314
Merged
Merged
Conversation
with_dictionary named its file from the pid and a SystemTime timestamp. macOS's clock is microsecond-resolution, so parallel tests in one process could pick the same path and read each other's CSV. A process-wide counter replaces the stamp. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 27, 2026 06:10 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Closes #1203
What
er-cli's test helperwith_dictionarynow names its temp CSV with a process-wideAtomicU64counter instead of aSystemTimetimestamp. Test-only; no new dependency.Why
macOS's clock has microsecond resolution, so two dictionary tests running in parallel in the same process could build the same
er-cli-dictionary-{pid}-{nanos}.csvpath and read each other's rows ("found record with 1 fields"). That mademake checkflaky locally, about 1 run in 3.Proof
cargo test -p er-cli --lib dictionary: 50 consecutive passes on macOS (the ticket's done-when).cargo clippy -p er-cli --all-targets: clean.Risk & rollback
Test code only. Rollback is
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:53287b21-66da-458d-b0c9-8bb6f370b47bonbrians-MacBook-Pro· 2026-11-27T06:21:35Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: e025c92; rust 45950108827, frontend 45950108807, images 45950108883, infra 45950108852, devcontainer 45950108914, all success.
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: built, run 45950108883 success (test-only change; no image input moved).
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: n/a: test-only change, so the deployed binary is behaviourally unchanged. Deploy run 45950512686 on e025c92 concluded success.
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: deploy green on e025c92; drift and kind nightly untouched by a test-only er-cli change.
Donethrough the automation rather than byhand, and the issue closed: er-cli dictionary tests race on a shared temp path on macOS #1203 closed by the merge.
(a skill, a reference, memory) — or nothing new was learned: nothing new: the ticket already described the cause.
Specific to this change
🤖 Generated with Claude Code