Skip to content

build: prepare the 0.4.0 release - #382

Merged
uniqueg merged 2 commits into
devfrom
build/380-release-0.4.0
Nov 1, 2026
Merged

uniqueg merged 2 commits into
devfrom
build/380-release-0.4.0

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

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 ## Commits and Full Changelog are added by the release workflow, as for 0.3.0), changelog and docs nav.
  • Upgrade guide: item 10, tasks stored before 0.3.0 are not resumed for tracking.
  • Verification commands in docs/operations.md use elixir-cloud-aai/protes and release.yml (LAST_RELEASE_PROTES stays 0.3.0, which makes test_verification_signer_workflow require this).
  • tests/test_version_mentions.py allows links to the migration headings ([To version X](#...)); two "Since 0.4.0" sentences in the docs are reworded.
  • The two bullets given by the maintainer (security, maintenance) are verbatim except for the final period after the issue numbers, which scripts/release_notes.py check rejects.

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.
  • Not run locally: helm chart tests, pre-commit hooks other than ruff, Docker; CI covers them.

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:

  • Add the 0.4.0 release notes, changelog entry, and documentation navigation.
  • Document the 0.4.0 upgrade requirement that tasks stored before 0.3.0 are not resumed for tracking.
  • Correct release verification commands and repository workflow references for the current project name.

Documentation:

  • Update documentation wording and version-reference validation to support the 0.4.0 release and migration links.

Chores:

  • Bump release metadata to version 0.4.0 and its release date.

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]>
@sourcery-ai

sourcery-ai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Prepares 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

Change Details Files
Publish the 0.4.0 release metadata and documentation.
  • Update citation/version and release date metadata.
  • Add comprehensive 0.4.0 release notes covering breaking changes, features, security, fixes, documentation, and maintenance.
  • Add the release to the changelog and MkDocs navigation.
CITATION.cff
docs/releases/0.4.0.md
docs/changelog.md
mkdocs.yml
Document the 0.4.0 upgrade path and behavioral changes.
  • Add guidance that tasks stored before 0.3.0 retain their last state instead of resuming tracking.
  • Clarify plugin-era task-log behavior and link the relevant migration sections.
docs/upgrading.md
docs/api.md
Correct release verification references for the renamed repository and workflow.
  • Use the lowercase protes repository and release.yml workflow in container, chart, and Sigstore verification commands.
docs/operations.md
Extend documentation version validation for migration links.
  • Allow links pointing to version migration headings while continuing to validate other version mentions.
tests/test_version_mentions.py

Possibly linked issues


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

@read-the-docs-community

read-the-docs-community Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35562766 | 📁 Comparing c92ce83 against latest (4887bc0)

  🔍 Preview build  

7 files changed · + 1 added · ± 6 modified

+ Added

± Modified

@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4887bc0) to head (c92ce83).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 1, 2026 17:43

@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 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


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

Comment thread docs/operations.md Resolved
Comment thread docs/releases/0.4.0.md Resolved
Comment thread docs/releases/0.4.0.md Resolved
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]>

@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.

Sourcery assessment

Approved.

@uniqueg
uniqueg merged commit ed1c90c into dev Nov 1, 2026
32 checks passed
@uniqueg
uniqueg deleted the build/380-release-0.4.0 branch November 1, 2026 17:52
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.

build: prepare the 0.4.0 release

1 participant