Repository navigation
docs: close the 0.5.0 review gaps - #251
Merged
Merged
Conversation
Add "From 0.4.0" to the upgrading page (check the stored environments first, list-form policies, timestamps, restart after the rollout and switch to moderated only then) and "To app version 0.5.0" to the chart README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
List the deviations from the GA4GH specification in the API docs, document that changing a service back to its previous type leaves an unused pending type, and restrict adding types in the example that restricts registration (or point to mode controlled). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Without admin groups, the startup warning also says that nobody can remove types, approve them in mode moderated or add them in mode controlled. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Test that maintainers and members of groups with a role on a pending service see it, and users without a role don't. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The release workflow and the release readiness check fail without docs/releases/<version>.md once notes of an earlier release exist, instead of checking the notes only if they exist. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The verification commands name release.yaml while CITATION.cff has 0.4.0; once it is bumped, they must name release.yml (#234), and the note below them that 0.4.0 was signed by release.yaml, so the release preparation can't forget either. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideCloses the 0.5.0 pre-release review gaps by documenting migration and API behavior, clarifying service-type access control, enforcing release-note and signer readiness in CI and release workflows, and adding tests for pending-service permissions and administrative warnings. Sequence diagram for release readiness validationsequenceDiagram
participant CI
participant ReleaseNotes as release_notes.py
participant Repository
CI->>ReleaseNotes: require(version)
ReleaseNotes->>Repository: Check docs/releases/<version>.md
alt Notes exist
Repository-->>ReleaseNotes: Release notes found
ReleaseNotes-->>CI: Success
else No notes exist for any release
Repository-->>ReleaseNotes: No curated notes
ReleaseNotes-->>CI: Success
else Notes required but missing
Repository-->>ReleaseNotes: Other release notes exist
ReleaseNotes-->>CI: Error: notes missing
end
Flow diagram for upgrading from app version 0.4.0flowchart TD
A[Check stored service environments] --> B[Allow additional environments if needed]
B --> C[Add add-service-types and list-approvals policy rules]
C --> D[Upgrade with app scaled to 0 or restart after rollout]
D --> E[Backfill stored service types]
E --> F[Enable moderated service-type mode later]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #251 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 1603 1623 +20
=========================================
+ Hits 1603 1623 +20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 26, 2026 01:14
There was a problem hiding this comment.
Hey - I've found 2 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="scripts/release_notes.py" line_range="568" />
<code_context>
+ notes = releases / f"{version}.md"
+ if notes.is_file():
+ return None
+ others = [path for path in releases.glob("*.md") if path.name != notes.name]
+ return notes if others else None
+
</code_context>
<issue_to_address>
**First release blocked by unrelated Markdown**
When the requested release note is missing and the releases directory contains an unrelated top-level Markdown file, `missing_notes` treats every other `*.md` file as a prior release note, so `require` exits 1 and blocks release readiness and tagging even when this is the first release.
Count only versioned release-note files when deciding whether notes from an earlier release exist.
</issue_to_address>
### Comment 2
<location path="tests/test_workflows.py" line_range="81" />
<code_context>
assert signers
- assert set(signers) == {expected}
+ if Version(version) <= LAST_RELEASE_YAML:
+ assert set(signers) == {"release.yaml"}
+ else:
+ assert set(signers) == {"release.yml"}
</code_context>
<issue_to_address>
**Missing signer checks pass tests**
When one or more of the four verification commands loses its signer-workflow or certificate-identity URL while at least one command still matches, `assert signers` requires only one regex match, and `set(signers)` checks only matched workflow names, so missing signer checks pass unnoticed.
Assert that each of the four verification commands has matching signer-workflow and certificate-identity URLs.
Also at `tests/test_workflows.py:83`.
</issue_to_address>Sourcery assessment
Approval pending. 2 findings to address first.
Blocking findings: scripts/release_notes.py:568, tests/test_workflows.py:81
missing_notes() counts only files named like notes (<version>.md), not other Markdown files in docs/releases/, and the signer test expects all four signer URLs of the verification commands. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Closes #248
Summary
Closes the documentation, check and test gaps that the 0.5.0 pre-release review found, item by item:
docs/operations.md): deliberately unchanged in this PR.{{ version }}still renders as 0.4.0 fromCITATION.cff, and 0.4.0 was signed byrelease.yaml, so namingrelease.ymlnow would break the commands for the current release.test_verification_signer_workflownow enforces the change at the CITATION bump. Once the version is past 0.4.0, the commands must namerelease.yml, and the note below them must say that 0.4.0 was signed byrelease.yaml. So the release-prep PR can't ship without both.deployment/README.md: new "To app version 0.5.0" section:config.custom.endpoints.services.environmentsif needed;add-service-typesandlist-approvalsto list-form policy overlays;moderatedonly after that.docs/upgrading.md: new "From 0.4.0" section with the same steps, plus:db.services.distinct("environment");moderatedwaits for the full rollout: a user's pending type can hide another user's service that a 0.4.0 pod registered.docs/access-control.md: the example that restricts registration also restrictsadd-service-types, and points to modecontrolledfor admins-only types.docs/api.md:createdAt/updatedAt, the enforcedenvironment, and hidden pending services and types.moderated, or add them in modecontrolled.409on updates.scripts/release_notes.py require <version>(unit-tested). The release readiness check and the release workflow now fail withoutdocs/releases/<version>.mdonce notes of any other release exist, instead of checking the notes only if they exist.docs/development.mdnow says to merge the notes together with the CITATION bump.Not touched:
service_types.py,server.py,docs/configuration.mdand the API spec (#245, #246, #247 are being worked on in parallel). The configuration page's claim that older versions store new types as approved is part of #246.Effect on the release preparation
CITATION.cffbump to 0.5.0 withoutdocs/releases/0.5.0.mdonly warns in "Release readiness" on its PR, but fails ondevafter the merge. The 0.5.0 prepare PR must therefore add the notes in the same change.docs/operations.mdtorelease.ymland reword the note, ortest_verification_signer_workflowfails.Verification
pre-commit run --all-files: all hooks pass. The manual-stagegitleaks-allwas not run.coverage run --source cloud_registry,scripts -m pytest: 1235 passed, 228 skipped (Helm is not installed locally), coverage 100%.The same suite against MongoDB 7.0 (
MONGODB_TEST_URI,mongo:7.0in Docker), on the branch before review fixes that touched only scripts, docs and tests: 1226 passed, 228 skipped.mkdocs build --strict: passes, and the new anchors (from-040,deviations-from-the-ga4gh-specification) resolve.I extracted the release workflow's "Check release notes" step and ran it locally:
::error::docs/releases/<v>.md is missing ….Not done: a fork dry run of
release.yml, which the rules require after changes to the release workflow. It should happen before the 0.5.0 tag; the changed step only adds therequirecall before the existing checks.CI on 6bda6a1: every check passed (
CI passed, Lint, Docs, Chart, both Test jobs, Smoke test, Scan image, Release readiness, CodeQL, Read the Docs); the image pushes are skipped on PRs.Review
Two rounds of
adversarial-reviewerandquality-reviewer.Round 1:
release_notes.py requirewith tests.Round 2:
checkapplies (comment added), and the docs worded the rule too narrowly (now "once any other release has notes").Sourcery: two findings, both fixed in 6bda6a1.
requirenow counts only files named like release notes, and the signer test expects all four signer URLs. Sourcery approved after that.Declined review findings
docs/access-control.mdis over 80 characters. There is no line-length check for docs, and the neighbouring rules are as long.🤖 Generated with Claude Code