Skip to content

build: pin the foca-plugins 0.3.0 release - #471

Merged
uniqueg merged 4 commits into
devfrom
build/467-foca-plugins-0.3.0
Nov 9, 2026
Merged

uniqueg merged 4 commits into
devfrom
build/467-foca-plugins-0.3.0

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Closes #467

Summary

Back from the commit pin of foca-plugins (since #434) to the release train from PyPI, as docs/development.md asked for once a release allows our FOCA:

  • pyproject.toml: foca-plugins[generic-routing,tes-routing]==0.3.0 alone (foca-plugins 0.3.0 pins foca-plugin-generic-routing-random and foca-plugin-tes-routing-distance 0.1.3, foca>=0.18.0,<0.23; build: prepare the 0.3.0 release train foca-plugins#63, build(deps): bump lxml from 4.2.5 to 4.6.3 #64).
  • uv.lock: relocked; only the three foca-plugins packages change, from the Git commit to the PyPI releases with hashes.
  • Dockerfile: no ADD of the foca-plugins commit and no build of its wheels; the plugins are installed hash-checked from uv.lock like every other dependency.
  • scripts/image_requirements.py and its tests: the handling of plugin commit pins is removed (FOCA commit pins are unchanged).
  • Docs: docs/development.md, docs/plugin-images.md, docs/plugins.md describe the release train again; docs/upgrading.md ("To version 0.6.0") names foca-plugins 0.3.0.

How it was verified

  • PyPI: foca-plugins 0.3.0, foca-plugin-generic-routing-random 0.1.3 and foca-plugin-tes-routing-distance 0.1.3 are published (requires foca>=0.18.0,<0.23).
  • uv lock (3 packages updated, nothing else), uv lock --check, uv sync --locked --extra dev: pass.
  • coverage run -m pytest -W ignore::DeprecationWarning (with helm dependency build deployment and sha256sum -c charts.sha256): 1802 passed, 11 skipped; coverage 100%.
  • pre-commit run --all-files: all hooks pass. pre-commit run --all-files --hook-stage manual gitleaks-all: findings only in local untracked caches (.cache/, .venv/), none in the repository.
  • Not run locally: the image build, smoke and integration tests (Docker Compose, k3s); CI runs them.
  • CI: see the checks of this PR.

Review

adversarial-reviewer and quality-reviewer, 2 rounds, on the changes before the relock. Fixed: the plugins bullet in the upgrade notes and the foca-plugins paragraph in docs/development.md (both medium, wording), a trailing blank line (low), and a link to #434 for future commit pins (note). The relock commit changes only uv.lock (light lane: generated lock of the reviewed pin).

Declined review findings

  • (medium, quality) "the only exception is the build argument PLUGINS" in docs/development.md: this is the text from before build: move to FOCA 0.21 #434; the FOCA commit pin is not an exception to hash-checked installs, as the build fails unless the base image already has FOCA of that commit.
  • (low) "Dependabot bumps the train" may over-promise: Dependabot does bump it; whether a bump resolves is what CI checks.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Use the foca-plugins 0.3.0 release instead of a Git commit pin and install its routing plugins through the standard locked dependency workflow.

Enhancements:

  • Adopt the foca-plugins 0.3.0 release train with hash-locked routing plugin dependencies.
  • Simplify image dependency installation by removing special handling and in-image builds for foca-plugins commit pins.

Documentation:

  • Update dependency, plugin, development, and upgrade documentation to describe the released foca-plugins train and its FOCA compatibility.

Tests:

  • Remove tests for foca-plugins commit-pin handling and update plugin installation expectations.

Chores:

  • Relock the foca-plugins packages to their PyPI releases in uv.lock.

uniqueg and others added 2 commits November 9, 2026 17:52
Go back from the commit of foca-plugins dev to the release train
foca-plugins[generic-routing,tes-routing]==0.3.0, which allows FOCA
0.22, with hashes in uv.lock. Remove the ADD and the wheel build of
the Dockerfile's build stage, the handling of plugin commits in
scripts/image_requirements.py with its tests, and the docs of the
temporary pin.

Closes #467

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upgrade notes say plainly that the plugins 0.1.3 allow FOCA 0.18 to
0.22 and change nothing else; the development guide says that a new
FOCA minor needs a foca-plugins release first, and links #434 for
commit pins in tests. Drop a trailing blank line of a test module.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Replace the Git-pinned plugin wheels with the foca-plugins 0.3.0 release and remove the Docker build steps used only for the Git checkout.

  • Dockerfile L46 (removed lines), L50, L70
  • pyproject.toml L119-122

Remove filtering and validation that existed solely to handle Git-pinned foca-plugins requirements.

  • scripts/image_requirements.py L15-89 (5 small edits)

Documentation

Update development guidance to describe the released plugin train, its FOCA compatibility constraint, and the commit-pin test path.

  • docs/development.md L214-216, L238-245

Update plugin installation and default-routing documentation to describe the released, hash-locked plugins.

  • docs/plugin-images.md L27-30
  • docs/plugins.md L97-98

Record the plugin train and routing plugin versions in the upgrade notes.

  • docs/upgrading.md L66-69

Tests

Update the installed-plugin test's explanation to reflect release-train dependency pinning.

  • tests/ga4gh/tes/test_default_routing.py L113

Remove tests for the obsolete Git-reference filtering and Docker plugin-wheel build path.

  • tests/test_image_requirements.py L175 (removed lines)

Lock files and vendored code

Relock the plugin dependencies to their PyPI releases and hashes.

  • uv.lock L951-959, L965-980 (+3 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

Relock with `uv lock` now that foca-plugins 0.3.0 and its plugins
0.1.3 are on PyPI: the three foca-plugins packages move from the Git
commit to the PyPI releases, with hashes. No other package changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@read-the-docs-community

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

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35770233 | 📁 Comparing b706595 against latest (ede1645)

  🔍 Preview build  

4 files changed
± development/index.html
± plugin-images/index.html
± plugins/index.html
± upgrading/index.html

@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (eb596d2) to head (b706595).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #471   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines         3013      3007    -6     
=========================================
- Hits          3013      3007    -6     

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

sourcery-ai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Linked issues

Checked at commit b706595

#467 build: pin the foca-plugins 0.3.0 release · 4 of 4 met

# Requirement Status Notes
1 Use foca-plugins[generic-routing,tes-routing]==0.3.0 and lock its released packages with hashes. ✅ Met pyproject.toml pins the release train, and uv.lock records foca-plugins 0.3.0 and both routing plugins at 0.1.3 from PyPI with hashes.
2 Remove the Dockerfile fetch and wheel build for the foca-plugins commit. ✅ Met The build stage no longer fetches the commit or builds plugin wheels; the image installs locked dependencies with --require-hashes.
3 Remove the foca-plugins commit-pin handling from scripts/image_requirements.py and its tests. ✅ Met The script retains FOCA commit-pin handling but no longer has foca-plugins-specific filtering or validation; the corresponding plugin-pin tests are removed.
4 Update documentation that describes the temporary foca-plugins commit pin. ✅ Met The development, plugin-image, plugin, and upgrade docs now describe the release train, including the 0.3.0 upgrade notes.

@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 reviewed your changes and they look great!

Sourcery assessment

Approved.


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

@uniqueg
uniqueg merged commit 687b5c8 into dev Nov 9, 2026
35 of 36 checks passed
@uniqueg
uniqueg deleted the build/467-foca-plugins-0.3.0 branch November 9, 2026 23:22
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: pin the foca-plugins 0.3.0 release

1 participant