Repository navigation
chore(ci): extract remaining workflows' inline bash into scripts/ci/ (#724) - #739
Merged
Merged
Conversation
…724) Ten scripts across six workflows (-389/+44 workflow lines), bodies extracted programmatically so the logic is byte-exact: - agent-task: agent-publish.sh; the mold copy now reuses the shared install-mold.sh — one semantic change, deliberate: the old copy hard-failed after three attempts, the shared script falls back to the default linker, so a flaky apt mirror slows the agent instead of killing its task. The publish job gains contents:read + checkout solely to have scripts/ on disk; every write still uses the App token. The 'Resolve task id' step STAYS INLINE: it computes the checkout ref, so it runs before any checkout exists and cannot live in the tree it precedes. - infra: infra-detect.sh, charts-render-validate.sh, tf-plan-run.sh and tf-comment-upsert.sh (tf- prefix: genuine terraform helpers, so DETECT_EXEMPT for the rust gate and triggers for infra.yml); plan-gate reuses gate-all-legs.sh (same semantics, incl. skipped-passes for fork PRs) and gains a checkout. - frontend: the filter/key regex now lives ONCE in frontend-paths.sh, sourced by both frontend-detect.sh and the key step — they used to carry two copies with a keep-in-sync comment; e2e-gate reuses gate-all-legs.sh and gains a checkout. - kind: kind-diagnostics.sh, added to kind.yml's paths filter. - images: images-detect.sh, added to the push paths filter. - drift: drift-summary.sh (matrix.key passed as STACK_KEY env). The detect scripts' patterns gain their own filenames (and gate-all-legs.sh where it gates), keeping the property that a change to a gate runs the gate. agentics-maintenance.yml is NOT touched: it is generated by gh aw compile ('DO NOT EDIT'), so its forecast block is out of scope by the ticket's own generated-file exclusion — the ticket's listing of it had drifted. Verified: all three detect scripts exercised both directions against real ranges (frontend/charts/images positives on 2bdb336, all-false on a scripts-only range, both fail-safe branches fire); actionlint 433 pins ok; every workflow still parses; scripts-home-check 40 scripts; regen only moves the chart-coverage row.
athvin
marked this pull request as ready for review
November 6, 2026 11:41
Contributor
terraform plan
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #724
What this does
The program's final sweep: ten scripts across six workflows, −389/+44 workflow lines, with the bodies extracted programmatically (PyYAML-read, written byte-exact).
agent-publish.sh; mold step → sharedinstall-mold.shcontents: read+ a checkout solely to havescripts/on disk — every write still uses the App token.Resolve task idstays inline: it computes the checkout ref, so it runs before any checkout exists and cannot live in the tree it precedes.infra-detect.sh,charts-render-validate.sh,tf-plan-run.sh,tf-comment-upsert.sh; plan-gate →gate-all-legs.shtf-*names are deliberate per the ticket's prefix rule (genuine terraform helpers: rust-gate-exempt, infra-triggering). plan-gate's skipped-passes-for-fork-PRs semantics are preserved (gate-all-legs treatsskippedas a noted pass) with the fork-PR rationale kept as a YAML comment.frontend-detect.sh+frontend-paths.sh(sourced); e2e-gate →gate-all-legs.shFRONTEND_INCLUDE, the same structure rust.yml's detect has withdetect-paths.sh.kind-diagnostics.shpaths:filter, per its explicit-script-paths rule.images-detect.shpaths:filter — same rule.drift-summary.shmatrix.keypassed asSTACK_KEYenv.The detect scripts' patterns gain their own filenames (and
gate-all-legs.shwhere it gates), keeping the property that a change to a gate runs the gate.Ticket drift:
agentics-maintenance.ymlis not touched — it is generated bygh aw compile("DO NOT EDIT" header), so its forecast block falls under the ticket's own generated-file exclusion; the listing of it had drifted.Verified
2bdb336c(the Move frontend/dev/*.sh into scripts/frontend-dev/ #718 merge) →frontend=true,charts=true,rust=true frontend=true; a scripts-only range → all false; both fail-safe branches (all-zero before-SHA, diff-less event) fireactionlint.shok (433 pins — the three new checkouts use the house-pinned SHA); every workflow parses;scripts-home-checkok (40 scripts);bash -non all ten;skills-check regenonly moves the chart-coverage row (committed)