Repository navigation
test: run the integration tests on Funnel 0.12.3 - #485
Conversation
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
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Reviewer's GuideImplementationAdjust 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.
ConfigurationPin Funnel 0.12.3 in the integration image and remove the obsolete executor-state override from its CI step.
Update the local integration instructions to run without the removed Funnel-specific state override.
DocumentationDocument Funnel 0.12.3 service-info and task behavior, retain historical 0.11.14 notes, and update the described integration versions and task expectations.
TestsRecognize Funnel 0.12.3's TES service-info version and verify that integration documentation names the version pinned by the image.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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
Linked issuesChecked at commit d79c4f5 #481 test: run the integration tests on Funnel 0.12.3 · 3 of 4 met · 1 to check by hand
|
There was a problem hiding this comment.
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
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
Summary
Runs the integration job on Funnel 0.12.3 instead of 0.11.14.
tests/integration/compose.yamlpinsquay.io/ohsu-comp-bio/funnel:0.12.3by its index digest (sha256:bfd61592…). The Docker CLI is still copied in, because the image has/app/funnelbut no Docker CLI.Funnel 0.12.3 ends a task in
COMPLETEwhen its failing executor hasignore_error: true(Fix Compliance Test Errors calypr/funnel#1435). So the step "Check TES 1.1 on Funnel" no longer setsIGNORE_ERROR_STATE, andtests/integration/versions.shdrops that switch and always expectsCOMPLETE.Funnel 0.12.3 reports its type as
org.ga4gh/tes/1.1.0in its service info (checked locally on the pinned image).docs/configuration.mdchanges to match:tes.versionis needed for Funnel before 0.12.3;The integration config keeps the label, so that this path of the config stays tested.
Funnel 0.12.3 drops keys of
backend_parametersthat it doesn't list in its service info (TES 1.1 allows this for keys that aren't strict). The backend check inversions.shnow accepts the key as sent or absent, but no other value, and both docs note this.docs/development.mdnames 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.pychecks that noversions.shstep setsIGNORE_ERROR_STATE.compose.yaml.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 intests/test_chart.pyandtests/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.docker run … server run, thencurl /v1/service-inforeturns typeorg.ga4gh/tes/1.1.0, and the healthcheck command/app/funnel task listworks. The full integration stack was not run locally (it needs the host's Docker socket); the CI jobIntegrationcovers it.Integrationon Funnel 0.12.3:versions.sh(the task withignore_error: trueends inCOMPLETE),check.shwith 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 keyprotes-integrationofbackend_parameters; fixed in fe28e54.Declined review findings
tes.versionlabel 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 reading1.1.0. This could be a follow-up issue.docs/upgrading.mdanddocs/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