Skip to content

ci: stop saving Delta Maven caches on main - #7872

Open
adityavaish wants to merge 2 commits into
apache:mainfrom
adityavaish:adityavaish-delta-maven-cache-eviction
Open

adityavaish wants to merge 2 commits into
apache:mainfrom
adityavaish:adityavaish-delta-maven-cache-eviction

Conversation

@adityavaish

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #7754.

Rationale for this change

The nightly Delta contrib jobs run on refs/heads/main and saved four separate full Maven repositories (Linux-delta-maven-*, ~7.5 GB total, including two separate Spark 3.5 entries from contrib-delta and contrib-delta-s3). Combined with main's ~5.2 GB of shared caches, this exceeded GitHub's 10 GB cache budget and evicted Linux-java-maven-* and Linux-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: Removed Save Maven dependencies and id: maven-cache, and switched Restore Maven dependencies to restore-only on main's shared Linux-java-maven-${{ hashFiles('**/pom.xml') }} (fallback Linux-java-maven-), preserving both ~/.m2/repository and /root/.m2/repository so the actions/cache path-version hash matches.
    • contrib-delta-s3: Removed Restore Maven dependencies and Save Maven dependencies with an explanatory comment; this plain-runner job (~/.m2/repository) cannot match the two-path container Linux-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 on refs/heads/main, so workflows whose Maven caches only the next nightly reads skip saving and restore Linux-java-maven-* where compatible.

How are these changes tested?

  • dev/ci/check-ci-config.py — all 18 workflow/policy/cache invariants passed, plus dev/ci/local-ci-config.py and bash -n dev/local-ci.sh (running check_local_ci_config() directly on Windows hits a pre-existing dev\local-ci.sh backslash quirk).
  • python dev/ci/check-suites.py — passed.
  • PyYAML yaml.safe_load on .github/workflows/delta_contrib_test.yml — passed (4 jobs, no remaining delta-maven, maven-cache, or actions/cache/save references).
  • npx --yes prettier --end-of-line crlf --check .github/workflows/README.md — passed.

adivaish and others added 2 commits December 2, 2026 20:11
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: the nightly's Delta Maven caches push main's shared Maven and cargo caches out of the budget

2 participants