-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Override temp directory in test run step #47544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a race condition that occurs when multiple parallel test executions attempt to create subdirectories under the default system temp directory (/tmp) by overriding the Java temp directory to use the Azure Pipelines agent-specific temp directory.
- Adds
-Djava.io.tmpdir=$(Agent.TempDirectory)to all Maven test execution commands - Applies the fix to both federated auth and non-federated auth test paths
- Covers both "From Source" and standard test runs
|
The test run looks fine for the change, and the failures are known errors in previous runs. |
Interesting, this issue happens again in the new test run. It appears that the root cause of the issue is in the service test code. I'll hold off this PR. |
Fixed the following race condition issue while creating the sub-folders under the default temp directory.
Repro Pipeline Run