Repository navigation
test: run against Funnel and TESP-API in CI - #426
Conversation
Add the job `integration` to `ci.yml`, with `tests/integration/`: proTES in Docker Compose relays tasks to the official Funnel image and to the published TESP-API image with Pulsar. `check.sh` creates, polls and cancels tasks, with the final states and logs as clients see them, and asks the backend for its own state of canceled tasks. The job isn't needed by the gate yet (`NOT_IN_GATE`), as it depends on third parties' registries and packages, and skips edits of pull requests. Closes #422 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideThis PR adds a Docker Compose-based integration lane that routes real tasks through pinned Funnel and TESP-API services, validates their task lifecycle and response differences, and keeps the third-party-dependent job outside the required CI gate. File-Level Changes
Possibly linked issues
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 #426 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 24 24
Lines 2680 2680
=========================================
Hits 2680 2680 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#422 test: run against Funnel and TESP-API in CI · 4 of 4 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Add an integration job in ci.yml that runs proTES in Docker Compose against Funnel and TESP-API with Pulsar. |
✅ Met | The job starts the Compose setup and runs check.sh against both backends. |
| 2 | Use pinned images. | ✅ Met | The backend and supporting images are pinned by digest or version; CI also pulls the TESP-API staging image by digest. |
| 3 | Create, poll and cancel tasks; check their final state, including logs in the FULL view. |
✅ Met | check.sh exercises finishing, failing and canceled tasks, and checks FULL logs for completed and failed tasks. |
| 4 | Do not make the integration job necessary for the gate yet. | ✅ Met | integration is excluded from the gate's needs in tests/test_workflows.py. |
Sourcery assessment
Needs a human reviewer. Funnel and Pulsar receive the runner’s Docker socket so they can start task containers; that grants these service containers control of the runner’s Docker daemon and access to its workspace. Reverting removes that access for future runs, but it cannot undo runner data or credentials exposed if the boundary is compromised.
Summary
Closes #422 (part of #415, which stays open for #423, #424 and #425).
Adds the job
integration("Integration") toci.yml. proTES in Docker Compose relays tasks to real TES implementations, pinned by digest: Funnel 0.11.14 (official image, plus the Docker CLI, which it lacks) and TESP-API 0.2.0 (published image atcerit.io) with Pulsar 0.14.16.tests/integration/check.shruns, against each backend: a task that finishes (with an input), one that fails, one canceled while it runs, one canceled right away; final states, logs inFULLandBASIC, and the state that the backend itself reports.Not needed by the gate yet (
NOT_IN_GATEintests/test_workflows.py, see #425); skipped withif:on edits of pull requests. No secrets; the job has onlycontents: read. Executors run through the runner's Docker socket.Light lane: only
tests/and a CI job, without secrets, permissions or the release workflow; nothing inpro_tes/. I reviewed the diff myself.What real backends do differently from the fake
CANCELED, but its container keeps running (seen:sleep 600still up 9 minutes later). Funnel removes it.1.0.0, so proTES sends it no 1.1 fields:ignore_errorgives400.file://output on TESP gives the client503 No backend accepted the request. TESP's model doesn't allow that scheme (read in its source; its response wasn't observed).type.version: "", not its own version asdocs/configuration.mdsays; the labeltes.versionstays needed.Verification
Local (before the denial below), with Docker Compose:
check.shpassed against Funnel and against TESP-API with Pulsar 0.14.16. Pre-commit on the changed files andtests/test_workflows.py(67 passed).Not run locally: the final
check.shwith inputs, the pinned stage image and port 8080, because running a third-party image locally was then denied by the permission classifier. CI covers these.CI: run 41833031056 passed, with
Integrationgreen on both backends, on the first push. Runs for edits of the pull request showIntegrationas skipped, on purpose.Unrelated fixes
None.
Declined review findings
None (light lane).
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Validate proTES interoperability with real TES backends through a non-blocking CI integration suite.
New Features:
Enhancements:
CI:
Tests: