Skip to content

docs: add notes on TES implementations - #428

Merged
uniqueg merged 2 commits into
devfrom
docs/backend-notes
Nov 4, 2026
Merged

uniqueg merged 2 commits into
devfrom
docs/backend-notes

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Summary

  • docs/configuration.md: Funnel reports type.version: "", not its own version; the label tes.version: "1.1" stays needed.
  • docs/development.md: describe the tests/integration/ suite and the Integration job, 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: CI passed and all other checks pass; Integration passed on the push run (it skips on PR edits).

Declined review findings

  • Map BackendRefused to 503: code change, out of scope; 502 is documented behaviour. The note is reworded instead.
  • Say Funnel reports its own version: 0.11.14 was observed reporting an empty version; the note is scoped to that version.

🤖 Generated with Claude Code

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]>
@sourcery-ai

sourcery-ai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Adds 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

Change Details Files
Document observed TES implementation-specific behavior and configuration requirements.
  • Clarify that Funnel reports an empty version and still requires the TES 1.1 label.
  • Add tested-version notes for TESP-API, Funnel, and TESK, including API paths, Pulsar compatibility, task cancellation, logs, and generic refusal responses.
docs/configuration.md
Document the integration test suite and how to run it locally.
  • Describe the CI Integration job's Docker Compose coverage of Funnel and TESP-API task operations.
  • Explain why the job is not currently a required gate and provide local setup and execution commands.
docs/development.md

Possibly linked issues


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

@read-the-docs-community

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

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35642979 | 📁 Comparing ca677df against latest (1e8967e)

  🔍 Preview build  

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

@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

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

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.
📢 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 4, 2026 13:22

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


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

Comment thread docs/development.md Resolved
Comment thread docs/configuration.md Resolved
Comment thread docs/configuration.md Resolved
Comment thread docs/configuration.md Resolved
Comment thread docs/configuration.md Resolved
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]>
@uniqueg
uniqueg merged commit ce5904f into dev Nov 4, 2026
36 of 47 checks passed
@uniqueg
uniqueg deleted the docs/backend-notes branch November 4, 2026 13:42
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.

docs: notes on TES implementations

1 participant