Skip to content

release.yml's RELEASING header says that no job reads more of Brett Heap's acts than the required reviewer and the deployment limit, and tests/test_release_workflow.py pins its settings sentences (part of opensoft/openRepoTools#279) - #14

Merged
brettheap merged 5 commits into
mainfrom
pick/279-code-lane2
Nov 9, 2026

Conversation

@brettheap

@brettheap brettheap commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openRepoTools-2
Claim: opensoft/openRepoTools#279 (comment)

release.yml's RELEASING header listed Brett Heap's acts with two statements that were not true as
written: the build and each upload job read only that a required reviewer is named and the
deployment limit, not every setting of the environments, and the tag ruleset was quoted under
openRepoShape's ruleset name instead of this repository's. The first two picks correct the header,
in comments only: it says that no job reads more of these acts than that, that the build checks only
that a required reviewer is named (any reviewer, not brettheap in particular), and it names the
ruleset by its rule and by this repository's own name. The third adds four phrases to HEADER_CARRIES
in tests/test_release_workflow.py, so that a later drift between the header and the spec fails the
suite.

The picks, from lane openRepoTools-2's branches in opensoft/openRepoTools, each made with git cherry-pick -x and followed by its source commit:

  • release.yml's RELEASING header says that no job reads more of Brett Heap's acts than the reviewer and the deployment limit, and names the tag ruleset by its rule and by opensoft/openRepoTools's own name, where it quoted the model's
    (cherry picked from commit 678f10e37f80cfe1673bfecadc292c62a252baa3)
  • release.yml's RELEASING header says the build checks only that a required reviewer is named, any reviewer and not brettheap in particular, where it said "the reviewer"
    (cherry picked from commit 70182765286ec6f7fe58e3f5192bd95790d9ff3e)
  • tests/test_release_workflow.py pins the RELEASING header's settings sentences in HEADER_CARRIES: each environment's reviewer, self-review, administrator-bypass and deployment-limit settings, that the build checks only that a required reviewer is named, and that only the admin role creates, moves or deletes a v* tag
    (cherry picked from commit cb3cd5a6eb9b98449e367532bdf41a96e4433d41)

Part of opensoft/openRepoTools#279.

Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

Summary by Sourcery

Align the release workflow documentation and tests with the actual environment checks and tag governance.

Bug Fixes:

  • Correct the release workflow documentation so it accurately describes which environment settings are validated and identifies the repository's tag ruleset correctly.

Enhancements:

  • Clarify that release checks require a named reviewer rather than a specific reviewer and that no job reads additional environment settings beyond the documented requirements.

Documentation:

  • Update the RELEASING header to accurately document environment requirements and tag governance.

Tests:

  • Pin the release header's environment, reviewer, deployment-limit, and tag-rule statements in the workflow tests to detect documentation drift.

Brett Heap and others added 3 commits November 7, 2026 18:18
…eap's acts than the reviewer and the deployment limit, and names the tag ruleset by its rule and by opensoft/openRepoTools's own name, where it quoted the model's (#279)

The header's list of Brett Heap's acts carried two statements that were not
true as written, and one that nothing else stated.
- "The build refuses every dispatch until both environments exist with their
  rules": the build, and each upload job again, read only a required reviewer
  and the deployment limit. The header now says that, and that self-review and
  administrator bypass are not checked.
- The ruleset was quoted as "Release tags v*: only admins create, move or
  delete". That string is the NAME of openRepoShape's ruleset (25237399).
  opensoft/openRepoTools's is named "Release tags v*" (25471926). The header
  now gives the rule in words, the name for this repository only, and still
  says the ruleset is not checked.
- "Self-review allowed" and "administrators not bypassing" stay, and are now
  stated in specs/006-release-pypi/spec.md and contracts/workflows.md (the
  other commit of #279's branch).

Comments only: no line of the workflow's code changes. `-k 'test_release_workflow
or repo_hygiene'`: 736 passed.

Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 678f10e37f80cfe1673bfecadc292c62a252baa3)
…ired reviewer is named, any reviewer and not brettheap in particular, where it said "the reviewer" (#279)

RV-C's review of this branch (SHOULD S1) found that the header's "Only the
reviewer and the limit are checked here" reads as if the build compared the
reviewer with brettheap. It never does. The build's environment step and each
upload job's re-check test only `if not reviewers:`, that the environment
names some required reviewer, and the issue itself says "(any, not brettheap
in particular)". The header now says that, in the words
specs/006-release-pypi/spec.md already uses ("a required reviewer").

Comments only: the lines of the workflow that are not comments hash the same
before and after, and no test pins the old sentence.

The other S1 line, contracts/workflows.md:168, is in the next commit, the
spec side. RV-C's MUST M1 (self-review, administrator bypass and the tag
ruleset's scope, as Brett Heap's acts) is not touched: it waits for his word.

Part of #279.

Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 70182765286ec6f7fe58e3f5192bd95790d9ff3e)
…entences in HEADER_CARRIES: each environment's reviewer, self-review, administrator-bypass and deployment-limit settings, that the build checks only that a required reviewer is named, and that only the admin role creates, moves or deletes a v* tag (#279)

RVF-C's final review of e6fc996 (the coordinator's verdict is #279 comment
6320861931) left one optional NIT: no test pins the header's new sentences,
so a later drift between the header and the spec would not fail the suite.
Four texts now read "only the admin role creates, moves or deletes one"
(spec.md, contracts/workflows.md, the header and the proposal), and the
header's settings are the ones the spec and the contract now state, but only
a reader held them equal.

HEADER_CARRIES gains four phrases, each verbatim from the header as header()
joins it (a rewrap changes nothing), in the header's order:
- "The build refuses every dispatch until both environments exist with a
  required reviewer and the deployment limit, and no job reads more of these
  acts than that." (678f10e)
- "each with brettheap as the required reviewer, self-review allowed,
  administrators not bypassing, and a deployment limit of exactly one tag
  rule, `v*`." The environments' settings as the header words them, which
  the live ones match.
- "Only that a required reviewer is named (any, not brettheap in
  particular) and the limit are checked here (FR-029)." (S1, 7018276)
- "only the admin role creates, moves or deletes one" (M1, 678f10e)

A comment above them says why they are pinned, and the docstring of
test_release_header_says_what_releasing_needs names them. The test code and
the header are not otherwise touched: `-k test_release_workflow` on this tree
gives 503 passed, the four new cases among them.

Part of #279.

Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit cb3cd5a6eb9b98449e367532bdf41a96e4433d41)
@sourcery-ai

sourcery-ai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Documentation

Correct the RELEASING header’s account of which environment settings the workflow checks and identify this repository’s tag ruleset accurately.

  • .github/workflows/release.yml L199-210

Tests

Pin the corrected reviewer-check scope, environment settings, and tag-ruleset policy in the release-header regression test.

  • tests/test_release_workflow.py L4923-4937, L4958-4961

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

sourcery-ai[bot]
sourcery-ai Bot previously approved these changes Nov 8, 2026

@sourcery-ai sourcery-ai Bot 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.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

brettheap and others added 2 commits November 9, 2026 13:09
The in-place merge of runbook v9: the stack grows by this clean merge, with no force-push.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The in-place merge of runbook v9: the stack grows by this clean merge, with no force-push.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap brettheap closed this Nov 9, 2026
@brettheap brettheap reopened this Nov 9, 2026
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

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