Skip to content

docs: fix REFERENCE.md claim that releases build on tag push (#120 item 5) - #151

Merged
vsn411 merged 2 commits into
mainfrom
docs/release-workflow-dispatch-wording
Nov 20, 2026
Merged

vsn411 merged 2 commits into
mainfrom
docs/release-workflow-dispatch-wording

Conversation

@Varunpoojari

@Varunpoojari Varunpoojari commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #120 (item 5 only; the other items will follow as separate PRs, so this does not close the issue).

What was wrong

The Distribution section of docs/REFERENCE.md said the standalone binaries are built "on every vX.Y.Z tag push". .github/workflows/release.yml is workflow_dispatch only, and its header comment says it is deliberately not a tag-push trigger. So the docs described a flow that does not exist, and someone pushing a tag would expect a release that never happens.

What changed

  • docs/REFERENCE.md: the sentence now says a maintainer with write access runs the Release workflow by hand (Actions tab, workflow_dispatch) for an existing vX.Y.Z tag that matches src/secfoo/__about__.py, and that it is deliberately not triggered by tag pushes. This follows what release.yml does (its check-version job and the tag input).
  • tests/test_docs_consistency.py (new): checks that release.yml has workflow_dispatch and no push: trigger, and that REFERENCE.md does not claim "tag push". This is the start of the consistency test the issue asks for; later items can add their own checks to the same file.

How I checked it

  • The new test fails on the old wording and passes on the new wording (I ran both).
  • ruff check is clean for the new test file. The repo as a whole reports 145 ruff errors on main, which is what Make lint and security scanning blocking in CI: ruff has 133 errors behind || true, bandit findings are unreviewed, pip-audit never runs #114 is about; none are from this change.
  • pytest tests: 1715 passed, 4 failed, 1 skipped. The 4 failures are diagram-rendering tests in tests/test_web/ (test_activity_routes.py and test_architecture_dashboard.py). I confirmed one of them (test_architecture_activity_page_shows_diagram_and_verdict) fails the same way on a clean checkout of main; I did not install the Mermaid renderer (secfoo vendor mermaid), which CONTRIBUTING.md lists as optional for diagram tests.

…ml is workflow_dispatch only

The Distribution section claimed binaries are built "on every vX.Y.Z tag push".
release.yml deliberately triggers only on workflow_dispatch, so a tag push does
nothing. Describe the real flow and add tests/test_docs_consistency.py so the
wording cannot drift back.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DsERxaCi7rNtqUTYked7Jd
@Varunpoojari
Varunpoojari requested a review from vsn411 as a code owner November 20, 2026 00:44
Review follow-ups for #151 (#120 item 5), pushed by the maintainers:

- REFERENCE.md: the version check reads __about__.py at the tag, the run
  creates the GitHub Release itself, and the same run also publishes to
  PyPI, npm and GHCR (a PyPI version cannot be re-uploaded).
- tests/test_docs_consistency.py: the on: block now runs to the next
  top-level key (a push trigger after a blank line, in flow form or under
  a quoted "on" key is caught; comments are ignored), and the tag-push
  check is case-insensitive, covers "tag-push" and "on every vX.Y.Z tag",
  and scans README.md, CONTRIBUTING.md and all docs, allowing negations.

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

vsn411 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Thanks, @Varunpoojari. The new wording is accurate against release.yml, no other doc repeats the stale claim, and the PR correctly leaves #120 open for its other items.

Review found a few small things, so I pushed them onto the branch (2491061) rather than send it back:

  • The trigger guard could miss a real push trigger. split("\n\n", 1)[0] stopped the on: block at its first blank line, so a push: after a blank line passed, and the flow form on: [push, workflow_dispatch] crashed with IndexError. The test now reads the block to the next top-level key, ignores comments, and has its own test for both shapes.
  • The docs check is broader. It is case-insensitive, catches "tag-push" and "on every vX.Y.Z tag", scans README.md, CONTRIBUTING.md and all of docs/, and allows negated sentences instead of deleting one exact phrase.
  • Wording: the version check reads __about__.py at the tag, not on main; the run creates the GitHub Release itself; and the same run also publishes to PyPI, npm and GHCR, so it should only be dispatched for a real release (a PyPI version can't be re-uploaded).

Merging. Thanks again.

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