feat!: v7 — three workflows, typed inputs, one action, 18 scripts #89
No reviewers
Labels
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cjournois/reusable-pipeline!89
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/v7-standard-actions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
v6 had grown to 8 shared workflows, 13 composite actions, 60 scripts (2,400 lines) and a per-unit
unit.json. v7 keeps every feature that has a user, with far fewer pieces, configured only through standard typed workflow inputs.unit,release,quality.check,evalandmirror-imagesare gone:lintrecipe;qualityjob that runsjust eval;unit.jsonand its schema are deleted. A unit is what its files say (language, profile, prefix, image name), overridden only by callerwith:inputs;base_image: trueis a new input. Secrets come fromsecrets: inherit(BOT_REGISTRY_TOKEN,BOT_RELEASE_TOKEN).unit.yml: 803 → 439 lines.plan,ci,e2e,image,publish.planresolves the unit, skip, publish and version once; each other job has one job-levelif:.imagejob builds for PRs, base images and releases.quality.ymlchecks one unit per call. The caller has one job per unit with typedshardsand timeouts. Mutation runs one job per shard onci-heavy, with cached installs; audit runs inplan; eval runs when the unit has the recipe.setup: checkout, mise, registry auth) replaces 13.quiet_run's heartbeat no longer leaves asleepholding the test runner open;language: nodeare removed.Verified:
just lint testpasses (487 bats, actionlint, shellcheck). This repo's own CI now runs those checks on the change itself instead of callingunit.yml@main, which tested main's copy and could never pass a PR that changes the pipeline.Not yet verified on a live consumer: the release-candidate tags were dropped, so project/telos#180 moves to 7.0.0 after release and runs PR CI plus a full Quality there. The jobs'
needs/!cancelled()conditions, multi-line job outputs (the rust cache path) andhashFilesin stepif:are only exercised there.Breaking: callers move per-unit settings into
with:, list quality per unit, and usesecrets: inherit. The README has a "Migrating to v7" section.Manual steps: on cjournois/library and cjournois/resume, set repo secrets
BOT_REGISTRY_TOKEN/BOT_RELEASE_TOKENand varsBOT_REGISTRY_USERNAME/BOT_RELEASE_USERNAME(they passedPERSONAL_FORGEJO_TOKEN); merge this PR; then release 7.0.0.Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
974f9562d41cb88ce91c1cb88ce91c1170b2af32WIP: feat!: v7 — three workflows, typed inputs, one action, 18 scriptsto feat!: v7 — three workflows, typed inputs, one action, 18 scripts1170b2af32febb328eb8Verdict: needs-changes (review finished after the merge)
Required changes:
unit.json, which no consumer ever had: every consumer pins 5.3.5/5.4.0. It omits removedunit.ymlinputs (package_owner,forgejo_url, explicitregistry_token/release_token→secrets: inherit), removedquality.ymlinputs (units,audit_level, the four timeout inputs,full_shards) and their replacements, the removedcheck.yml/eval.yml/mirror-images.yml, the eval contract change (just evalper unit, noeval-install,EVAL_SECRET, noextra_env/artifact upload), and droppingruns-on:with theowner/repoform ofuses:. A caller that still passesunits:to quality.yml would audit "." and go green with no mutation run. Open.Nits: release
7.0.0-rc.1and validate it on telos#180 before 7.0.0 (job-levelneeds/!cancelled(), multi-line outputs,hashFilesin stepif:andsecrets: inheritwithout declared secrets are untested on Forgejo); scripts/release.sh:10field()keeps a trailing# comment; quality.yml:6-9 a unit with neithermutationnorevalrecipe passes silently.Session: 2c2db33f-c7ab-4766-bc2c-1c179130460f