gradle / gradle-build-action

Execute your Gradle build and trigger dependency submission
https://github.com/marketplace/actions/gradle-build-action
MIT License
679 stars 97 forks source link

Long delay in post-action if cache entry is written #1038

Closed bigdaz closed 10 months ago

bigdaz commented 10 months ago

At times, the "Post Run" step for the action takes several minutes to complete. In the logs this appears as a long delay between the final Completed post-action step being logged and the step completing.

In the action logs, this appears like so:

2024-01-13T18:53:59.3082933Z ##[debug]Search path '/home/runner/work/test-dependency-graph/test-dependency-graph/dependency-graph-reports'
2024-01-13T18:53:59.3084191Z Completed post-action step
2024-01-13T18:56:10.0272937Z ##[debug]Node Action run completed with exit code 0
2024-01-13T18:56:10.0277583Z ##[debug]Finishing: Post Run gradle/gradle-build-action@main

This behaviour only appears when one or more cache entries are saved. It does not appear when cache-read-only is true, or if there is no need to save a cache entry.

bigdaz commented 10 months ago

This workflow run provides an example. Note that a single entry (less than 2Mb of data) is written to the GitHub Actions cache.