Skip to content

ci: stop the docs-auto-update treadmill from exhausting free CI budgets - #2396

Merged
squid-protocol merged 1 commit into
mainfrom
ci/throttle-auto-update-treadmill
Aug 28, 2026
Merged

ci: stop the docs-auto-update treadmill from exhausting free CI budgets#2396
squid-protocol merged 1 commit into
mainfrom
ci/throttle-auto-update-treadmill

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Problem

main takes ~43 commits/day (last 7d: ~300 commits), and ~69% are
docs: auto-update bot commits
— 292 "LLM architectural brief" regens
in 14 days (~21/day). The brief embeds a Timestamp / Scan Duration /
Git Commit, so every scan diffs; its PR auto-merges; that merge is
another push to main.

Every one of those pushes fired a full-precision galaxyscope run on
two mirrored pipelines:

Pipeline Effect
gitgalaxy.yml full-report job ~40 full-precision runs/day; the 2026-07-25 runaway (13 commits in 13 min) came from here
azure-pipelines.yml ~40 runs/day exhausts the Azure DevOps org's free Microsoft-hosted minute grant → every run fails with "no free minutes remaining" → a permanent red X on every main commit, for a scan gitgalaxy.yml already does for free

Changes

  • gitgalaxy.yml: full-report moves from per-push → daily schedule
    (cron: "17 5 * * *") + workflow_dispatch. push: trigger removed
    (nothing else in the file used it — the pre-gate jobs are
    pull_request-only). The per-PR --fail-on-malware gate is unchanged.
  • azure-pipelines.yml: trigger on v* tags + a weekly heartbeat
    (cron: "0 6 * * 1") instead of every push to main — ~5 runs/month,
    enough to keep a "still green on Azure" reference. Shallow checkout
    (fetchDepth: 1; the audit reads the working tree, not history).

zizmor: no new findings (1 pre-existing informational, untouched).

Follow-ups (not in this PR)

  • Make the LLM brief itself stable — drop the volatile
    timestamp/duration/commit lines from llm_recorder.py — so most
    scheduled runs produce no PR at all.
  • Azure side (@squid-protocol): disable the squid-protocol.gitgalaxy
    pipeline (Pipelines → Settings) or request the free-parallelism grant
    (aka.ms/azpipelines-parallelism-request) to green the historical commits.

🤖 Generated with Claude Code

main takes ~40 pushes/day and ~70% of them are `docs: auto-update` bot
commits (~21/day from the LLM brief alone -- it embeds a timestamp so it
always diffs, and its PR auto-merges, which is itself another push).

Two mirrors of the same full-precision galaxyscope run fired on every one
of those pushes:

- gitgalaxy.yml's `full-report` job (SARIF/SBOM/LLM brief). Moved from
  per-push to a daily schedule + workflow_dispatch. The brief is an
  orientation doc and the SARIF feed is a dashboard -- daily is plenty.
  The real per-PR malware gate is the unchanged PRE-GATE jobs.
- azure-pipelines.yml. main pushes there ~40x/day exhausted the Azure
  DevOps org's free Microsoft-hosted minute grant, so every run failed
  with "no free minutes remaining" -- a permanent red X on every main
  commit. Now triggers on `v*` tags + a weekly heartbeat only (~5
  runs/month), keeping it as a "still green on Azure" reference. Also
  shallow-checkout (the audit reads the working tree, not history).

Follow-ups: make the LLM brief itself stable (drop the volatile
timestamp/duration/commit lines) so most scheduled runs are no-ops; and
on the Azure side, disable the pipeline or request the free-parallelism
grant to green the historical commits.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit e3d0250 into main Aug 28, 2026
28 checks passed
@squid-protocol
squid-protocol deleted the ci/throttle-auto-update-treadmill branch August 28, 2026 19:11
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