ascheman opened a new pull request, #13079:
URL: https://github.com/apache/maven/pull/13079
The `consolidate-caches` job reds the whole CI run when a transient GitHub
artifact-download flake hits its `Download Caches` step
(`actions/download-artifact`, ~2 GB of `cache-<os>*` per OS), even though the
entire build + IT matrix is green:
```
##[error]Unable to download artifact(s): … Artifact download failed after 5
retries.
```
The job's only real output — `Publish cache` — is already gated `if:
github.event_name != 'pull_request'`, so on a PR it downloads ~2 GB just to
discard it, and its sole failure mode is this flake.
This:
- **skips the job on `pull_request`** (`if: ${{ github.event_name !=
'pull_request' }}`) — no payoff there + saves the ~2 GB download per PR run;
- **`continue-on-error: true`** so on non-PR runs the flake never reds the
run — the consolidated cache is best-effort (the next run rebuilds it).
Discussed on Slack with @sjaranowski and @cstamas (both OK with the
approach). Example failing run:
https://github.com/apache/maven/actions/runs/34209185905
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]