Skip to content

test: make entry value runtime log dirs unique#196

Merged
swananan merged 1 commit into
mainfrom
fix/entry-value-runtime-log-dir-race
May 19, 2026
Merged

test: make entry value runtime log dirs unique#196
swananan merged 1 commit into
mainfrom
fix/entry-value-runtime-log-dir-race

Conversation

@swananan
Copy link
Copy Markdown
Owner

Use a process-local atomic sequence in addition to the timestamp because container e2e tests can create runtime log directories concurrently with identical clock values. This avoids failing the helper with File exists when the tests race under CI.

The tradeoff is a small process-local counter and a bounded retry loop on EEXIST. Directory names become longer, but cleanup and target log behavior stay unchanged.

Use a process-local atomic sequence in addition to the timestamp because
container e2e tests can create runtime log directories concurrently with
identical clock values. This avoids failing the helper with File exists when
the tests race under CI.

The tradeoff is a small process-local counter and a bounded retry loop on
EEXIST. Directory names become longer, but cleanup and target log behavior
stay unchanged.
@swananan swananan merged commit 65921a4 into main May 19, 2026
9 checks passed
@swananan swananan deleted the fix/entry-value-runtime-log-dir-race branch May 19, 2026 11:08
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