Skip to content
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

Job Summary shows many unrelated projects on self-hosted runner #127

Closed
nnellanspdl opened this issue Apr 8, 2024 · 4 comments
Closed
Assignees
Labels
bug Something isn't working in:setup-gradle
Milestone

Comments

@nnellanspdl
Copy link

Please see example screenshot below. This is just a small snippet, there are hundreds of projects listed here. This happens for each of our builds.

We use self-hosted runners that are long-lived / not ephemeral.

Two of my initial thoughts are a cluttered cache, or a cluttered gradle home.

I've tried to resolve the gradle home issue by running the following first in my workflow:
rm -rf ~/.gradle
However, this doesn't change anything for me.

image

@bigdaz
Copy link
Member

bigdaz commented Apr 8, 2024

@nnellanspdl Each Gradle build writes a results JSON file to $RUNNER_TEMP/.build-results.
The action then iterates over these to generate the job summary.

I guess we should either clean these up after the job completes, or make the directory unique for a Job invocation.

Pending a fix in the action, you can ensure that $RUNNER_TEMP/.build-results is cleared after each job. You shouldn't need to remove the ~/.gradle directory.

@bigdaz bigdaz changed the title Job Summary in GitHub Actions shows many unrelated projects Job Summary shows many unrelated projects on self-hosted runner Apr 8, 2024
@nnellanspdl
Copy link
Author

Clearing that worked, thanks!

@bigdaz
Copy link
Member

bigdaz commented Apr 8, 2024

This is still something we should address in the action implementation.

@bigdaz bigdaz reopened this Apr 8, 2024
@bigdaz bigdaz added bug Something isn't working in:setup-gradle labels Apr 8, 2024
@bigdaz bigdaz self-assigned this Apr 8, 2024
@bigdaz
Copy link
Member

bigdaz commented Apr 9, 2024

Fixed in #133

@bigdaz bigdaz closed this as completed Apr 9, 2024
@bigdaz bigdaz added this to the v3.3 milestone Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in:setup-gradle
Projects
None yet
Development

No branches or pull requests

2 participants