Skip to content

refactor(actions)!: simplify distribution development contracts - #701

Open
neilime wants to merge 3 commits into
mainfrom
refactor/action-distribution-devx
Open

neilime wants to merge 3 commits into
mainfrom
refactor/action-distribution-devx

Conversation

@neilime

@neilime neilime commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Normal CI now supplies built action distributions instead of running a separate dependency-rebuild workflow. It uploads successful output before the stale-distribution check. The isolated default-branch writer validates artifacts for every affected package and makes one atomic commit, even when CI failed because its committed output was stale. Failed builds provide no artifact; cancelled runs and incomplete attempts cannot publish.

Remove the rebuild caller, dependency installation and script execution from the maintenance helper. Retain trusted-base allowlists, workflow and bot identity checks, current-head validation, loop prevention and upstream artifact actions. Default discovery uses an action manifest and build script. Bundle tests use the ordinary test script unless a distinct test:distribution suite is needed. Native package commands and the Hoverkraft bot preset reduce repeated configuration.

Breaking changes: collection replaces prepare-build/build; install/runtime options and their outputs are removed. Artifacts are scoped to one package and run attempt, and prepare-commit returns artifact-ids. Default output requires index.js and includes every generated license/asset. ADRs 0005 and 0006 record the decisions while preserving ADR 0002's history.

Validation: 139 source tests and 96 bundled contract tests pass on Node 24 (under one second each), full Super-Linter passes, and references were regenerated with CI Dokumentor. Hosted CI passed, including host/container bundle execution. Downloaded all five generated artifacts and verified their 25 files against committed distributions. Actual automatic writing and bot rebasing require a dependency PR after the writer reaches the default branch.

Release this foundation before Node.js #624, then adopt Node.js in Common #686, Container #1003 and Publish #542. This PR uses released Node.js tooling, preserving an acyclic release order.

Discover action packages from their manifest and build script, default isolated contracts to npm test, and verify committed output once on the host. Preserve the trusted builder/writer split and centralize the Hoverkraft author preset.

BREAKING CHANGE: Automatic distribution discovery requires an adjacent action manifest instead of check:dist. Workspace builds without an action manifest must select their working directories explicitly.
@github-actions github-actions Bot added type: breaking Introduces a breaking change type: maintenance Performs maintenance work labels Dec 5, 2026
@github-actions

github-actions Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

CI report

Workflow run and full summary · Commit f19f395

Lint

Passed checks: 1

Successful lint checks (1)
Check Project Context Result Findings
Super-Linter . - ✅ Passed Native report

Tests

237 passed · 0 failed · 0 skipped

Successful test checks (9)
Check Project Context Result Passed Failed Skipped
Node.js action checks actions/action-distributions - ✅ Passed 139 0 0
Node.js action checks actions/create-and-merge-pull-request - ✅ Passed 17 0 0
Node.js action checks actions/download-artifact - ✅ Passed 7 0 0
Node.js action checks actions/need-fix-to-issue - ✅ Passed 9 0 0
Node.js action checks actions/quality/discard-report-fixtures - ✅ Passed 1 0 0
Node.js action checks actions/quality/lint-pull-request-title - ✅ Passed 25 0 0
Node.js action checks actions/quality/prepare-ci-reports - ✅ Passed 9 0 0
Node.js action checks actions/quality/publish-ci-reports - ✅ Passed 25 0 0
Node.js action checks actions/quality/test-action-distribution - ✅ Passed 5 0 0

Totals count test executions, including runtime variants.

Test coverage

94.7% lines · 90.5% branches

2728 / 2878 lines covered; 705 / 779 branches covered.

Source: merged producer reports, calculated by ReportGenerator.

Coverage by project and context
Check Project Context Lines
Node.js action checks actions/action-distributions - 98.3%
Node.js action checks actions/create-and-merge-pull-request - 100%
Node.js action checks actions/download-artifact - 98.6%
Node.js action checks actions/need-fix-to-issue - 100%
Node.js action checks actions/quality/discard-report-fixtures - 100%
Node.js action checks actions/quality/lint-pull-request-title - 100%
Node.js action checks actions/quality/prepare-ci-reports - 88.2%
Node.js action checks actions/quality/publish-ci-reports - 91.3%
Node.js action checks actions/quality/test-action-distribution - 100%

Project measurements are shown separately. The total above merges covered source lines; it does not average percentages.

Workflow jobs
Job Result
security success
test-action-distributions success
test-action-distribution-maintenance success
test-action-distribution-isolation success
lint success
test-action-matrix-outputs success
test-action-create-and-merge-pull-request success
test-action-lint-pull-request-title success
test-action-checkout success
test-action-checkout-issue-comment success
test-action-get-github-actions-bot-user success
test-action-get-issue-number success
test-action-need-fix-to-issue success
test-action-repository-owner-is-organization success
test-action-slugify success
test-action-download-artifact success
test-action-working-directory success
test-action-publish-ci-reports success
test-action-discard-report-fixtures success
test-workflow-check-jobs success
test-action-prepare-ci-reports success

The required CI complete check determines whether this workflow passed. Jobs without structured reports remain available in the workflow run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: breaking Introduces a breaking change type: maintenance Performs maintenance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant