Skip to content

test(runner): fix flaky redirect_error test under --parallel#796

Merged
Chemaclass merged 1 commit into
mainfrom
fix/flaky-redirect-error-parallel
Jul 14, 2026
Merged

test(runner): fix flaky redirect_error test under --parallel#796
Chemaclass merged 1 commit into
mainfrom
fix/flaky-redirect-error-parallel

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

🤔 Background

The "Redirect error with log" test intermittently failed in the Ubuntu parallel CI job. It wrote to a fixed temp_error.log in the working directory, shared across tests and parallel workers, so a concurrent write/rm could race the read and yield empty/stale output. Not reproducible in isolation (0 failures across many parallel runs of the file alone).

💡 Changes

  • Use a per-test bashunit::temp_file (unique, auto-cleaned) instead of a fixed shared filename, removing the parallel race
  • Drop the now-unneeded tear_down cleanup of the shared file

The test wrote to a fixed 'temp_error.log' in the working directory
shared across tests and parallel workers, so a concurrent write/rm could
race the read and yield empty/stale output (intermittent CI failure of
'Redirect error with log' in the Ubuntu parallel job). Use a per-test
bashunit::temp_file, which is unique and auto-cleaned.
@Chemaclass Chemaclass added the bug Something isn't working label Jul 14, 2026
@Chemaclass Chemaclass self-assigned this Jul 14, 2026
@Chemaclass Chemaclass merged commit 36b7625 into main Jul 14, 2026
37 checks passed
@Chemaclass Chemaclass deleted the fix/flaky-redirect-error-parallel branch July 14, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant