Skip to content

docs: add an end-to-end tutorial across Nodes - #255

Merged
uniqueg merged 3 commits into
mainfrom
docs/end-to-end-tutorial
Dec 2, 2026
Merged

uniqueg merged 3 commits into
mainfrom
docs/end-to-end-tutorial

Conversation

@uniqueg

@uniqueg uniqueg commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds Tutorial: End to End Across Nodes (docs/researchers/tutorial-end-to-end.md), the D4.6 end-to-end tutorial of the M4.4 chain, for researchers, on the live services:

  • check proTES and Conquest without a token (service info, 401);
  • get an LS Login token from Krini (Copy access token), check 200/403;
  • part 1: one task pinned to each TES service that proTES lists (TESK and Poiesis at FI and CZ) with curl and gateway.backends, one unpinned task with ga4gh-cli, then where each ran (gateway.backend);
  • part 2: the Nextflow example with ga4gh-cli and the WDL example with curl on Conquest: states, logs and outputs;
  • part 3: the federated learning run from Krini (Use an example, Federated learning), linking to the FL tutorial instead of editing it (the FL example and tutorial are being changed in parallel; this page names no site count or job name).

Linked from the Researchers start page, the Demos start page (overview row and a paragraph) and the navigation. Prerequisite: EOC-Compute membership, linked to the existing application docs. No tokens, personal identifiers or internal hosts; all hosts are the public API roots that proTES' service info and the Cloud Registry already list.

Closes #208

How it was verified

  • python scripts/check_names.py: OK
  • mkdocs build --strict: OK
  • pytest: 356 passed, coverage 100%
  • Token-free steps run against the live services on 2 Dec 2026: proTES service info (0.8.0, four backends), Conquest service info (NFL, SMK, WDL), 401 from both without a token; the proTES docs anchor for pinning exists.
  • The loops of steps 5 and 7 run in Bash and Zsh with a stubbed curl (task JSON and tasks.tsv parsing).
  • The authenticated requests are those of the generic-issues#44 walk of 2 Dec 2026 (16/16 member checks, 7/7 non-member, 18/18 without token) and the Krini FL run of krini#133; the page's "How this tutorial was tested" says so, and that nobody but the author has run the page as written yet.

Review lane

Light lane: documentation only (one new page, links, nav), no code, CI, secrets or permissions.

Declined review findings

None.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Provide researchers with a guided view of the deployment’s live, cross-Node task, workflow, and federated-learning services.

New Features:

  • Add an end-to-end researcher tutorial covering authenticated task execution across FI and CZ TES services, workflows on Conquest, and federated learning from Krini.

Documentation:

  • Link the tutorial from the Researchers and Demos landing pages and add it to the site navigation, including its live-service and compute-access prerequisites.

Add "Tutorial: End to End Across Nodes" for researchers: tasks pinned to
the four TES services behind proTES at the FI and CZ Nodes and one
unpinned, a Nextflow run with ga4gh-cli and a WDL run with curl on
Conquest, and a federated learning run from Krini, with a token from
Krini. The requests follow the generic-issues#44 walk of 2 Dec 2026.

Link it from the Researchers and Demos start pages and the navigation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@read-the-docs-community

read-the-docs-community Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Configuration

Add the end-to-end tutorial to the site navigation.

  • mkdocs.yml L135

Documentation

Add the end-to-end live-services tutorial, covering authenticated tasks through proTES, workflows through Conquest, federated learning from Krini, and the tested limits and prerequisites.

  • docs/researchers/tutorial-end-to-end.md L1-440

Link the tutorial from the Demos overview and explain that it uses live services and requires compute access.

  • docs/demos/index.md L27, L46-50, L108

List the end-to-end tutorial among researcher tutorials with its scope and prerequisites.

  • docs/researchers/index.md L22

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uniqueg
uniqueg marked this pull request as ready for review December 2, 2026 19:33
@uniqueg
uniqueg merged commit 06daabb into main Dec 2, 2026
8 checks passed
@uniqueg
uniqueg deleted the docs/end-to-end-tutorial branch December 2, 2026 20:11
@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit af19eae

#208 docs: add an end-to-end tutorial for the M4.4 chain · 6 of 7 met · 1 to check by hand

# Requirement Status Notes
1 Provide a step-by-step tutorial for researchers to demo the M4.4 chain on live services, using concrete fake data and real addresses. ✅ Met The new tutorial gives command-by-command steps and public service addresses, using hello-world jobs and public workflow examples.
2 Log in with LS Login, run tasks through the TES gateway on two Nodes, run workflows in different languages, and check results. ✅ Met It covers LS Login, pinned tasks at the FI and CZ TES services, Nextflow and WDL runs, and checking task and workflow results.
3 Write the tutorial after the M4.4 chain passes its end-to-end test, from what actually ran. ✅ Met The tutorial describes the test requests and links to generic-issues#44.
4 If federated learning is integrated in the stack, add it to this tutorial or a sibling tutorial. ✅ Met Part 3 covers a federated learning run from Krini and links to the in-depth tutorial.
5 The tutorial runs as written against the live services. 👀 Check by hand (runtime) A person should follow the tutorial as written against the live services; the page says its commands have not yet been run by someone who did not write them.
6 Link the tutorial from the Demos and Researchers sections. ✅ Met The tutorial is linked from both landing pages.
7 Pass the strict build. ✅ Met The PR description reports mkdocs build --strict passed.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 4 issues

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

## Individual Comments

### Comment 1
<location path="docs/researchers/tutorial-end-to-end.md" line_range="201" />
<code_context>
+The loop writes the pin and the ID of each task into `tasks.tsv`:
+
+```bash
+: > tasks.tsv
+for tes in $(jq -r '.backends[].url' protes-service-info.json); do
+  jq -n --arg tes "$tes" '{
</code_context>
<issue_to_address>
**Duplicate jobs lose tracking IDs**

When a create request succeeds but its response is lost or unusable, or the task-submission block is rerun after partial completion, the recovery directions resubmit non-idempotent TES and WES create requests, and rerunning the task loop truncates `tasks.tsv` before resubmitting. Accepted jobs run twice, and IDs for earlier jobs disappear, so users pay for duplicate compute and cannot track those earlier tasks in the tutorial.

Change the recovery directions to inspect the original request before resubmitting, and make reruns preserve existing IDs and avoid resubmitting completed tasks.

Also at `docs/researchers/tutorial-end-to-end.md:220-221`, `docs/researchers/tutorial-end-to-end.md:328`.
</issue_to_address>

### Comment 2
<location path="docs/researchers/tutorial-end-to-end.md" line_range="157" />
<code_context>
+with proTES as the TES service and Conquest as the WES service. The command
+doesn't change a file that already exists; in that case, set the `TES` and
+`WES` sections in a text editor instead, or add them as a profile of their
+own (see [Use several deployments with
+profiles](cli.md#use-several-deployments-with-profiles)).
+
</code_context>
<issue_to_address>
**Commands target the wrong deployment**

When the config uses named profiles and the user adds this deployment as a separate profile without making it the default, the subsequent bare `ga4gh-cli` commands select no profile, so they use the configured default or fail if none exists; checks and jobs therefore target a different deployment than the tutorial intends.

Show how to select the new profile in the subsequent commands, or make it the default before running them.

Also at `docs/researchers/tutorial-end-to-end.md:181-182`.
</issue_to_address>

### Comment 3
<location path="docs/researchers/tutorial-end-to-end.md" line_range="215" />
<code_context>
+  id=$(curl -sS -H @<(auth) -H 'Content-Type: application/json' \
+    --data-binary @task.json "$TES/tasks" | jq -r '.id // empty')
+  echo "$tes ${id:-no task ID}"
+  printf '%s\t%s\n' "$tes" "$id" >> tasks.tsv
+done
+```
</code_context>
<issue_to_address>
**Failed tasks enter the tracking file**

When a submission fails or its response has no `.id`, the loop appends an empty ID to `tasks.tsv` even when a submission returns no task ID. Step 7 then queries `/tasks/` for that row and prints a misleading result instead of tracking a task.

Only append rows with a non-empty ID, and stop the loop so the failed submission is resolved before step 7.
</issue_to_address>

### Comment 4
<location path="docs/researchers/tutorial-end-to-end.md" line_range="273" />
<code_context>
+task](cli.md#get-a-task)), with the ID of one of your tasks in `ID`:
+
+```bash
+ga4gh-cli tes get "$ID" FULL | jq -r '.logs[-1].logs[0].stdout'
+```
+
</code_context>
<issue_to_address>
**Task log command uses unset ID**

When the reader runs the log command without manually defining `ID`, the loop stores each identifier in lowercase `id` and writes the IDs to `tasks.tsv`, but this command expands uppercase `ID`, which the tutorial never assigns. It therefore requests a task with an empty identifier instead of showing the selected task's logs.

Show how to assign `ID` from a selected row in `tasks.tsv` before running the command.
</issue_to_address>

Sourcery assessment

Approval pending. 4 findings to address first.

Blocking findings: docs/researchers/tutorial-end-to-end.md:201, docs/researchers/tutorial-end-to-end.md:157, docs/researchers/tutorial-end-to-end.md:215, docs/researchers/tutorial-end-to-end.md:273


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

The loop writes the pin and the ID of each task into `tasks.tsv`:

```bash
: > tasks.tsv

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Duplicate jobs lose tracking IDs

When a create request succeeds but its response is lost or unusable, or the task-submission block is rerun after partial completion, the recovery directions resubmit non-idempotent TES and WES create requests, and rerunning the task loop truncates tasks.tsv before resubmitting. Accepted jobs run twice, and IDs for earlier jobs disappear, so users pay for duplicate compute and cannot track those earlier tasks in the tutorial.

Change the recovery directions to inspect the original request before resubmitting, and make reruns preserve existing IDs and avoid resubmitting completed tasks.

Also at docs/researchers/tutorial-end-to-end.md:220-221, docs/researchers/tutorial-end-to-end.md:328.

Prompt for AI agents
In `docs/researchers/tutorial-end-to-end.md` at line 201:

**Duplicate jobs lose tracking IDs**

When a create request succeeds but its response is lost or unusable, or the task-submission block is rerun after partial completion, the recovery directions resubmit non-idempotent TES and WES create requests, and rerunning the task loop truncates `tasks.tsv` before resubmitting. Accepted jobs run twice, and IDs for earlier jobs disappear, so users pay for duplicate compute and cannot track those earlier tasks in the tutorial.

Change the recovery directions to inspect the original request before resubmitting, and make reruns preserve existing IDs and avoid resubmitting completed tasks.

Also at `docs/researchers/tutorial-end-to-end.md:220-221`, `docs/researchers/tutorial-end-to-end.md:328`.

with proTES as the TES service and Conquest as the WES service. The command
doesn't change a file that already exists; in that case, set the `TES` and
`WES` sections in a text editor instead, or add them as a profile of their
own (see [Use several deployments with

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Commands target the wrong deployment

When the config uses named profiles and the user adds this deployment as a separate profile without making it the default, the subsequent bare ga4gh-cli commands select no profile, so they use the configured default or fail if none exists; checks and jobs therefore target a different deployment than the tutorial intends.

Show how to select the new profile in the subsequent commands, or make it the default before running them.

Also at docs/researchers/tutorial-end-to-end.md:181-182.

Prompt for AI agents
In `docs/researchers/tutorial-end-to-end.md` at line 157:

**Commands target the wrong deployment**

When the config uses named profiles and the user adds this deployment as a separate profile without making it the default, the subsequent bare `ga4gh-cli` commands select no profile, so they use the configured default or fail if none exists; checks and jobs therefore target a different deployment than the tutorial intends.

Show how to select the new profile in the subsequent commands, or make it the default before running them.

Also at `docs/researchers/tutorial-end-to-end.md:181-182`.

id=$(curl -sS -H @<(auth) -H 'Content-Type: application/json' \
--data-binary @task.json "$TES/tasks" | jq -r '.id // empty')
echo "$tes ${id:-no task ID}"
printf '%s\t%s\n' "$tes" "$id" >> tasks.tsv

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Failed tasks enter the tracking file

When a submission fails or its response has no .id, the loop appends an empty ID to tasks.tsv even when a submission returns no task ID. Step 7 then queries /tasks/ for that row and prints a misleading result instead of tracking a task.

Only append rows with a non-empty ID, and stop the loop so the failed submission is resolved before step 7.

Prompt for AI agents
In `docs/researchers/tutorial-end-to-end.md` at line 215:

**Failed tasks enter the tracking file**

When a submission fails or its response has no `.id`, the loop appends an empty ID to `tasks.tsv` even when a submission returns no task ID. Step 7 then queries `/tasks/` for that row and prints a misleading result instead of tracking a task.

Only append rows with a non-empty ID, and stop the loop so the failed submission is resolved before step 7.

task](cli.md#get-a-task)), with the ID of one of your tasks in `ID`:

```bash
ga4gh-cli tes get "$ID" FULL | jq -r '.logs[-1].logs[0].stdout'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Task log command uses unset ID

When the reader runs the log command without manually defining ID, the loop stores each identifier in lowercase id and writes the IDs to tasks.tsv, but this command expands uppercase ID, which the tutorial never assigns. It therefore requests a task with an empty identifier instead of showing the selected task's logs.

Show how to assign ID from a selected row in tasks.tsv before running the command.

Prompt for AI agents
In `docs/researchers/tutorial-end-to-end.md` at line 273:

**Task log command uses unset ID**

When the reader runs the log command without manually defining `ID`, the loop stores each identifier in lowercase `id` and writes the IDs to `tasks.tsv`, but this command expands uppercase `ID`, which the tutorial never assigns. It therefore requests a task with an empty identifier instead of showing the selected task's logs.

Show how to assign `ID` from a selected row in `tasks.tsv` before running the command.

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: add an end-to-end tutorial for the M4.4 chain

1 participant