Skip to content

Optimize GitHub Actions cost#184

Merged
finedesignz merged 4 commits into
mainfrom
fix/actions-cost-optimization
May 29, 2026
Merged

Optimize GitHub Actions cost#184
finedesignz merged 4 commits into
mainfrom
fix/actions-cost-optimization

Conversation

@finedesignz
Copy link
Copy Markdown
Owner

Optimize GitHub Actions cost

May spend was $4.46 across 273 runs, driven by run volume on push (qc.yml = 102 runs/mo). These edits cut redundant runs without losing safety coverage.

Changes

qc.yml (the volume driver — biggest win)

  • Added top-level concurrency with cancel-in-progress: true → superseded runs on rapid pushes/PR updates are auto-cancelled.
  • Added paths-ignore: ['**.md','docs/**','.gitignore','LICENSE'] to both push and pull_request → docs-only changes no longer spin up the full PG-backed gate or the post-deploy smoke. Real code changes still fully covered.

docs-drift.yml

  • Added concurrency cancel-in-progress. Triggers left untouched — it still watches hub/src/**, docs/openapi.json, docs/api.md (already doc/spec-scoped, never ran on every push).

mobile-shell-typecheck.yml

  • Added concurrency cancel-in-progress. Already path-scoped to mobile/tauri/**; no paths-ignore added (would conflict with existing paths allowlist).

release-supervisor.yml

  • Added concurrency with cancel-in-progress: **false** (don't cancel an in-flight signed release build). Tag-only trigger left intact.

Left unchanged (already cost-optimal)

  • mobile-ios-build.yml — macOS 10×, but already gated by vars.ENABLE_IOS_BUILD == 'true' + workflow_dispatch/tags/pull_request scoped to mobile/tauri/**, and already has concurrency. Does not run on unrelated pushes.
  • release-mobile.yml — tags (mobile-v*.*.*) + workflow_dispatch only, already has concurrency. No push-on-branch building.

Expected savings

  • Eliminates superseded qc/docs/mobile runs on rapid iteration (cancel-in-progress).
  • Skips full qc gate + prod smoke on doc-only pushes/PRs.
  • No release pipelines altered functionally; no OS runners removed.

🤖 Generated with Claude Code

finedesignz and others added 4 commits May 29, 2026 12:25
…obile build

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…obile build

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…obile build

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…obile build

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@finedesignz finedesignz merged commit d24639b into main May 29, 2026
3 of 4 checks passed
@finedesignz finedesignz deleted the fix/actions-cost-optimization branch May 29, 2026 20:43
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.

1 participant