Skip to content

fix(release): handle pipefail in sandbox creation for strict mode#589

Merged
Chemaclass merged 1 commit intomainfrom
fix/flaky-strict-mode-test-job
Feb 13, 2026
Merged

fix(release): handle pipefail in sandbox creation for strict mode#589
Chemaclass merged 1 commit intomainfrom
fix/flaky-strict-mode-test-job

Conversation

@Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Feb 13, 2026

Summary

  • set +e alone doesn't disable pipefail, causing tar pipe failures to propagate in strict mode
  • Use subshell + || pattern to isolate shell option changes from the caller
  • Protect cp fallback with || true for transient files during parallel execution

Test plan

  • ./bashunit --strict tests/unit/release_sandbox_test.sh passes
  • ./bashunit --parallel --simple --strict tests/ passes (750 tests, 0 failures)
  • make sa passes (ShellCheck)
  • CI strict mode job passes

set +e alone doesn't disable pipefail, causing tar pipe failures to
propagate in strict mode. Use subshell + || pattern instead to isolate
shell option changes from the caller.
@Chemaclass Chemaclass self-assigned this Feb 13, 2026
@Chemaclass Chemaclass added the bug Something isn't working label Feb 13, 2026
@Chemaclass Chemaclass merged commit d715421 into main Feb 13, 2026
31 of 32 checks passed
@Chemaclass Chemaclass deleted the fix/flaky-strict-mode-test-job branch February 13, 2026 18:48
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