Fix parallel ctest runs sharing the same TEST_TMPDIR#30904
Merged
rahulb-yb merged 1 commit intoyugabyte:masterfrom Apr 14, 2026
Merged
Fix parallel ctest runs sharing the same TEST_TMPDIR#30904rahulb-yb merged 1 commit intoyugabyte:masterfrom
rahulb-yb merged 1 commit intoyugabyte:masterfrom
Conversation
Contributor
|
Trigger Jenkins |
Contributor
|
Phorge diff synced: D51698 Jenkins build has been triggered. Results will be posted here once it completes. |
Contributor
|
❌ Jenkins build for commit Exceptions:
🚫 Failed Landing Requirements'Multi-Build Test Failures' failed
🔨 DB Build/Test Job Summary
|
yb_build.sh was calling ensure_test_tmp_dir_is_set() before launching ctest, which exported TEST_TMPDIR with yb_build.sh's own PID into the environment. All parallel run-test.sh processes spawned by ctest inherited this value and skipped creating their own unique directories, causing them to clobber each other's temp files mid-test. The call is unnecessary since run-test.sh calls ensure_test_tmp_dir_is_set() itself, creating a unique directory per process.
b3a52bc to
e61af25
Compare
Contributor
|
Trigger Jenkins |
Contributor
|
Phorge diff synced: D51698 Jenkins build has been triggered. Results will be posted here once it completes. JenkinsBot |
Contributor
|
✅ Jenkins build for commit Passed: 9 🔨 DB Build/Test Job Summary
JenkinsBot |
svarnau
approved these changes
Apr 14, 2026
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.
yb_build.sh was calling ensure_test_tmp_dir_is_set() before launching
ctest, which exported TEST_TMPDIR with yb_build.sh's own PID into the
environment. All parallel run-test.sh processes spawned by ctest
inherited this value and skipped creating their own unique directories,
causing them to clobber each other's temp files mid-test.
The call is unnecessary since run-test.sh calls ensure_test_tmp_dir_is_set()
itself, creating a unique directory per process.
Phorge: D51698