Repository navigation
build: prepare the 0.4.0 release - #382
Merged
Merged
Conversation
Set the version and date in CITATION.cff, add the release notes (docs/releases/0.4.0.md), the changelog and nav entries, and a line in the upgrade guide on tasks stored before 0.3.0. The verification commands name the repository protes and release.yml, as release 0.4.0 is signed by them. The version-mention test allows links to the migration headings. Closes #380 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuidePrepares the 0.4.0 release through synchronized metadata, release notes, upgrade guidance, documentation navigation, verification commands, and version-mention test allowances; no product code is changed. File-Level Changes
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 #382 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 23 23
Lines 2217 2217
=========================================
Hits 2217 2217 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
November 1, 2026 17:43
There was a problem hiding this comment.
Hey - I've found 3 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/operations.md" line_range="289-294" />
<code_context>
gh attestation verify oci://docker.io/elixircloud/protes:{{ version }} \
- --repo elixir-cloud-aai/proTES \
- --signer-workflow elixir-cloud-aai/proTES/.github/workflows/release.yaml \
+ --repo elixir-cloud-aai/protes \
+ --signer-workflow elixir-cloud-aai/protes/.github/workflows/release.yml \
--source-ref refs/tags/v{{ version }}
cosign verify docker.io/elixircloud/protes:{{ version }} \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
- --certificate-identity https://github.com/elixir-cloud-aai/proTES/.github/workflows/release.yaml@refs/tags/v{{ version }}
+ --certificate-identity https://github.com/elixir-cloud-aai/protes/.github/workflows/release.yml@refs/tags/v{{ version }}
```
</code_context>
<issue_to_address>
**Older release verification fails**
When a reader uses these commands to verify a release up to and including 0.3.0, the `gh attestation verify` and `cosign` commands use the `protes` repository and `release.yml`, so verification of that release fails because its signatures identify `proTES` and `release.yaml`.
Provide commands or substitutions for releases up to 0.3.0, or clarify that these commands only verify releases after 0.3.0.
Also at `docs/operations.md:343-352`.
</issue_to_address>
### Comment 2
<location path="docs/releases/0.4.0.md" line_range="86-88" />
<code_context>
+
+## Fixes
+
+- Creating a task ends within the 60 seconds of common proxies' read
+ timeouts with the default settings (`plugins.defaults.forward_timeout:
+ 20`), and tokens of service registries are no longer logged (#364, #369)
+- Middlewares kept the order of the TES instances, and the changes of failed
+ middlewares were undone, before the plugins replaced the middlewares
</code_context>
<issue_to_address>
**Task requests exceed proxy timeouts**
When a task request also waits on a due registry refresh, a token request, or other work outside the forwarding budget, registry refreshes, token acquisition, plugin execution, and database writes add time outside the forwarding budget, so task creation can exceed 60 seconds and clients behind those proxies receive a timeout and may retry the request.
Qualify the release-note claim to state that the estimate excludes registry, token, plugin, and database overhead, or avoid promising a 60-second maximum.
</issue_to_address>
### Comment 3
<location path="docs/releases/0.4.0.md" line_range="21" />
<code_context>
+ startup. The middleware management API and its collection are removed, and
+ custom middlewares must be ported to plugins. Tasks that no TES instance
+ accepts fail with `503` (was `500`), requests that already passed proTES
+ with `508 Loop Detected`, and tasks with tags under `gateway.` other than
+ those of the clients' choices with `400` (see
+ [Plugins](https://protes.readthedocs.io/en/v0.4.0/upgrading/#plugins))
</code_context>
<issue_to_address>
**Loop detection is overstated**
When a deployment has neither `server.public_url` nor `plugins.gateway_id` configured, the release note promises that requests already passed through proTES receive `508 Loop Detected`, even though loop detection requires one of those settings, leaving operators expecting protection they do not have.
Qualify the `508 Loop Detected` statement by noting that loop detection requires `server.public_url` or `plugins.gateway_id`.
</issue_to_address>Linked issues
#380 build: prepare the 0.4.0 release · 4 of 4 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Set the version and date in CITATION.cff. | ✅ Met | CITATION.cff now has version 0.4.0 and release date 2026-11-01. |
| 2 | Add the 0.4.0 release notes in the org format, and update the changelog and docs navigation. | ✅ Met | The release notes are added, and both the changelog and MkDocs navigation link to them. |
| 3 | Use elixir-cloud-aai/protes and release.yml in verification commands; keep LAST_RELEASE_PROTES at 0.3.0. | ✅ Met | The verification commands use the requested repository and workflow identifiers; tests/test_workflows.py still sets LAST_RELEASE_PROTES to 0.3.0. |
| 4 | Add an upgrade-guide line saying tasks stored before 0.3.0 are not resumed for tracking. | ✅ Met | Upgrade item 10 says unfinished tasks stored before 0.3.0 are not resumed for tracking and keep their last state. |
Sourcery assessment
Approval pending. 3 findings to address first.
Blocking findings: docs/operations.md:294, docs/releases/0.4.0.md:88, docs/releases/0.4.0.md:21
Loop detection needs server.public_url or plugins.gateway_id, and the 60 second bound of task creation excludes other work. 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.
Summary
CITATION.cff: version 0.4.0, date 2026-11-01.docs/releases/0.4.0.md: release notes in the org format (intro with the link to the upgrade guide, sections in order; the generated## CommitsandFull Changelogare added by the release workflow, as for 0.3.0), changelog and docs nav.docs/operations.mduseelixir-cloud-aai/protesandrelease.yml(LAST_RELEASE_PROTESstays 0.3.0, which makestest_verification_signer_workflowrequire this).tests/test_version_mentions.pyallows links to the migration headings ([To version X](#...)); two "Since 0.4.0" sentences in the docs are reworded.scripts/release_notes.py checkrejects.Closes #380
Verification
scripts/release_notes.py check docs/releases/0.4.0.md: OK.scripts/check_release_pins.py .: OK.coverage run -m pytest: 1162 passed, 177 skipped, 100% coverage;ruff check/format,mkdocs build --strict: OK.Light lane: docs and release metadata only (plus an allowlist entry in a docs test), no reviewer subagents; reviewed the diff myself.
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Prepare the project metadata and documentation for the 0.4.0 release.
Enhancements:
Documentation:
Chores: