Skip to content

ci: reduce low-signal Actions usage#1241

Open
MilesCranmerBot wants to merge 1 commit into
astroautomata:masterfrom
MilesCranmerBot:bot/ci-cost-trim
Open

ci: reduce low-signal Actions usage#1241
MilesCranmerBot wants to merge 1 commit into
astroautomata:masterfrom
MilesCranmerBot:bot/ci-cost-trim

Conversation

@MilesCranmerBot

Copy link
Copy Markdown
Contributor

This PR reduces low-signal Actions usage without removing the required Linux PR gate.

Changes

  • Added PR concurrency cancellation to CI, Windows, macOS, docs workflows
  • Narrowed Linux push trigger from all branches to master/release-*/tags
  • Moved Docker CI to monthly/manual schedule
  • Moved Docker Large Nightly from daily ARM64+AMD64 to monthly AMD64, with optional ARM64 via manual dispatch
  • Moved Apptainer CI to monthly/manual
  • Removed daily Docker deploy schedule (keeps push/tag triggers)
  • Reduced conda-forge from daily to weekly
  • Fixed backend-update to skip redispatch when PR already exists; only dispatches Linux/Windows/macOS
  • Removed unnecessary pip caches from update_backend and validate_papers_yml

Expected savings

Dominant cost centres were Docker_Large_Nightly (28.5k min/90d, mostly ARM64 QEMU), Linux push on all branches (12.4k min), and conda-forge (2.5k min, all failing).

Required checks

Linux test job names are unchanged; branch protection is unaffected.

Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>

@MilesCranmer MilesCranmer 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.

@MilesCranmerBot please address each comment

Comment thread .github/workflows/CI.yml

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.

Maybe pull_request should also include release branches?

Comment on lines +4 to +5
schedule:
- cron: "0 10 8 * *"

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.

We should definitely still run on pull_request if the dependencies change or if apptainer file changes

# This means the job will run at 5am EST.
- cron: "0 10 * * *"
# This will automatically run on master branch only.
- cron: "0 10 * * 1"

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.

Similar comment to apptainer

@@ -1,18 +1,8 @@
name: Docker

on:

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.

Similar comment to apptainer

@MilesCranmer

Copy link
Copy Markdown
Member

Also note that CI is failing so needs fix for that too

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.

2 participants