Repository navigation
docs: add notes on TES implementations - #428
Merged
Merged
Conversation
Correct what Funnel reports as its version, describe the integration suite and its job, and note what was seen when running Funnel 0.11.14 and TESP-API 0.2.0 through proTES. Closes #427 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideAdds documentation for observed Funnel, TESP-API, and TESK behavior, updates Funnel version-label guidance, and explains the Docker Compose integration suite, its current non-gating status, and local execution steps. 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 #428 +/- ##
=========================================
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:
|
uniqueg
marked this pull request as ready for review
November 4, 2026 13:22
There was a problem hiding this comment.
Hey - I've found 5 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/development.md" line_range="77-78" />
<code_context>
+Compose (`tests/integration/`): it creates, tracks and cancels tasks on Funnel
+and on TESP-API with Pulsar, in pinned versions (see [Notes on TES
+implementations](configuration.md#notes-on-tes-implementations)). Their
+containers run through the Docker socket of the host, and the images come from
+third parties' registries, so the gate doesn't need this job until it has
+proven reliable. To run it locally (with curl and jq), follow the steps of the
+job in `.github/workflows/ci.yml`, including the pin of TESP-API's stage image:
</code_context>
<issue_to_address>
**Integration images can control host**
When a developer runs the documented integration stack on a host with valuable data and one of its pinned third-party images is malicious or compromised, funnel and Pulsar receive the host Docker socket, so a malicious or compromised integration image can use the Docker API to gain control of the developer’s host while the documented stack is running.
Warn developers that Docker-socket access is effectively host control, and recommend running the integration stack only in an isolated disposable VM or equivalent environment.
</issue_to_address>
### Comment 2
<location path="docs/configuration.md" line_range="240-241" />
<code_context>
+[TESK](https://github.com/elixir-cloud-aai/TESK): not tested against a real
+instance yet.
+
+In general, a refusal by a TES instance reaches clients as a generic
+`503 Service Unavailable`.
+
### Discovery in a service registry
</code_context>
<issue_to_address>
**Refusals return the wrong status**
When a TES backend refuses a task or refuses to cancel an unfinished task, `BackendRefused` is mapped to HTTP 502 in `exceptions.py`; task refusals and `_cancel_at_backend` therefore return 502 instead of the documented generic 503.
Map `BackendRefused` to HTTP 503.
</issue_to_address>
### Comment 3
<location path="docs/configuration.md" line_range="226-227" />
<code_context>
+ front of it rewrites the path (see [API paths](#api-paths)).
+- It reports TES 1.0.0, so don't set the label `tes.version` to `"1.1"`. A task
+ with fields of TES 1.1 only gets `400 Bad Request` if TESP-API is the only
+ allowed TES instance.
+- With Pulsar 0.15 or later, it was seen returning empty stdout and stderr;
+ Pulsar 0.14.16 works.
+- It reports a task as `CANCELED` while its container kept running for minutes;
</code_context>
<issue_to_address>
**Other backends also return 400**
When other allowed backends exist but none can run the task unchanged, when the task has TES 1.1-only fields and every allowed backend is a confirmed TES 1.0 instance, `eligible_backends` excludes them and `_run_pipeline` raises `NoEligibleBackend`, even if TESP-API is not the only allowed backend; the documentation gives callers the wrong condition for this error.
Describe the condition as having no eligible TES 1.1 backend, and present TESP-API being the only allowed instance as an example.
</issue_to_address>
### Comment 4
<location path="docs/configuration.md" line_range="240-241" />
<code_context>
+[TESK](https://github.com/elixir-cloud-aai/TESK): not tested against a real
+instance yet.
+
+In general, a refusal by a TES instance reaches clients as a generic
+`503 Service Unavailable`.
+
### Discovery in a service registry
</code_context>
<issue_to_address>
**Backend refusals described too broadly**
When a TES backend rejects a task but a later configured backend accepts it, `TaskRuns._forward` treats a backend rejection as a failed attempt and continues to later backends, so the request can succeed instead of reaching the client as `503 Service Unavailable`.
Clarify that a generic 503 is returned when no selected TES instance accepts the task.
</issue_to_address>
### Comment 5
<location path="docs/configuration.md" line_range="197-198" />
<code_context>
-**Set the label for Funnel:** Funnel implements TES 1.1, but reports its own
-version as `type.version`:
+**Set the label for Funnel:** Funnel implements TES 1.1, but reports an empty
+`type.version` (`""`), so it would count as TES 1.0:
```yaml
</code_context>
<issue_to_address>
**Funnel version guidance conflicts**
When an operator uses Funnel 0.12.0 or a maintainer reads the integration backend configuration, `docs/configuration.md` says Funnel returns an empty `type.version`, while the 0.12.0 test case and `tests/integration/config.yaml` say it reports its own version, leaving operators with inaccurate service-info guidance and maintainers with contradictory explanations.
Update the configuration guidance to say Funnel reports its own version as `type.version`.
</issue_to_address>Linked issues
#427 docs: notes on TES implementations · 4 of 4 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Correct the note that Funnel reports its own version; say it reports an empty type.version and that tes.version: "1.1" is still needed. | ✅ Met | The Funnel section says type.version is empty and shows tes.version: "1.1" in the backend configuration. |
| 2 | Describe the tests/integration/ suite and the CI Integration job. | ✅ Met | The development guide describes the real backends and task operations tested by the suite, and gives local run steps. |
| 3 | Explain that the Integration job is not needed by the gate yet. | ✅ Met | The guide says the gate does not need the job until it has proven reliable. |
| 4 | Add notes on tested TES implementation versions and observed behavior, including that TESK has not been tested against a real instance. | ✅ Met | The configuration guide lists TESP-API 0.2.0 and Funnel 0.11.14 with observed behavior, and says TESK has not been tested against a real instance. |
Sourcery assessment
Approval pending. 4 findings to address first.
Blocking findings: docs/development.md:78, docs/configuration.md:241, docs/configuration.md:227, docs/configuration.md:241
Name the conditions of the 400 and 503 responses exactly, scope the Funnel statement to the version tested, and warn about the Docker socket of the integration stack. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/configuration.md: Funnel reportstype.version: "", not its own version; the labeltes.version: "1.1"stays needed.docs/development.md: describe thetests/integration/suite and theIntegrationjob, not in the gate yet.docs/configuration.md: add "Notes on TES implementations" (Funnel 0.11.14, TESP-API 0.2.0; TESK not tested yet).Closes #427
Light lane: this PR changes docs only, so it skips the reviewer subagents.
Verification
uv run --locked --extra docs mkdocs build --strict: passes.CI passedand all other checks pass;Integrationpassed on the push run (it skips on PR edits).Declined review findings
BackendRefusedto 503: code change, out of scope; 502 is documented behaviour. The note is reworded instead.🤖 Generated with Claude Code