Closed hfhbd closed 1 year ago
Thanks for the report. Different dependency graphs for different Gradle task executions is expected: this represents the actual dependencies resolved during the build.
However, each of these graphs should have a different correlator, which should correspond to the graph file name ci-build
, ci-build-1
, etc. For some reason that's not working in your case and this is a bug. I'll investigate.
This is working as expected in the automated tests:
If you compare ci-full-check-multiple-builds.json
and ci-full-check-multiple-builds-1.json
, you'll see that the correlator value is different in each. This is done in the init-script, by setting a GITHUB_JOB_SUMMARY
system property to match the output file name. In your case, the output file name is being set, but the system property doesn't seem to be heeded.
Can you please run a test to print out the values of System.env.GITHUB_JOB_SUMMARY
and System.getProperty('GITHUB_JOB_SUMMARY')
in your build script? The env var should always be ci-build
but the system property should have the unique suffix. That could help narrow down where the problem is occurring (in the init-script that writes the property, or in the plugin that reads it).
Hey, after analyzing the ci-build
files again, I think there is no problem: all files have different names and different CI aggregators, so this looks good.
But they still produce different scopes for the same dependencies depending on the executed tasks: direct
and indirect
.
I have no idea which dependencies are shown in the web view, if ever.
Thanks for confirming.
But they still produce different scopes for the same dependencies depending on the executed tasks: direct and indirect.
This is quite possible: a dependency that is used as a direct dependency for one execution could still be used as an indirect dependency in a different execution. Do you have build scans for the 2 different executions (this should provide an explanation of what's going on).
By the way when inspecting your project I discovered a separate issue with Dependency Submission.
I run the following Gradle tasks:
build
anddetekt
, so I get 3 dependency graphs (build
,detekt
,cleanup
). These files differs:detekt
) misses many artifacts.direct
in the first graph, butindirect
in the second run.cleanup
graph is empty.AFAIK GitHub uses the latest one (same correlator, higher timestamp) as final results, resulting in less dependencies.
Results: https://github.com/hfhbd/ComposeTodo/suites/15996628865/artifacts/913210709
CI run: https://github.com/hfhbd/ComposeTodo/actions/runs/6133473569/job/16645352703
CI config: