Skip to content

Reconcile WORKFLOW.md and the workflows with the hub contract - #175

Merged
ptr727 merged 7 commits into
developfrom
feature/resync-workflow-contract
Oct 12, 2026
Merged

ptr727 merged 7 commits into
developfrom
feature/resync-workflow-contract

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Reconciles WORKFLOW.md and the two workflows it describes with hub main 0c93369 (audit run 2026-10-12T16:05:03Z | hub 0c933694).

  • WORKFLOW.md: a three-way merge from the hub revision the copy last matched. This repo's adaptation sentences are re-attached to D1.1, D1.2, D1.4, D1.5, D4.1 and the S1, S5, S6 and S7 scenario rows, each checked against the YAML.

  • test-pull-request.yml: the smoke-build filter becomes an inclusion list, which the new D1.1 requires. The list covers what the publish and Docker build read: PhotoCleaner/**, Docker/Dockerfile, the shared build props, global.json, version.json, .editorconfig, .dockerignore, and .github/actions/**, where the hub tasks look for caller hooks. A pull request touching only workflows, docs or tests now skips the smoke build. Before, only a workflow-only change did.

  • publish-release.yml: the concurrency group becomes ref-scoped per D7.1, with its rationale in a header comment. A develop and a main publish can now run side by side. Their Docker tags, build caches and releases are already per-branch, so the two runs do not overlap.

  • publish-release.yml calls the hub's publish-docker-readme-task.yml after a successful publish, pushing Docker/README.md to Docker Hub on main only. The repo's own Docker task did this before it adopted the hub release chain, and the hub's build-release task never has, so the Docker Hub overview has not updated since that adoption.

  • Every hub task reference (validate, build-release, publish-plan, merge-bot, docker-readme) is pinned to hub main 0c93369 and annotated # 2.0.983, so the workflows run the contract this document describes. The tasks' workflow_call inputs and secrets are unchanged between the two pins.

The GOVERNANCE.md "Workflow YAML Conventions" exception describing the publisher's group as global is replaced by the hub's ref-scoped wording in #173, so merge that one first.

The comments label covers the restored concurrency rationale.

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 12, 2026 09:11
Three-way merge of WORKFLOW.md from hub 67731c4 to hub main 0c93369,
keeping this repo's adaptations for its single combined target and its
publisher with no push trigger. The smoke-build paths filter becomes an
inclusion list per D1.1 and D1.4, and the publisher's concurrency group
becomes ref-scoped per D7.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tionale

The hub build tasks run a caller hook under .github/actions/ in place of
their default step, so a change there now runs the smoke build. Only the
Dockerfile under Docker/ feeds the image, so Docker/README.md no longer
triggers it. The publisher's concurrency exception keeps its rationale
in a header comment, as GOVERNANCE.md Workflow YAML Conventions asks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 12, 2026 16:19
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Oct 12, 2026
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 4c95931c-19c4-4e1a-863c-0845b9083650

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

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.

🟡 Changes recommended

Address the Docker Hub readme publishing contract and the two documentation/comment issues.

1 open finding
What changed in this PR

Reconciles the workflow contract and GitHub Actions workflows with the hub’s updated requirements.

Changes:

  • Updates WORKFLOW.md contract and scenarios.
  • Uses an inclusion-based smoke-build filter.
  • Makes release concurrency ref-scoped.
File Summary
WORKFLOW.md Updates CI/CD contract and testing guidance.
.github/​workflows/​test-pull-request.yml Adds build-relevant smoke-build paths.
.github/​workflows/​publish-release.yml Applies ref-scoped publish concurrency.

🧠 Review effort: Lite


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/publish-release.yml Resolved

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.

🟡 Changes recommended

Update both validator references to the intended promoted hub commit.

1 open finding
1 resolved since last review

🧠 Review effort: Lite

Comment thread WORKFLOW.md Resolved
WORKFLOW.md now describes hub main at 0c93369, so the callers run that
revision's validator, plan, build-release, and merge-bot tasks. Their
workflow_call inputs and secrets are unchanged between the two pins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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.

🔵 Needs a closer look

Restore Docker Hub README publishing and add the required 2.0.983 pin annotations.

0 open findings

1 resolved since last review
Previously missed (2)

In code that hasn't changed since last review

Low severity Annotate pinned task with release tag

.github/​workflows/​publish-release.yml:35

[P2] Record the release tag for the pinned task. @0c933694 is the hub 2.0.983 revision described by this PR, but # main promotion is not a release-tag annotation, so this caller does not satisfy D9.1 and the pin's provenance is ambiguous. Change the suffix to # 2.0.983.

This issue also appears in the following locations of the same file:

  • line 47
  • line 60
Low severity Annotate pinned task with release tag

.github/​workflows/​test-pull-request.yml:53

[P2] Record the release tag for the pinned task. @0c933694 is the hub 2.0.983 revision described by this PR, but # main promotion is not a release-tag annotation, so this caller does not satisfy D9.1 and the pin's provenance is ambiguous. Change the suffix to # 2.0.983.

This issue also appears on line 66 of the same file.

🧠 Review effort: Lite

D9.1 asks for the release tag at the pinned SHA, 2.0.983 here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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.

🔵 Needs a closer look

The release documentation requires a Docker Hub README publish path, and the smoke-build filter is broader than the build hooks.

0 open findings

🧠 Review effort: Lite

The local build-docker task this repo carried before adopting the hub
release chain pushed Docker/README.md to Docker Hub, and the hub's
build-release task never did, so the overview stopped updating. The
publisher now calls the hub's publish-docker-readme task after a
successful publish, which pushes only on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

Answers to the body-only findings in the Copilot rounds on d53cabf and 170a746 (#175 (review) and #175 (review)).

Previously missed (2): "Annotate pinned task with release tag", publish-release.yml:35 (also 47, 60) and test-pull-request.yml:53 (also 66). Fixed in 170a746: all six hub task pins now carry # 2.0.983, the tag ptr727/ProjectTemplate publishes at 0c933694.

Headline on 170a746 (no counted finding), part 1: "The release documentation requires a Docker Hub README publish path." Fixed in dad9792. The finding is real and predates this pull request. The local build-docker-task.yml this repo carried before it adopted the hub release chain pushed Docker/README.md to Docker Hub. The hub's build-release-task.yml has never held that step: at both the old and the new pin, git grep dockerhub-description over the hub's workflows matches only publish-docker-readme-task.yml. So the overview has not been updated since that adoption. publish-release.yml now calls publish-docker-readme-task.yml after a successful publish, with repositories: '["ptr727/photocleaner"]'. The task pushes only when branch is main.

Headline on 170a746, part 2: "the smoke-build filter is broader than the build hooks." No change needed. .github/actions/** is the entry the hub's release-with-smoke stub in docs/reusable-workflows.md lists. Narrowing it to the two hooks the pinned build tasks read today, dotnet-publish and docker-prepare, would silently skip the smoke build for any hook a later hub task adds. The cost of the broader match is one extra smoke run when the validate or docker-readme-transform hook changes, which no file in this repo does yet.

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.

🔵 Needs a closer look

The smoke-build filter includes hooks not consumed by the build task, causing unnecessary builds.

0 open findings

🧠 Review effort: Lite

The pinned hub build tasks run four caller hooks for a dotnet-publish and
Docker target in place of their defaults, so only those four trigger the
smoke build, and a validate or readme hook change no longer does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

Answer to the headline on dad9792 (#175 (review)), which counts no finding: "The smoke-build filter includes hooks not consumed by the build task, causing unnecessary builds."

Fixed in 36a3f78. This is the second round to raise it after my earlier decline, so I took the recurrence as the signal to change the filter rather than argue it again. The release entry now lists only the four caller hooks the pinned hub build tasks run for a dotnet-publish and Docker target in place of their defaults: dotnet-publish, docker-prepare, docker-build-base and build-release-asset, found by grepping the tasks' hashFiles('.github/actions/...') checks at 0c933694. The build-nuget and build-pypi hooks belong to targets this repo does not enable. The WORKFLOW.md D1.1 adaptation sentence names the same four.

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.

🔵 Needs a closer look

Workflow changes and the smoke-build filtering concern warrant final human review.

0 open findings

🧠 Review effort: Lite

@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

Answer to the headline on 36a3f78 (#175 (review)), which counts no finding: "Workflow changes and the smoke-build filtering concern warrant final human review."

Awaiting maintainer. The headline names no defect. The filter concern it refers to is the one fixed in 36a3f78. The final human review it asks for is the maintainer's merge decision, which this pull request goes to next with the full change list in its description.

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

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants