Repository navigation
ci: stop saving Delta Maven caches on main - #7872
Open
adityavaish wants to merge 2 commits into
Open
adityavaish wants to merge 2 commits into
adityavaish wants to merge 2 commits into
Conversation
The nightly Delta contrib jobs saved four per-profile Linux-delta-maven-* entries (~7.5 GB total) on main, including two separate Spark 3.5 entries from contrib-delta and contrib-delta-s3 due to differing path lists. With main's shared steady-state caches already near the 10 GB Actions cache budget, those entries evicted Linux-java-maven-* and Linux-cargo-ci-* until the next push to main. - Switch contrib-delta to restore-only on main's shared Linux-java-maven-* cache and remove its Save Maven dependencies step. - Remove the Maven cache restore and save steps from contrib-delta-s3: it runs on the plain ubuntu-24.04 runner with ~/.m2/repository and cannot match the two-path container cache version hash, and cold Maven downloads already complete in ~3-4 minutes on this once-per-nightly job. - Document in .github/workflows/README.md that nightly-only jobs run on refs/heads/main and must skip saving caches that only the next nightly reads. Resolves apache#7754 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #7754.
Rationale for this change
The nightly Delta contrib jobs run on
refs/heads/mainand saved four separate full Maven repositories (Linux-delta-maven-*, ~7.5 GB total, including two separate Spark 3.5 entries fromcontrib-deltaandcontrib-delta-s3). Combined withmain's ~5.2 GB of shared caches, this exceeded GitHub's 10 GB cache budget and evictedLinux-java-maven-*andLinux-cargo-ci-*needed by PR and merge-queue runs, following the same problem addressed for docs caches in #6392.What changes are included in this PR?
.github/workflows/delta_contrib_test.yml:contrib-delta: RemovedSave Maven dependenciesandid: maven-cache, and switchedRestore Maven dependenciesto restore-only onmain's sharedLinux-java-maven-${{ hashFiles('**/pom.xml') }}(fallbackLinux-java-maven-), preserving both~/.m2/repositoryand/root/.m2/repositoryso theactions/cachepath-version hash matches.contrib-delta-s3: RemovedRestore Maven dependenciesandSave Maven dependencieswith an explanatory comment; this plain-runner job (~/.m2/repository) cannot match the two-path containerLinux-java-maven-*key and already completes cold Maven installs in ~3–4 minutes once per nightly..github/workflows/README.md: Documented under "Large caches are written on main only" that nightly-only jobs run onrefs/heads/main, so workflows whose Maven caches only the next nightly reads skip saving and restoreLinux-java-maven-*where compatible.How are these changes tested?
dev/ci/check-ci-config.py— all 18 workflow/policy/cache invariants passed, plusdev/ci/local-ci-config.pyandbash -n dev/local-ci.sh(runningcheck_local_ci_config()directly on Windows hits a pre-existingdev\local-ci.shbackslash quirk).python dev/ci/check-suites.py— passed.yaml.safe_loadon.github/workflows/delta_contrib_test.yml— passed (4 jobs, no remainingdelta-maven,maven-cache, oractions/cache/savereferences).npx --yes prettier --end-of-line crlf --check .github/workflows/README.md— passed.