Repository navigation
build: release plugins for FOCA 0.23 - #97
Conversation
Raise the FOCA upper bound of generic.routing.random, tes.routing.distance, tes.data.crypt4gh, the template generic.example.noop and the meta distribution to <0.24, and test against FOCA 0.23.0 in CI. Prepare the releases: random 0.2.0 (its unreleased changes drop FOCA 0.18, a breaking change), distance 0.2.0, crypt4gh 0.1.1 and the release train foca-plugins 0.4.0, which pins them. Closes #96 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5
Reviewer's GuideConfigurationUpdate the package versions and FOCA compatibility bounds for the release train, released plugins, and example template, and add FOCA 0.23.0 to the CI matrix.
DocumentationRecord the release contents, compatibility changes, and user-facing version updates in the changelogs and documentation.
Lock files and vendored codeRefresh the dependency lockfile to reflect the updated release metadata and compatibility bounds.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Documentation build overview
4 files changed± index.html± catalogue/index.html± installing/index.html± writing-plugins/index.html |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #97 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 20 20
Lines 1793 1793
Branches 245 245
=========================================
Hits 1793 1793
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Linked issuesChecked at commit 2828fb3 #96 build: allow FOCA 0.23 in the TES routing plugins · 5 of 5 met
|
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="README.md" line_range="51" />
<code_context>
requests, which are on FOCA's `dev` branch only. The latest release train
-is `foca-plugins` 0.3.0 (without `tes.data.crypt4gh`, which the next train
-pins).
+is `foca-plugins` 0.4.0.
<!-- --8<-- [end:status] -->
</code_context>
<issue_to_address>
**README install example cannot resolve**
When the environment uses FOCA 0.23 and an operator follows the README install example, the example selects `foca-plugins[tes]==0.3.0`, which requires `foca<0.23`, so pip cannot resolve the install and users cannot install the current train.
Update the README install example to use the compatible `foca-plugins[tes]==0.4.0` train.
Also at `docs/installing.md:16`, `README.md:52`.
</issue_to_address>
### Comment 2
<location path="plugins/generic/routing/random/pyproject.toml" line_range="15" />
<code_context>
# SemVer, bumped in the release pull request (tag
# `foca-plugin-generic-routing-random-v<version>`; see "Releasing" in the docs)
-version = "0.1.3"
+version = "0.2.0"
description = "FOCA gateway plugin that routes requests to the backends in random order"
readme = "README.md"
</code_context>
<issue_to_address>
**Requested random version missing**
The issue asks for generic.routing.random 0.1.4, while this change prepares version 0.2.0 instead. The compatibility release is present, but the requested release version is not.
</issue_to_address>
### Comment 3
<location path="docs/installing.md" line_range="16" />
<code_context>
- which doesn't pin `tes.data.crypt4gh` yet (the next train will).
+ `tes.routing.distance` (0.2.0 each) and `tes.data.crypt4gh` (0.1.1),
+ are experimental; the latest release train is `foca-plugins` 0.4.0,
+ which pins all three.
Distributions named below that don't exist yet are examples of the
naming scheme.
</code_context>
<issue_to_address>
**Crypt4GH availability is misstated**
The installation guide says `tes.data.crypt4gh` and `[tes-data]` are in no released train, even though `foca-plugins` 0.4.0 pins the plugin in those extras, so users are told the new release does not provide it.
Update the paragraph about the extras to say that Crypt4GH is now included in the 0.4.0 train.
</issue_to_address>Sourcery assessment
Needs a human reviewer. 2 findings to address first, and upgrading the release train can enable the distance plugin’s new daily lookup cap and write cached locations and lookup counts to FOCA’s shared store. Reverting restores the earlier plugin behavior, but those bounded cache and count records remain until cleared.
Blocking findings: README.md:51, plugins/generic/routing/random/pyproject.toml:15
The README example installs the new train, and the installing guide no longer says that tes.data.crypt4gh is in no released train. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5
Summary
Lets the released plugins install alongside FOCA 0.23 and prepares their releases, following "New FOCA versions" and "Steps" in
docs/releasing.md:0.23.0).<0.24forgeneric.routing.random,tes.routing.distance,tes.data.crypt4gh, the templategeneric.example.noopand the meta distribution. Lower bounds are unchanged. The threewes.*plugins already allow<0.24(their lower bound on FOCA's dev version is build(wes/workflow/trs): require released FOCA #90).foca-plugin-generic-routing-random0.2.0, not 0.1.4: its unreleased section already drops FOCA 0.18, which is a breaking change, so the minor version goes up before 1.0.foca-plugin-tes-routing-distance0.2.0: the plugin-store features and breaking changes from feat(distance): use plugin store for cache, budget #21 are unreleased.foca-plugin-tes-data-crypt4gh0.1.1: it also capped<0.23, and the train pins it, sofoca-plugins[tes]couldn't resolve with FOCA 0.23 without this release. Its image is released with it as0.1.1.foca-plugins0.4.0: the new pins, the added crypt4gh pin, and FOCA 0.18 dropped (a minor bump while 0.x).Checked against FOCA 0.23.0's breaking changes: the plugins don't compare subjects, and the distance plugin's per-caller lookup budget (keyed by
subject_typeandsubject) is new in 0.2.0, so namespaced subjects reset no released state. Routing doesn't depend onrun.route()accepting unknown backends.Light lane: only version bounds, versions, changelogs, docs and a CI matrix entry change; there is no code change, and neither secrets, permissions nor the release workflow are touched. I reviewed the diff myself.
Closes #96
Verification
pytestof each plugin with FOCA 0.23.0 installed: random 24 passed, distance 178 passed, crypt4gh 130 passed, noop 15 passed.uv lock --check: OK.python -m scripts.checks check: OK.pytest tests(scripts): 152 passed.python -m scripts.release notes <tag>renders the notes for all four tags.mkdocs build --strict: OK.pre-commit run --from-ref origin/dev --to-ref HEAD: all hooks passed.Release order (after merge, fast-forward
main)The plugin tags go first (3 per push at most). The train tag follows once the plugins are on PyPI:
foca-plugin-generic-routing-random-v0.2.0,foca-plugin-tes-routing-distance-v0.2.0,foca-plugin-tes-data-crypt4gh-v0.1.1foca-plugins-v0.4.0Declined review findings
None (light lane).
Open questions
None.
🤖 Generated with Claude Code
https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5