Skip to content

Promote the Hub Workflow Adoption to Main - #594

Merged
ptr727 merged 2 commits into
mainfrom
develop
Sep 26, 2026
Merged

ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Promotes develop at 3c0ea13 to main:

Together they close the workflow, interface, and README findings of the hub audit run 2026-09-26T13:38:57Z | hub 45669468, which measures main and can confirm them only after this merges. The About description was set to the README tagline separately. The Docker Hub short description follows on the next main publish, since the readme task pushes the repository description.

After this merges:

  • Codegen: this ends the transient Adopt the Hub-Hosted Workflow Tasks #592 described, a manually dispatched develop codegen run whose main leg found no codegen hook. The daily schedule on main then runs the hub task with the hook.
  • Publishing: merging publishes nothing, because Make/Matrix.json is unchanged. The first real run of the new publisher is the next weekly schedule, or a workflow_dispatch from main to prove it sooner. That run is the first to exercise the pushing build-base job, the multi-arch product matrix, the GitHub release, and the Docker Hub readme through the hub tasks, none of which a pull request smoke build reaches.

Merge with --merge, per the promotion convention.

🤖 Generated with Claude Code

ptr727 and others added 2 commits September 26, 2026 07:12
Resolves the README finding from the hub audit (run
`2026-09-26T13:38:57Z | hub 45669468`): "the `Distribution` group holds
external reference(s)" per `spec/readme-structure.md`.

`[hub-link]` points at the Docker Hub owner page
(`hub.docker.com/u/ptr727`), which is not one of this project's own
repositories under `hub.docker.com/r/ptr727/`, so it moves from `<!--
Distribution -->` to `<!-- External -->`, sorted by reference name. Both
uses of the reference are unchanged.

Local strict review: one pass, no findings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Moved the Docker Hub organization link to the External references
section. The URL remains unchanged.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Resolves the workflow findings from the hub audit (run
`2026-09-26T13:38:57Z | hub 45669468`): the five `hub-only` task files,
and the `publish` and `merge-bot` interface contracts in
`spec/files.json`. NxWitness is the matrix and `build-base` case of the
hub's Docker family (hub `docs/reusable-workflows.md` Stage 4 and Stage
5).

## What changes

- **Retired carried tasks:** `build-docker-task.yml`,
`build-base-images-task.yml`, `get-version-task.yml`,
`publish-plan-task.yml`, `run-codegen-pull-request-task.yml`,
`validate-task.yml`. Every hub task is reached by pin at `456694681ae7`
(`2.0.685`).
- **`publish-release.yml`:** `plan` -> `validate` -> `build-base` (main
only) -> `publish` (hub `build-release-task.yml`) ->
`publish-docker-readme` (hub task, main only). The triggers, the
one-branch-per-run model, and the global concurrency group are
unchanged. `github` is true only on main, and `expect_release_assets` is
false.
- **`test-pull-request.yml`:** `validate` and `smoke-build` call the hub
tasks. The smoke build goes through `build-release-task.yml` with
`smoke: true`, and the change-gate now also fires on the Docker hooks
and on `.github/workflows/`, so a Dependabot hub pin bump exercises the
pinned Docker chain.
- **Hooks under `.github/actions/`:**
- `docker-prepare` maps a branch's `Make/Matrix.json` rows onto the hub
matrix shape, reading `image` as a name filter for the smoke subset.
  - `docker-build-base` builds `nx-base`/`nx-base-lsio`.
  - `codegen` runs `CreateMatrix`.
- **Merge-bot and codegen:** the catalog stubs, with `delete-branch:
true` because repository auto-delete is off. The NuGet semver-major
filter is dropped per D8.1, the maintainer's decision for this adoption.
- **Shell scripts:** fixed so they pass the `shellcheck` and `shfmt`
gate the hub `validate-task.yml` runs and the carried one did not. The
edits are quoting, formatting, and two annotated `SC2016` literals, with
no runtime change.
- **Docs:** `WORKFLOW.md` (edited in place; the
carried-instruction-file-guard probe found it almost entirely
repo-specific), `ARCHITECTURE.md` "Template Adaptations",
`OPERATIONS.md`, `NxWitness.slnx`, and `dependabot.yml` comments.

## Deliberate behavior changes

- **Base images:** the pushing base build stays a job of this repo,
because the hub's `docker-build-base` leg has no Docker Hub login (filed
as ptr727/ProjectTemplate#1892). Only the non-pushing smoke build
reaches the hook through the hub.
- **Docker Hub overview:** it now publishes `Docker/README.md`, the hub
default and the file written for that purpose, rather than `README.md`.
It is pushed only after a successful publish.
- **Feature-branch dispatch:** a dispatch of the publisher from a
feature branch now fails the plan job with an error, where it used to be
a silent no-op. This is the hub plan policy.
- **Build matrix:** the product matrix no longer caps at `max-parallel:
4`, and the product cache mode is `max`. Both are owned by the hub core.
- **Transient until promotion:** a *manually dispatched* codegen run
from `develop` calls the hub task, whose `main` leg fails with "Required
hook missing" until this reaches `main`. The scheduled run uses main's
workflow and is unaffected.

## Verification

- Local runs of `actionlint`, markdownlint, `editorconfig-checker`,
`shellcheck`, `shfmt` (latest and 3.8.0), the hub `repo_gate.py`, and
`check-jsonschema` on the hooks, plus rendering of the four Mermaid
diagrams, all passed.
- The `docker-prepare` jq produces 20 rows per branch, and the 2-row
smoke subset, against the current `Make/Matrix.json`.
- Local strict review ran three rounds: 5 findings, then 2, then 0.
Every finding was fixed except the codegen transient above.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Installer downloads provided as ZIP files are now extracted, with the
first `.deb` installer saved for use.
* **Improvements**
* Release publishing now validates before building and publishes Docker
images; successful stable releases also update Docker Hub repository
descriptions.
* Pull request smoke builds now run when Docker hooks or workflow files
change.
* Shell scripts handle paths containing spaces or special characters
more reliably.
* **Documentation**
* Updated architecture, operations, and workflow guides to reflect
current build and release processes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 26, 2026 15:31
@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: fb4b204a-6c82-4b20-adff-88102dbb3e9e

📥 Commits

Reviewing files that changed from the base of the PR and between ae0ea4b and 3c0ea13.

📒 Files selected for processing (25)
  • .github/actions/codegen/action.yml
  • .github/actions/docker-build-base/action.yml
  • .github/actions/docker-prepare/action.yml
  • .github/dependabot.yml
  • .github/workflows/build-base-images-task.yml
  • .github/workflows/build-docker-task.yml
  • .github/workflows/get-version-task.yml
  • .github/workflows/merge-bot-pull-request.yml
  • .github/workflows/publish-plan-task.yml
  • .github/workflows/publish-release.yml
  • .github/workflows/run-codegen-pull-request-task.yml
  • .github/workflows/run-periodic-codegen-pull-request.yml
  • .github/workflows/test-pull-request.yml
  • .github/workflows/validate-task.yml
  • .husky/pre-commit
  • ARCHITECTURE.md
  • Docker/download.sh
  • Docker/entrypoint.sh
  • Docker/lsio-rename-user.sh
  • Make/Build.sh
  • Make/Clean.sh
  • NxWitness.slnx
  • OPERATIONS.md
  • README.md
  • WORKFLOW.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.01%. Comparing base (54e66f5) to head (3c0ea13).
⚠️ Report is 133 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #594   +/-   ##
=======================================
  Coverage   57.01%   57.01%           
=======================================
  Files          15       15           
  Lines        1375     1375           
  Branches      108      108           
=======================================
  Hits          784      784           
  Misses        573      573           
  Partials       18       18           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

It materially changes the release/CI orchestration by delegating critical behavior to pinned hub workflows whose implementation is not reviewable from this diff, so it warrants final human review before approval.

Review effort: Lite
Findings: None

What changed in this PR

This PR promotes the prior “adopt hub-hosted workflow tasks” work from develop to main by removing locally carried reusable workflow tasks, switching entry workflows to SHA-pinned hub tasks, and adding repository-specific composite “hook” actions that hub workflows invoke from this repo’s checkout. It also updates the repo’s CI/CD documentation and supporting scripts to reflect (and satisfy) the hub workflow contract.

Changes:

  • Replace carried reusable workflow tasks with SHA-pinned hub workflows, keeping only entry workflows in-repo.
  • Add three composite hook actions (docker-prepare, docker-build-base, codegen) that implement repo-specific steps for hub workflows.
  • Update CI/CD documentation and local scripts to match the new hub-task + hook architecture (including link-format and shellcheck/shfmt-driven cleanups).
File Description
WORKFLOW.md Updates the CI/CD contract documentation for hub-hosted tasks + local hooks; converts to reference-style links.
README.md Moves the Docker Hub org link reference to the External link group (no URL change).
OPERATIONS.md Updates local verification guidance to reflect hub validate-task.yml and expanded lint gate behavior.
ARCHITECTURE.md Updates architecture summary and “Template Adaptations” to the hub-task + hook model.
NxWitness.slnx Replaces removed carried workflow task entries with the new composite hook action files.
Make/​Clean.sh Quotes docker image name argument for safer shell behavior.
Make/​Build.sh Quotes tags/paths and normalizes formatting to satisfy shellcheck/shfmt expectations.
Docker/​lsio-rename-user.sh Refactors signature checks for readability and shellcheck compliance (fixed-string grep + SC2016 notes).
Docker/​entrypoint.sh Quotes paths and tightens shell formatting while preserving behavior.
Docker/​download.sh Adjusts ZIP vs DEB handling formatting and ensures unsupported types fail with exit code 1.
.husky/​pre-commit Adds an explicit SC1091 disable for the generated Husky shim source line.
.github/​workflows/​validate-task.yml Deletes the locally carried reusable validate task in favor of the hub-hosted task.
.github/​workflows/​test-pull-request.yml Switches CI to hub validate-task.yml and hub build-release-task.yml smoke mode; updates change-gate inputs.
.github/​workflows/​run-periodic-codegen-pull-request.yml Switches daily codegen to the hub run-codegen-pull-request-task.yml and tightens permissions/concurrency.
.github/​workflows/​run-codegen-pull-request-task.yml Deletes the locally carried reusable codegen task in favor of the hub-hosted task.
.github/​workflows/​publish-release.yml Replaces the in-repo release chain with hub plan/validate/build/release/readme tasks plus a local base-push job using a hook.
.github/​workflows/​publish-plan-task.yml Deletes the locally carried plan task in favor of the hub-hosted task.
.github/​workflows/​merge-bot-pull-request.yml Replaces local merge-bot implementation with hub merge-bot-task.yml invocation.
.github/​workflows/​get-version-task.yml Deletes the locally carried version task in favor of the hub-hosted task.
.github/​workflows/​build-docker-task.yml Deletes the locally carried docker build task in favor of the hub-hosted task.
.github/​workflows/​build-base-images-task.yml Deletes the locally carried base-image task in favor of the local docker-build-base hook plus hub orchestration.
.github/​dependabot.yml Updates comments to reference the new hub-driven codegen/merge-bot shape.
.github/​actions/​docker-prepare/​action.yml New hook: converts Make/Matrix.json rows into the hub docker matrix format (with optional name filtering).
.github/​actions/​docker-build-base/​action.yml New hook: builds/pushes nx-base and nx-base-lsio with correct multi-arch vs smoke behavior.
.github/​actions/​codegen/​action.yml New hook: runs the CreateMatrix generator step for hub codegen task orchestration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants