feat!: v7 — three workflows, typed inputs, one action, 18 scripts #89

Merged
cjournois merged 1 commit from feat/v7-standard-actions into main 2026-11-03 15:04:21 +00:00
Collaborator

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.

  • Three shared workflows: unit, release, quality. check, eval and mirror-images are gone:
    • root checks are the repo root's own lint recipe;
    • eval is a quality job that runs just eval;
    • image mirroring stays in dramble-manager.
  • No config file. unit.json and its schema are deleted. A unit is what its files say (language, profile, prefix, image name), overridden only by caller with: inputs; base_image: true is a new input. Secrets come from secrets: inherit (BOT_REGISTRY_TOKEN, BOT_RELEASE_TOKEN).
  • unit.yml: 803 → 439 lines.
    • Five jobs: plan, ci, e2e, image, publish.
    • plan resolves the unit, skip, publish and version once; each other job has one job-level if:.
    • One image job builds for PRs, base images and releases.
    • Named steps throughout, 34 in total (was 58).
  • quality.yml checks one unit per call. The caller has one job per unit with typed shards and timeouts. Mutation runs one job per shard on ci-heavy, with cached installs; audit runs in plan; eval runs when the unit has the recipe.
  • One composite action (setup: checkout, mise, registry auth) replaces 13.
  • Squashed into one commit.
  • Scripts: 60 → 18, grouped by concern, with 17 subcommands. Helpers that only tests called became plain functions.
  • Fixes along the way:
    • the PR secret scan fetches its base ref (on a depth-1 checkout it always skipped);
    • quiet_run's heartbeat no longer leaves a sleep holding the test runner open;
    • a base image needs no language;
    • helm never gates coverage;
    • the unreachable PyPI publish and language: node are removed.

Verified: just lint test passes (487 bats, actionlint, shellcheck). This repo's own CI now runs those checks on the change itself instead of calling unit.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) and hashFiles in step if: are only exercised there.
Breaking: callers move per-unit settings into with:, list quality per unit, and use secrets: 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_TOKEN and vars BOT_REGISTRY_USERNAME / BOT_RELEASE_USERNAME (they passed PERSONAL_FORGEJO_TOKEN); merge this PR; then release 7.0.0.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3

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. - **Three shared workflows**: `unit`, `release`, `quality`. `check`, `eval` and `mirror-images` are gone: - root checks are the repo root's own `lint` recipe; - eval is a `quality` job that runs `just eval`; - image mirroring stays in dramble-manager. - **No config file.** `unit.json` and its schema are deleted. A unit is what its files say (language, profile, prefix, image name), overridden only by caller `with:` inputs; `base_image: true` is a new input. Secrets come from `secrets: inherit` (`BOT_REGISTRY_TOKEN`, `BOT_RELEASE_TOKEN`). - **`unit.yml`**: 803 → 439 lines. - Five jobs: `plan`, `ci`, `e2e`, `image`, `publish`. - `plan` resolves the unit, skip, publish and version once; each other job has one job-level `if:`. - One `image` job builds for PRs, base images and releases. - Named steps throughout, 34 in total (was 58). - **`quality.yml`** checks one unit per call. The caller has one job per unit with typed `shards` and timeouts. Mutation runs one job per shard on `ci-heavy`, with cached installs; audit runs in `plan`; eval runs when the unit has the recipe. - **One composite action** (`setup`: checkout, mise, registry auth) replaces 13. - **Squashed into one commit.** - **Scripts: 60 → 18**, grouped by concern, with 17 subcommands. Helpers that only tests called became plain functions. - **Fixes along the way:** - the PR secret scan fetches its base ref (on a depth-1 checkout it always skipped); - `quiet_run`'s heartbeat no longer leaves a `sleep` holding the test runner open; - a base image needs no language; - helm never gates coverage; - the unreachable PyPI publish and `language: node` are removed. Verified: `just lint test` passes (487 bats, actionlint, shellcheck). This repo's own CI now runs those checks on the change itself instead of calling `unit.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) and `hashFiles` in step `if:` are only exercised there. Breaking: callers move per-unit settings into `with:`, list quality per unit, and use `secrets: 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_TOKEN` and vars `BOT_REGISTRY_USERNAME` / `BOT_RELEASE_USERNAME` (they passed `PERSONAL_FORGEJO_TOKEN`); merge this PR; then release 7.0.0. Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
Only unit, release and quality remain. A unit is configured by typed
caller inputs (new base_image) over what its files say; unit.json, its
schema and the legacy/facts split are gone.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
The caller lists one job per unit with its own shards and limits; plan,
audit, mutation (one job per shard) and eval each pass or fail on their
own and write the job summary. Discovery, shard expansion and the report
job are gone.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
scripts/ shrinks from 56 files to 18: each old script is a subcommand of
recipe, setup, gate, release, version, publish, forgejo-release, quality
or hygiene.sh, sharing lib.sh. release.sh discovers its own units; the
orphan, job-summary, cache-key and prune-dev-deps scripts are gone.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
The 13 composite actions collapse into setup (checkout, scripts, mise);
each job step names what it does and calls one script subcommand.
Secrets come from secrets: inherit (BOT_*); forgejo_url and the token
inputs are gone. quiet_run's heartbeat no longer leaves a sleep behind.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
Input tables, secrets, script names and the setup action now match
unit.yml, quality.yml, release.yml and scripts/. README gains a
Migrating to v7 section for consumers.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
A base image needs no language; a helm unit never gates coverage; a base
image with a build context builds the unit's Containerfile. The PyPI
publish step was unreachable from the unit's files and is removed. The
repo's own callers use the short form with secrets: inherit.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
language node is refused; jq is required. Sourced scripts guard their
entry point, so setup, publish, mutation and release expose functions
and tests call them through run_fn. docker.sh writes and removes its
own build secret; lib.sh shares npm_path, chart_yaml and cliff_args.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
The depth-1 checkout never had the base ref, so every PR scan skipped.
hygiene.sh now fetches the base branch and deepens the PR's history,
scanning from their merge base, or what the base lacks without one.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
plan resolves facts, gates, version and runtime parity once; every
other job has one job-level if. image merges the PR check, the base
image and the image push. Registry auth moves into the setup action;
tests, ui e2e and the Forgejo release are one script call each.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
refactor(quality)!: audit in plan, one plan subcommand, cached installs
Some checks failed
ci: reusable-pipeline / CI (pull_request) Failing after 8s
ci: reusable-pipeline / E2E (full stack) (pull_request) Has been skipped
ci: reusable-pipeline / Image build (pull_request) Has been skipped
ci: reusable-pipeline / Publish & Release (pull_request) Has been skipped
ci: reusable-pipeline / Base image build (pull_request) Has been skipped
ci: reusable-pipeline / CI Pipeline (pull_request) Failing after 0s
974f9562d4
plan runs the audit at high and quality.sh plan, which returns base,
shards, shard_count, limits and recipe probes. Mutation and eval
restore the unit's dependency cache; only window shards fetch full
history; eval gets its own limit. Inputs mutation_runner and
audit_level are gone (ci-heavy, high).

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
bot-claude force-pushed feat/v7-standard-actions from 974f9562d4
Some checks failed
ci: reusable-pipeline / CI (pull_request) Failing after 8s
ci: reusable-pipeline / E2E (full stack) (pull_request) Has been skipped
ci: reusable-pipeline / Image build (pull_request) Has been skipped
ci: reusable-pipeline / Publish & Release (pull_request) Has been skipped
ci: reusable-pipeline / Base image build (pull_request) Has been skipped
ci: reusable-pipeline / CI Pipeline (pull_request) Failing after 0s
to 1cb88ce91c
Some checks failed
ci: reusable-pipeline / CI (pull_request) Failing after 12s
ci: reusable-pipeline / E2E (full stack) (pull_request) Has been skipped
ci: reusable-pipeline / Image build (pull_request) Has been skipped
ci: reusable-pipeline / Publish & Release (pull_request) Has been skipped
ci: reusable-pipeline / Base image build (pull_request) Has been skipped
ci: reusable-pipeline / CI Pipeline (pull_request) Failing after 0s
2026-11-03 14:52:30 +00:00
Compare
bot-claude force-pushed feat/v7-standard-actions from 1cb88ce91c
Some checks failed
ci: reusable-pipeline / CI (pull_request) Failing after 12s
ci: reusable-pipeline / E2E (full stack) (pull_request) Has been skipped
ci: reusable-pipeline / Image build (pull_request) Has been skipped
ci: reusable-pipeline / Publish & Release (pull_request) Has been skipped
ci: reusable-pipeline / Base image build (pull_request) Has been skipped
ci: reusable-pipeline / CI Pipeline (pull_request) Failing after 0s
to 1170b2af32
All checks were successful
ci: reusable-pipeline / Lint and test (pull_request) Successful in 45s
2026-11-03 14:55:16 +00:00
Compare
bot-claude changed title from WIP: feat!: v7 — three workflows, typed inputs, one action, 18 scripts to feat!: v7 — three workflows, typed inputs, one action, 18 scripts 2026-11-03 14:56:32 +00:00
cjournois scheduled this pull request to auto merge when all checks succeed 2026-11-03 15:01:35 +00:00
cjournois scheduled this pull request to auto merge when all checks succeed 2026-11-03 15:02:06 +00:00
bot-claude force-pushed feat/v7-standard-actions from 1170b2af32
All checks were successful
ci: reusable-pipeline / Lint and test (pull_request) Successful in 45s
to febb328eb8
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 46s
ci: reusable-pipeline / CI Pipeline (push) Successful in 40s
2026-11-03 15:03:31 +00:00
Compare
cjournois deleted branch feat/v7-standard-actions 2026-11-03 15:04:21 +00:00
bot-claude left a comment

Verdict: needs-changes (review finished after the merge)

Required changes:

  • scripts/release.sh:57 — CHANGELOG and release links use the runner's cluster-internal server URL (6.1.0's CHANGELOG.md already shows it). Fixed in #90.
  • .github/workflows/quality.yml:204-207 — eval runs with an empty EVAL_SECRET when the named secret is missing; v6 failed. Fixed in #90.
  • README.md:37-43 — the migration guide is written against v6 unit.json, which no consumer ever had: every consumer pins 5.3.5/5.4.0. It omits removed unit.yml inputs (package_owner, forgejo_url, explicit registry_token/release_token → secrets: inherit), removed quality.yml inputs (units, audit_level, the four timeout inputs, full_shards) and their replacements, the removed check.yml/eval.yml/mirror-images.yml, the eval contract change (just eval per unit, no eval-install, EVAL_SECRET, no extra_env/artifact upload), and dropping runs-on: with the owner/repo form of uses:. A caller that still passes units: to quality.yml would audit "." and go green with no mutation run. Open.

Nits: release 7.0.0-rc.1 and validate it on telos#180 before 7.0.0 (job-level needs/!cancelled(), multi-line outputs, hashFiles in step if: and secrets: inherit without declared secrets are untested on Forgejo); scripts/release.sh:10 field() keeps a trailing # comment; quality.yml:6-9 a unit with neither mutation nor eval recipe passes silently.

Session: 2c2db33f-c7ab-4766-bc2c-1c179130460f

Verdict: needs-changes (review finished after the merge) Required changes: - scripts/release.sh:57 — CHANGELOG and release links use the runner's cluster-internal server URL (6.1.0's CHANGELOG.md already shows it). Fixed in #90. - .github/workflows/quality.yml:204-207 — eval runs with an empty EVAL_SECRET when the named secret is missing; v6 failed. Fixed in #90. - README.md:37-43 — the migration guide is written against v6 `unit.json`, which no consumer ever had: every consumer pins 5.3.5/5.4.0. It omits removed `unit.yml` inputs (`package_owner`, `forgejo_url`, explicit `registry_token`/`release_token` → `secrets: inherit`), removed `quality.yml` inputs (`units`, `audit_level`, the four timeout inputs, `full_shards`) and their replacements, the removed `check.yml`/`eval.yml`/`mirror-images.yml`, the eval contract change (`just eval` per unit, no `eval-install`, `EVAL_SECRET`, no `extra_env`/artifact upload), and dropping `runs-on:` with the `owner/repo` form of `uses:`. A caller that still passes `units:` to quality.yml would audit "." and go green with no mutation run. Open. Nits: release `7.0.0-rc.1` and validate it on telos#180 before 7.0.0 (job-level `needs`/`!cancelled()`, multi-line outputs, `hashFiles` in step `if:` and `secrets: inherit` without declared secrets are untested on Forgejo); scripts/release.sh:10 `field()` keeps a trailing `# comment`; quality.yml:6-9 a unit with neither `mutation` nor `eval` recipe passes silently. Session: 2c2db33f-c7ab-4766-bc2c-1c179130460f
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/reusable-pipeline!89
No description provided.