Skip to content

Fix flaky DefaultWorkerProcessBuilderIntegrationTest #34426

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

Merged

Conversation

blindpirate
Copy link
Collaborator

In the past, this test asserts the test class path includes current user home. This is true on Hetzner machines, because project directory is in user home (/home/tcagent1/work/f63322e10dd6b396), but not true on EC2 agents, because on EC2 agents the project directory is in /mnt/tcagent1/work/f63322e10dd6b396.

Example

This PR fixes this by getting correct gradle user home in integration context.

@blindpirate blindpirate requested review from a team July 28, 2025 03:17
@blindpirate

This comment has been minimized.

@bot-gradle

This comment has been minimized.

@bot-gradle

This comment has been minimized.

@blindpirate blindpirate added this pull request to the merge queue Jul 29, 2025
@bot-gradle bot-gradle added this to the 9.1.0 RC1 milestone Jul 29, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 29, 2025
@blindpirate

This comment has been minimized.

In the past, this test asserts the test class path includes current user home. This is true on Hetzner machines, because project directory is in user home (`/home/tcagent1/work/f63322e10dd6b396`), but not true on EC2 agents, because on EC2 agents the project directory is in `/mnt/tcagent1/work/f63322e10dd6b396`.

[Example](https://ge.gradle.org/s/sncrks4ihxvey/tests/task/:core:isolatedProjectsIntegTest/details/org.gradle.process.internal.worker.DefaultWorkerProcessBuilderIntegrationTest/test%20classpath%20does%20not%20contain%20nonexistent%20entries?top-execution=1)

This PR fixes this by getting correct gradle user home in integration context.

Co-authored-by: Bo Zhang <[email protected]>
@bot-gradle

This comment has been minimized.

@bot-gradle bot-gradle force-pushed the bz/fix-flaky-DefaultWorkerProcessBuilderIntegrationTest branch from a485e89 to a3430f0 Compare July 29, 2025 07:34
@blindpirate

This comment has been minimized.

@bot-gradle

This comment has been minimized.

@bot-gradle
Copy link
Collaborator

The following builds have passed:

@blindpirate blindpirate added this pull request to the merge queue Jul 29, 2025
Merged via the queue into master with commit 50c8d2c Jul 29, 2025
32 checks passed
@blindpirate blindpirate deleted the bz/fix-flaky-DefaultWorkerProcessBuilderIntegrationTest branch July 29, 2025 08:59
@blindpirate
Copy link
Collaborator Author

@bot-gradle cherrypick to release

@bot-gradle
Copy link
Collaborator

I have cherry-picked to PR #34467.

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.

2 participants