adityavaish opened a new pull request, #7828:
URL: https://github.com/apache/datafusion-comet/pull/7828
<!-- copilot-assessment:v1 -->
### Agent assessment
Self-reported assessment, not an independent review.
Assessed revision: `85f62dccfcf4a58fddcdf52b6336ef3e7e8ca44a`
| Dimension | Assessment | Rationale |
|---|---|---|
| Change confidence | 9/10 | ↑ Matches the existing `lint-java` retry loop
in `pr_build_linux.yml` and passes `check-suites.py`, all 18
`check-ci-config.py` workflow/policy invariants, YAML/`bash -n` checks, and 10
behavioral retry tests.<br>↓ Live GitHub Actions execution and `actionlint`
have not yet run on this branch. |
<!-- /copilot-assessment -->
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases. You can
link an issue to this PR using the GitHub syntax. For example `Closes #123`
indicates that this PR will close issue #123.
-->
Closes #7759.
## Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in
the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your
changes and offer better suggestions for fixes.
-->
In `cache-refresh-only` mode, the TPC-H (`verify-benchmark-results-tpch`)
and TPC-DS (`verify-benchmark-results-tpcds`) jobs are the only Maven builds in
`.github/workflows/pr_build_linux.yml`. Without retry logic on transient Maven
Central download failures (such as HTTP 429/403/404 or transfer errors), a
failed build skips saving the Maven cache and leaves fork caches cold.
## What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is
sometimes worth providing a summary of the individual changes in this PR.
-->
- Wrapped the `Build project` (`./mvnw -B -Prelease install -DskipTests`)
step in both `verify-benchmark-results-tpch` and
`verify-benchmark-results-tpcds` in `.github/workflows/pr_build_linux.yml` with
the same bounded download-error retry loop used by `lint-java`:
- Up to 4 attempts with exponential backoff (`10s`, `20s`, `40s`) plus
`0-4s` jitter and `-U` on retries (so cached Maven 404s are refreshed).
- Explicit `shell: bash`, `set -o pipefail`, and `mktemp` log cleanup via
`trap`.
- Retries only when `[ERROR]` / `[FATAL]` download markers match (`No
plugin found for prefix`, `could not be resolved`, `Could not transfer`, `Could
not find artifact`, `ClassNotFoundException: scala.tools.nsc.Main`), so compile
errors fail immediately on attempt 1.
## How are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are
they covered by existing tests)?
-->
- `python dev/ci/check-suites.py` — passed.
- `dev/ci/check-ci-config.py` — all 18 workflow/policy/cache/checkout
invariants and `local_ci_config.config()` passed (running
`check_local_ci_config` directly on Windows hits a pre-existing `bash -n
dev\local-ci.sh` path separator quirk).
- Verified YAML parsing (`yaml.safe_load`), `bash -n` syntax validation, and
10 behavioral tests against the extracted retry script under `bash --noprofile
--norc -eo pipefail` (immediate success, 429/404/`[FATAL]`/CNFE/plugin-prefix
retries with `-U` and backoff ranges, 4-attempt exhaustion, compile errors
failing on attempt 1, `[WARNING]` non-retry, log truncation between attempts,
and temp-file cleanup) — all passed.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]