Repository navigation
docs: fix REFERENCE.md claim that releases build on tag push (#120 item 5) - #151
Merged
Merged
Conversation
…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
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]>
Collaborator
|
Thanks, @Varunpoojari. The new wording is accurate against Review found a few small things, so I pushed them onto the branch (2491061) rather than send it back:
Merging. Thanks again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdsaid the standalone binaries are built "on everyvX.Y.Ztag push"..github/workflows/release.ymlisworkflow_dispatchonly, 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 existingvX.Y.Ztag that matchessrc/secfoo/__about__.py, and that it is deliberately not triggered by tag pushes. This follows whatrelease.ymldoes (itscheck-versionjob and thetaginput).tests/test_docs_consistency.py(new): checks thatrelease.ymlhasworkflow_dispatchand nopush:trigger, and thatREFERENCE.mddoes 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
ruff checkis clean for the new test file. The repo as a whole reports 145 ruff errors onmain, 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 intests/test_web/(test_activity_routes.pyandtest_architecture_dashboard.py). I confirmed one of them (test_architecture_activity_page_shows_diagram_and_verdict) fails the same way on a clean checkout ofmain; I did not install the Mermaid renderer (secfoo vendor mermaid), whichCONTRIBUTING.mdlists as optional for diagram tests.