Skip to content

test: avoid numpy 2.5 warning, stop PR runs from filling the actions cache - #4416

Merged
henryiii merged 3 commits into
mainfrom
henryiii/ci-cache-cleanup
Oct 9, 2026
Merged

henryiii merged 3 commits into
mainfrom
henryiii/ci-cache-cleanup

Conversation

@henryiii

@henryiii henryiii commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

I did the manual delete.

🤖 AI text below 🤖

The repository actions cache is at the 10 GB limit, so the 309 MB s390x container image gets evicted and the "Create container" step reruns for ~36 minutes. Most of the space is micromamba docs environments (1.2 GB each, two per ref) saved by PR runs. Caches saved from a PR are only readable by that PR, so they are dead weight.

  • Key the s390x container cache only on requirements-test-basic.txt. awkward-cpp/pyproject.toml is not installed into the container, so a classifier change (chore: add Python 3.15 classifiers and test on 3.15 #4412) should not invalidate it.
  • PR runs restore the s390x container from main but do not save it (actions/cache/restore + conditional actions/cache/save).
  • setup-micromamba has no restore-only mode, so its cache is disabled on pull_request events. A miss costs about 90 seconds per job.
  • Both docs jobs use identical create-args so they share one micromamba cache entry on main.

Existing stale PR caches need a one-time manual gh cache delete.

The repository cache sits at the 10 GB limit, so the s390x container
image is evicted and rebuilt on most runs (36 minutes).

- Key the s390x container only on requirements-test-basic.txt; the
  awkward-cpp pyproject.toml is not installed into the container.
- Give both docs jobs identical create-args so they share one 1.2 GB
  micromamba cache entry instead of two.
- Delete a PR's caches when it is closed; they are unreachable from
  other refs and only take space.

Assisted-by: ClaudeCode:claude-fable-5-1
ClaudeCode:claude-fable-5-1
PR runs restore the s390x container from main but no longer save it.
micromamba has no restore-only mode, so PR runs skip its cache; a
miss costs about 90 seconds per job. The cleanup workflow is no longer
needed.

Assisted-by: ClaudeCode:claude-fable-5-1
ClaudeCode:claude-fable-5-1
@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.21%. Comparing base (c437258) to head (54164d1).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

see 1 file with indirect coverage changes

NumPy 2.5 deprecates setting ndarray.shape; warnings are errors in
the test suite.

Assisted-by: ClaudeCode:claude-fable-5-1
ClaudeCode:claude-fable-5-1
@henryiii henryiii changed the title ci: stop PR runs from filling the actions cache tests: avoid numpy 2.5 warning, stop PR runs from filling the actions cache Oct 8, 2026
@henryiii henryiii changed the title tests: avoid numpy 2.5 warning, stop PR runs from filling the actions cache test: avoid numpy 2.5 warning, stop PR runs from filling the actions cache Oct 8, 2026
@github-actions github-actions Bot added type/test PR title type: test (set automatically) and removed type/tests labels Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

The documentation preview is ready to be viewed at https://preview.awkward-array.org/PR4416/

@ianna ianna left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@henryiii — thank you! This is great. As discussed yesterday it should be merged. Thanks

@henryiii
henryiii merged commit 42e9167 into main Oct 9, 2026
68 of 71 checks passed
@henryiii
henryiii deleted the henryiii/ci-cache-cleanup branch October 9, 2026 14:01

This branch was previously deployed

1 inactive deployment
docs — 54164d14 Deployed Oct 9, 2026 by henryiii via Remove Branch Preview #53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/test PR title type: test (set automatically)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants