Skip to content

feat(ci): route remaining scaffolded workflows through runner classes - #1947

Merged
gerchowl merged 2 commits into
devfrom
feature/1928-remaining-workflows
Oct 27, 2026
Merged

gerchowl merged 2 commits into
devfrom
feature/1928-remaining-workflows

Conversation

@gerchowl

@gerchowl gerchowl commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Complete ADR §4 runner routing for the remaining scaffolded workflows. Resolver jobs apply the §2 fork predicate and pass the four runner inputs; orchestration consumes SMALL and release tests consume the overridable release-test lane. Reusable workflows consume the caller's resolved runner map, and direct expressions use the caller's GitHub context.

Type of Change

  • feat -- New feature
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

ADR §4 inventory rows implemented:

Workflow row Jobs / routing
sync-issues.yml resolve-toolchain: SMALL direct expression with legacy term; sync: resolved SMALL
sync-main-to-dev.yml resolver as above; check, sync: resolved SMALL
prepare-release.yml validate: resolver expression and all four inputs; prepare, open-pr, rollback: resolved SMALL
prepare-hotfix.yml resolver as above; validate, prepare, open-pr, rollback: resolved SMALL
release.yml resolver as above; rollback: resolved SMALL; core, publish: pass runners
release-core.yml validate, finalize: inputs.runners.small; test: inputs.runners['release-test']
release-publish.yml publish: inputs.runners.small
promote-release.yml resolver as above; validate, promote, merge, cleanup, floating-tags: resolved SMALL
abandon-release.yml resolver as above; validate, abandon: resolved SMALL
prepare-release-extension.yml, release-extension.yml extension: new-scaffold SMALL direct expression without legacy term
publish-release-extension.yml resolve, publish: same seeded SMALL expression
devkit-upgrade.yml upgrade, report: SMALL direct expression with fork predicate; only runs-on changes
ci-extension.yml header describes the caller's extension lane; existing runner-json contract retained
smoke-test ci-extension.yml, direnv-smoke.yml, repository-dispatch.yml widened shape tests verify the unchanged hook input and hosted fixture jobs

All eight resolver jobs (including CI) are tested for the direct expression, all four action inputs, and runner outputs. Shape tests cover every scaffolded workflow and reject workflow_run and merge_group. Tests execute the resolver with same-repository and foreign caller PR contexts, including reusable-call context. Seeded hook input compatibility stays pinned by the existing oldest-supported-input test.

Changelog Entry

Changed

  • Fork-safe runners across scaffolded workflows (#1928)
    • Route release, sync, upgrade and new seeded hook jobs through runner variables
      with fork protection; managed release reusables consume runner classes and lanes.

Testing

  • Targeted tests pass locally (532 tests; exit 0).
  • Manual testing performed (describe below)

RED: uv run --with pytest-xdist pytest tests/test_ci_runner.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1928 exited 1: 43 failed, 228 passed. The additional header/caller-context selection exited 1: 1 failed, 6 passed. Failing tests were committed before implementation.

GREEN: uv run --with pytest-xdist pytest tests/test_ci_runner.py tests/test_workflow_ci_extension.py tests/test_scaffold_drift.py tests/test_release_core.py tests/test_workflow_release_publish.py tests/test_workflow_prepare_hotfix.py tests/test_workflow_prepare_extension.py tests/test_workflow_publish_release_extension.py tests/test_workflow_release_extension.py tests/test_workflow_devkit_upgrade.py tests/test_abandon_release.py tests/test_promote_release.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1928 exited 0: 532 passed.

Manual Testing Details

Reviewed every changed runs-on against ADR §4. Commit hooks run inside nix develop, including scaffold actionlint and YAML checks. The generated scaffold changelog mirror is included.

CI completed successfully on 63e908a5d76daaac88dc644ab0fa0b90f73c5ad8: all 16 checks green, including Test Summary, consumer matrix, flake gates, image/integration tests and security scans. gh pr checks 1947 --watch exited 0 under watcher-s1. The isolated local pytest basetemp was removed.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (new-scaffold header; S7/S7b own remaining docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing relevant unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

S3 owns upgrade migration steps and existing seeded-hook reconciliation. The production diff stays below the 400-line split threshold. Devkit's own hosted workflows stay as specified in the inventory.

Refs: #1928

@gerchowl
gerchowl merged commit e12b3dc into dev Oct 27, 2026
16 checks passed
@gerchowl
gerchowl deleted the feature/1928-remaining-workflows branch October 27, 2026 10:55
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