Skip to content

docs: point the TES tutorial to tesk.rahtiapp.fi - #187

Merged
uniqueg merged 3 commits into
mainfrom
docs/fi-tesk-auth
Nov 21, 2026
Merged

uniqueg merged 3 commits into
mainfrom
docs/fi-tesk-auth

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

The TESK for tests at CSC (ELIXIR-FI) requires LS Login tokens since 21 November 2026, at its new address https://tesk.rahtiapp.fi (elixir-cloud-aai/generic-issues#35). This updates the pages and scripts that still describe it as a TESK without tokens:

  • TES tutorial: TES_URL defaults to https://tesk.rahtiapp.fi in tes-service.sh, omop-tesk-fi.sh and on the commands page; the tutorial says the default needs TES_TOKEN, and a note about the move (old address, old tasks no longer readable) replaces "The default address will change", with one-time steps for readers whose scripts still hold IDs of tasks at the old address.
  • proTES page and researchers' overview: proTES still calls the old address with auth: none and gets 401, so tasks sent to it fail until Connect proTES to the FI TESK with its service token generic-issues#111 is done; the entry then changes to the new address with client_credentials.
  • service-check.toml: the new URL replaces the old one in unregistered (the FI TESK isn't in the registry).

Closes #186

How it was verified

  • python scripts/check_names.py: passes.
  • mkdocs build --strict: passes.
  • pytest: 356 passed, coverage 100%.
  • python scripts/check_services.py docs: https://tesk.rahtiapp.fi/ga4gh/tes/v1 passes (answers service-info, listed as unregistered); the old URL is no longer collected. The two other findings (proTES and TRS-Filer are registered now, so their unregistered entries can go) exist on main too and are not part of this issue.
  • grep -rn csc-tesk-noauth: only the move note of the tutorial and the proTES page name the old address, as the old address (not as a service URL).
  • CI: all checks passed on 6c76869 (CI passed, Docs, Test, PR title, CodeQL, Sourcery review, Read the Docs preview).
  • Sourcery's thread (saved task IDs of the old host keep up waiting): fixed in 6c76869 with one-time recovery steps in the tutorial's move note; the scripts stay unchanged (reasons in the thread).

Light lane: docs and a default URL in tutorial scripts only, no logic; I reviewed the diff myself instead of running the reviewer subagents.

Open questions

None.

🤖 Generated with Claude Code

uniqueg and others added 2 commits November 21, 2026 17:24
The TESK of ELIXIR-FI requires LS Login tokens since 21 November 2026,
at its new address https://tesk.rahtiapp.fi; the old address
csc-tesk-noauth.rahtiapp.fi requires them too and will be removed.

- tes-service.sh, omop-tesk-fi.sh and the commands page default to the
  new address.
- The tutorial says that the default needs TES_TOKEN, and replaces the
  "default address will change" note with one about the move.
- service-check.toml lists the new URL as unregistered instead of the
  old one, which no page names as a service URL any more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
proTES' only backend is the FI TESK at its old address with auth: none,
which answers 401 since the TESK requires tokens (21 November 2026).
The proTES page and the researchers' overview say so, and that the
entry changes to the new address with client_credentials once
generic-issues#111 is done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uniqueg uniqueg self-assigned this Nov 21, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Uses of the API

Switch the interactive TES scripts and command examples to the new token-protected TESK endpoint so their defaults match the service move.

  • docs/tutorials/tes-services/interactive_services_tes_commands.md L102, L217, L233-234
  • docs/tutorials/tes-services/omop-tesk/omop-tesk-fi.sh L47-48
  • docs/tutorials/tes-services/tes-hub/tes-service.sh L46-47

Configuration

Replace the retired no-auth TESK URL with the new endpoint in the unregistered-service check.

  • service-check.toml L21

Documentation

Explain that proTES still targets the old unauthenticated TESK and tasks fail until authenticated backend support is implemented.

  • docs/operators/services/protes.md L42, L69, L83-88
  • docs/researchers/index.md L68-69

Update the tutorial prerequisites, TES_URL and TES_TOKEN guidance, and move note, including recovery steps for saved task IDs that are no longer accessible.

  • docs/tutorials/tes-services/interactive_services_tes.md L93-124, L354-355

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 21, 2026 •

Copy link
Copy Markdown

@uniqueg
uniqueg marked this pull request as ready for review November 21, 2026 17:34
@sourcery-ai

sourcery-ai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit 6c76869

#186 docs: point the TES tutorial to the FI TESK with tokens · 5 of 5 met

# Requirement Status Notes
1 Default the tutorial scripts and commands page to the new TESK address, and explain that it needs TES_TOKEN and has moved. ✅ Met Both scripts and the commands page use tesk.rahtiapp.fi; the tutorial describes the token requirement and the old address.
2 Explain that proTES cannot reach the TESK until generic-issues#111 is done, and that its configuration will then use the new address with client_credentials. ✅ Met The proTES page describes the current 401 failure and the planned address and authentication change; the researchers' overview warns that tasks sent to proTES currently fail.
3 List the new TESK URL as unregistered in service-check.toml. ✅ Met The unregistered entry uses https://tesk.rahtiapp.fi/ga4gh/tes/v1.
4 Do not describe the old URL as a current default or as a TESK without tokens. ✅ Met The old address is identified as historical and explicitly said to require tokens now.
5 Pass mkdocs build --strict. ✅ Met The pull request description reports that the strict build 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 1 issue

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

## Individual Comments

### Comment 1
<location path="docs/tutorials/tes-services/tes-hub/tes-service.sh" line_range="47" />
<code_context>
-# TESK @ ELIXIR-FI. To be updated: the address of the instance with token access.
-TES_URL="${TES_URL:-https://csc-tesk-noauth.rahtiapp.fi}"
+# TESK @ ELIXIR-FI, which requires an LS Login access token (TES_TOKEN).
+TES_URL="${TES_URL:-https://tesk.rahtiapp.fi}"
 TES_API="${TES_URL%/}/ga4gh/tes/v1"
 HUB="${HUB:-$HERE/../tes-hub/tes-hub.sh}"                           # shared tunnel hub
</code_context>
<issue_to_address>
**Services stay down after host change**

When an existing installation has saved task IDs from the old TESK host, `current_state` and `role_state` query those IDs at the new `TES_URL` and get `UNREACHABLE`; `is_done` and the launchers' keep-alive or OMOP watchers treat that state as active or unfinished, so `cmd_up` skips replacement submission and services remain unavailable. Swallowed cancel failures can also leave old tasks running.

Add a migration or recovery path that recognizes IDs from the old host, reconciles or discards them, and allows replacement submission instead of treating `UNREACHABLE` as active.

Also at `docs/tutorials/tes-services/omop-tesk/omop-tesk-fi.sh:48`.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: docs/tutorials/tes-services/tes-hub/tes-service.sh:47


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

Readers who ran the scripts against the old address still hold the IDs
of tasks that now belong to nobody: with a token, the TESK refuses them,
the scripts report UNREACHABLE and `up` waits instead of starting new
tasks. The move note now gives the one-time steps: `down`, print and
remove the saved IDs, `up` with TES_TOKEN; and whom to ask to delete
the old tasks. Found by Sourcery on #187.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uniqueg
uniqueg merged commit d0d420c into main Nov 21, 2026
17 checks passed
@uniqueg
uniqueg deleted the docs/fi-tesk-auth branch November 21, 2026 18:07
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: point the TES tutorial to the FI TESK with tokens

1 participant