Skip to content

build: release plugins for FOCA 0.23 - #97

Merged
uniqueg merged 2 commits into
devfrom
build/foca-0.23
Nov 26, 2026
Merged

uniqueg merged 2 commits into
devfrom
build/foca-0.23

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Lets the released plugins install alongside FOCA 0.23 and prepares their releases, following "New FOCA versions" and "Steps" in docs/releasing.md:

  • CI tests every plugin against FOCA 0.23.0 too (matrix entry 0.23.0).
  • The upper FOCA bound is now <0.24 for generic.routing.random, tes.routing.distance, tes.data.crypt4gh, the template generic.example.noop and the meta distribution. Lower bounds are unchanged. The three wes.* plugins already allow <0.24 (their lower bound on FOCA's dev version is build(wes/workflow/trs): require released FOCA #90).
  • Versions and changelog sections:
    • foca-plugin-generic-routing-random 0.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-distance 0.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-crypt4gh 0.1.1: it also capped <0.23, and the train pins it, so foca-plugins[tes] couldn't resolve with FOCA 0.23 without this release. Its image is released with it as 0.1.1.
    • Release train foca-plugins 0.4.0: the new pins, the added crypt4gh pin, and FOCA 0.18 dropped (a minor bump while 0.x).
  • The README and the installing and writing-plugins docs name the new versions and FOCA 0.23.

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_type and subject) is new in 0.2.0, so namespaced subjects reset no released state. Routing doesn't depend on run.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

  • pytest of 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.
  • CI: all checks passed (runs 45716216580 and, after the docs fix, the head run), including the new FOCA 0.23.0 entries for every plugin and Python version; no open code scanning alerts.

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:

  1. foca-plugin-generic-routing-random-v0.2.0, foca-plugin-tes-routing-distance-v0.2.0, foca-plugin-tes-data-crypt4gh-v0.1.1
  2. foca-plugins-v0.4.0

Declined review findings

None (light lane).

Open questions

None.

🤖 Generated with Claude Code

https://claude.ai/code/session_011FSoqN5w1v5t1QRTKU7ad5

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
@uniqueg uniqueg self-assigned this Nov 25, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

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

  • .github/workflows/ci.yml L169, L181-182
  • meta/pyproject.toml L15, L34, L45-58
  • plugins/generic/example/noop/pyproject.toml L49-51
  • plugins/generic/routing/random/pyproject.toml L15, L40-42
  • plugins/tes/data/crypt4gh/pyproject.toml L15, L40-42
  • plugins/tes/routing/distance/pyproject.toml L15, L40-42

Documentation

Record the release contents, compatibility changes, and user-facing version updates in the changelogs and documentation.

  • README.md L43-44, L51, L64
  • docs/installing.md L14-57 (4 small edits)
  • docs/writing-plugins.md L148-149
  • meta/CHANGELOG.md L11-36
  • plugins/generic/example/noop/README.md L20
  • plugins/generic/routing/random/CHANGELOG.md L10-24
  • plugins/generic/routing/random/README.md L19
  • plugins/tes/data/crypt4gh/CHANGELOG.md L9-20
  • plugins/tes/data/crypt4gh/README.md L24
  • plugins/tes/routing/distance/CHANGELOG.md L10-19, L39-43
  • plugins/tes/routing/distance/README.md L22

Lock files and vendored code

Refresh the dependency lockfile to reflect the updated release metadata and compatibility bounds.

  • uv.lock L1297-1389 (4 small edits)

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 25, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 foca-plugins | 🛠️ Build #36174614 | 📁 Comparing 2828fb3 against latest (1024d37)

  🔍 Preview build  

4 files changed
± index.html
± catalogue/index.html
± installing/index.html
± writing-plugins/index.html

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1024d37) to head (2828fb3).

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           
Flag Coverage Δ
foca-plugin-generic-example-noop 100.00% <ø> (ø)
foca-plugin-generic-routing-random 100.00% <ø> (ø)
foca-plugin-tes-data-crypt4gh 100.00% <ø> (ø)
foca-plugin-tes-routing-distance 100.00% <ø> (ø)
foca-plugin-wes-routing-workflow-type 100.00% <ø> (ø)
foca-plugin-wes-workflow-git 100.00% <ø> (ø)
foca-plugin-wes-workflow-trs 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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 25, 2026 22:51
@sourcery-ai

sourcery-ai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Linked issues

Checked at commit 2828fb3

#96 build: allow FOCA 0.23 in the TES routing plugins · 5 of 5 met

# Requirement Status Notes
1 Raise the plugin FOCA caps to <0.24, keeping lower bounds unchanged. ✅ Met The random and distance plugins now declare foca>=0.19.0,<0.24.
2 Test the plugins against FOCA 0.23.0, including the subject and unknown-backend behavior changes. ✅ Met The CI matrix now includes FOCA 0.23.0 and runs the plugin tests for supported matrix entries; the PR reports those checks passed.
3 Release random 0.1.4. ✅ Met The release is prepared as 0.2.0 instead; its changelog includes dropping FOCA 0.18, a breaking change that warrants a minor bump before 1.0.
4 Release distance 0.1.4 or 0.2.0. ✅ Met The release is prepared as 0.2.0, with the plugin-store changes and breaking changes recorded in its changelog.
5 Release the foca-plugins train as 0.4.0. ✅ Met The meta distribution is versioned 0.4.0 and pins the updated plugins, including Crypt4GH.

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


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

Comment thread README.md Resolved
Comment thread docs/installing.md Resolved
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
@uniqueg
uniqueg merged commit dced8d9 into dev Nov 26, 2026
424 checks passed
@uniqueg
uniqueg deleted the build/foca-0.23 branch November 26, 2026 00:26
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: allow FOCA 0.23 in the TES routing plugins

1 participant