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 lists unwanted results for builds invoked by tooling and/or tests #28

Open
snazy opened this issue Dec 15, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@snazy
Copy link

snazy commented Dec 15, 2022

We have CI workflows/jobs setup w/ the Gradle build action - it's running fine w/o any issues for quite a while now.

The only thing that I do not fully understand is that the build summary lists a lot of "phantom" Gradle builds that requested the classes task (see screenshot), although the workflow does not do that, neither do our build files directly.

We do use the Quarkus plugin in our builds, and I suspect that the Quarkus plugin somehow triggers/causes these "phantom" builds listed in the summary.

Would it be possible to hide these "phantom" builds in the action?

image
Workflow reference
"Heads-up" on the Quarkus side: quarkusio/quarkus#29890

@bigdaz
Copy link
Member

bigdaz commented Feb 18, 2023

The gradle-build-action adds an init-script to Gradle User Home that applies to all Gradle build invocations. This allows the action to capture details of all builds executed in a GitHub Actions workflow. This has the benefit of allowing users to configure a single "Setup Gradle" step in their workflow job and then have simple run actions to invoke Gradle.

The downside of this approach is that any Gradle invocation that uses the same Gradle User Home will have the init script applied, and the resulting builds will appear in the summary. This can include builds run as part of integration tests or by a tool like Quarkus.

I'll leave this issue open since we should make it possible/easier for these builds not to pollute the job summary.

@bigdaz bigdaz added the enhancement New feature or request label Feb 18, 2023
@bigdaz bigdaz changed the title Job summary lists "phantom" invocations against classes Job summary lists unwanted results for builds invoked by tooling and/or tests Feb 18, 2023
@bigdaz bigdaz transferred this issue from gradle/gradle-build-action Feb 9, 2024
@nnellanspdl
Copy link

I'm having this issue, but I think my problem is slightly different.

I'm one of the strange ones who uses long-lived github runners. Over time, these runners run many different gradle builds from many different projects.

It has gotten to the point now when I do a single gradle build of a single project, my build summary shows 100's of lines, showing various projects that are not related to my current build.

Is this something to do with cache, or possibly with a cluttered gradle user home? I've added a step at the beginning of my workflow that clears ~/.gradle but that doesn't seem to help.

@bigdaz
Copy link
Member

bigdaz commented Apr 5, 2024

@nnellanspdl Yes this likely has a different cause. Can you please open a separate issue to track this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants