Skip to content

test: run the integration tests on Funnel 0.12.3 - #485

Merged
uniqueg merged 5 commits into
devfrom
test/481-funnel-0.12.3
Nov 12, 2026
Merged

uniqueg merged 5 commits into
devfrom
test/481-funnel-0.12.3

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Runs the integration job on Funnel 0.12.3 instead of 0.11.14.

  • tests/integration/compose.yaml pins quay.io/ohsu-comp-bio/funnel:0.12.3 by its index digest (sha256:bfd61592…). The Docker CLI is still copied in, because the image has /app/funnel but no Docker CLI.

  • Funnel 0.12.3 ends a task in COMPLETE when its failing executor has ignore_error: true (Fix Compliance Test Errors calypr/funnel#1435). So the step "Check TES 1.1 on Funnel" no longer sets IGNORE_ERROR_STATE, and tests/integration/versions.sh drops that switch and always expects COMPLETE.

  • Funnel 0.12.3 reports its type as org.ga4gh / tes / 1.1.0 in its service info (checked locally on the pinned image). docs/configuration.md changes to match:

    • it says that the label tes.version is needed for Funnel before 0.12.3;
    • it adds notes on 0.12.3 and keeps the notes on 0.11.14 (tested with proTES 0.5.0 and 0.6.0).

    The integration config keeps the label, so that this path of the config stays tested.

  • Funnel 0.12.3 drops keys of backend_parameters that it doesn't list in its service info (TES 1.1 allows this for keys that aren't strict). The backend check in versions.sh now accepts the key as sent or absent, but no other value, and both docs note this.

  • docs/development.md names the tested versions (Funnel 0.12.3, TESP-API 0.2.0, Pulsar 0.14.16) and drops the workaround from the instructions for a local run.

  • Tests:

    • tests/test_workflows.py checks that no versions.sh step sets IGNORE_ERROR_STATE.
    • A new test there checks that both docs name the Funnel version pinned in compose.yaml.
    • The unit test of service infos now names its Funnel 0.12.3 case.

Closes #481

Verification

  • pre-commit run --all-files: all hooks pass (ruff, semgrep, gitleaks, actionlint, ast-grep, mypy).
  • coverage run -m pytest: 1686 passed, 100% coverage. 191 failures, all in tests/test_chart.py and tests/test_config_examples.py (chart examples): the library chart can't be built locally, because Helm isn't usable on this machine. CI builds it.
  • mkdocs build --strict: passes.
  • The image and its service info were checked locally: docker run … server run, then curl /v1/service-info returns type org.ga4gh/tes/1.1.0, and the healthcheck command /app/funnel task list works. The full integration stack was not run locally (it needs the host's Docker socket); the CI job Integration covers it.
  • CI: all checks pass on d79c4f5, after the fixes for Sourcery (run 43302895402), and before that on fe28e54 (run 43298722945), including Integration on Funnel 0.12.3: versions.sh (the task with ignore_error: true ends in COMPLETE), check.sh with its cancel flow, and the Funnel healthcheck. The first run (43295258865) failed in "Check TES 1.1 on Funnel": Funnel 0.12.3 drops the unlisted key protes-integration of backend_parameters; fixed in fe28e54.

Declined review findings

  • Remove the tes.version label from the Funnel entry, so that CI tests reading the version from the service info. Declined: the issue doesn't ask for it, and the label path would then go untested in the integration job. The facts behind the docs were checked on the pinned image, and the unit tests cover reading 1.1.0. This could be a follow-up issue.
  • Merge the notes on 0.11.14 and 0.12.3 into one block: kept as two blocks, so that the notes on the version tested now stay separate from the historical ones.
  • Update docs/upgrading.md and docs/releases/0.5.0.md: not changed, since they describe released versions.

Open questions

None.

🤖 Generated with Claude Code

https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV

uniqueg and others added 3 commits November 12, 2026 20:15
Pin Funnel 0.12.3 by digest in the integration stack (still with the
Docker CLI copied in). It ends a task whose failing executor has
`ignore_error: true` in `COMPLETE`, as TES 1.1 has it, so the step
"Check TES 1.1 on Funnel" no longer sets `IGNORE_ERROR_STATE`, and
`versions.sh` drops the switch and always expects `COMPLETE`.

Funnel 0.12.3 also reports TES 1.1.0 in its service info; the docs say
that the label `tes.version` is needed only before 0.12, and keep the
notes on 0.11.14. A test checks that the docs name the pinned version.

Closes #481

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Match the docs by pattern instead of exact prose, drop the check of the
script's text, and name Funnel 0.12.3 in the unit test of service infos.
The docs name the versions that were checked: the label is needed before
0.12.3, Funnel 0.11.14 was tested with proTES 0.5.0 and 0.6.0, and 0.12.3
reports group, artifact and version of TES 1.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
@uniqueg uniqueg self-assigned this Nov 12, 2026
@read-the-docs-community

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

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35850210 | 📁 Comparing d79c4f5 against latest (e0bdfd2)

  🔍 Preview build  

2 files changed
± configuration/index.html
± development/index.html

@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Adjust the integration version checks for Funnel 0.12.3, accepting its permitted removal of an unsupported backend parameter while requiring ignored executor errors to complete successfully.

  • tests/integration/versions.sh L12-13, L84-93, L109-110

Configuration

Pin Funnel 0.12.3 in the integration image and remove the obsolete executor-state override from its CI step.

  • tests/integration/compose.yaml L44, L52
  • tests/integration/config.yaml L22-23
  • .github/workflows/ci.yml L451 (removed lines)

Update the local integration instructions to run without the removed Funnel-specific state override.

  • docs/development.md L120

Documentation

Document Funnel 0.12.3 service-info and task behavior, retain historical 0.11.14 notes, and update the described integration versions and task expectations.

  • docs/configuration.md L277-279, L299, L318-335
  • docs/development.md L75-76, L88-98
  • pro_tes/config.yaml L340-341

Tests

Recognize Funnel 0.12.3's TES service-info version and verify that integration documentation names the version pinned by the image.

  • tests/ga4gh/tes/test_backend_versions.py L81
  • tests/test_workflows.py L158-189 (+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

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #485   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines         3038      3038           
=========================================
  Hits          3038      3038           

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

Funnel 0.12.3 drops the key `protes-integration` of `backend_parameters`
from the task, as it doesn't list it in its service info; TES 1.1 lets
backends ignore keys that aren't strict. The backend check of
`versions.sh` now accepts the key kept or dropped, but not changed, and
the docs note the behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
@uniqueg
uniqueg marked this pull request as ready for review November 12, 2026 20:27
@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Linked issues

Checked at commit d79c4f5

#481 test: run the integration tests on Funnel 0.12.3 · 3 of 4 met · 1 to check by hand

# Requirement Status Notes
1 Pin Funnel 0.12.3 by digest, keeping the Docker CLI copied in ✅ Met The Compose image uses the 0.12.3 digest and copies the CLI from the pinned Docker image.
2 Expect COMPLETE for the Funnel step and remove Funnel-only workarounds in versions.sh ✅ Met The workflow no longer sets IGNORE_ERROR_STATE, and versions.sh awaits COMPLETE.
3 Pass check.sh's cancel flow and the healthcheck on 0.12.3 in CI 👀 Check by hand (runtime) Verify the Integration CI run exercised the cancel flow and Funnel healthcheck successfully on 0.12.3; the PR description reports that it did.
4 Name the tested Funnel version in docs/configuration.md and docs/development.md ✅ Met Both documents name Funnel 0.12.3.

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

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="tests/integration/versions.sh" line_range="89-90" />
<code_context>
   check_backend "${id}" '
     .inputs[0].streamable == true
-    and .resources.backend_parameters["protes-integration"] == "hint"'
+    and (.resources.backend_parameters["protes-integration"] // "hint")
+      == "hint"'
 fi

</code_context>
<issue_to_address>
**Unexpected backend values pass integration check**

When the backend returns `null` or `false` for `protes-integration`, or omits `backend_parameters`, the `// "hint"` fallback treats those values as missing, so `check_backend` accepts the unexpected response and the integration test passes.

Change the predicate to accept the expected value or an absent key explicitly, without treating `null` or `false` as absent.
</issue_to_address>

### Comment 2
<location path="tests/test_workflows.py" line_range="174" />
<code_context>
+        (ROOT / "tests" / "integration" / "compose.yaml").read_text()
+    )
+    build = compose["services"]["funnel"]["build"]["dockerfile_inline"]
+    pins = re.findall(
+        r"^FROM quay\.io/ohsu-comp-bio/funnel:(\d+\.\d+\.\d+)@sha256:[0-9a-f]{64}$",
+        build,
</code_context>
<issue_to_address>
**Override image pin goes unnoticed**

When the inline Dockerfile adds a later `FROM` stage that replaces the pinned Funnel image, `test_integration_funnel_version` matches a Funnel `FROM` line anywhere in the Dockerfile, so a later `FROM` that supplies a different final image leaves the pin match and documentation assertions passing even though the integration stack no longer runs that Funnel image.

Verify that the matched Funnel pin is the final Dockerfile stage used to build the service image.
</issue_to_address>

Sourcery assessment

Approval pending. 2 findings to address first.

Blocking findings: tests/integration/versions.sh:90, tests/test_workflows.py:174


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

Comment thread tests/integration/versions.sh Resolved
Comment thread tests/test_workflows.py Resolved
The backend check of `versions.sh` accepts the key of
`backend_parameters` only as sent or absent, not with another value
such as `null`, and requires the parameters to be an object. The test
of the Funnel pin requires it to be the final stage of the image.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV

@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 12ad575 into dev Nov 12, 2026
50 checks passed
@uniqueg
uniqueg deleted the test/481-funnel-0.12.3 branch November 12, 2026 21:01
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.

test: run the integration tests on Funnel 0.12.3

1 participant