Skip to content

docs: rewrite the deployment and config docs - #237

Merged
uniqueg merged 4 commits into
devfrom
docs/content
Nov 6, 2026
Merged

uniqueg merged 4 commits into
devfrom
docs/content

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Revises the documentation content after the move to MkDocs (#224), in the style of the foca and cloud-registry docs:

  • Home (index.md): what TESK is, its three repositories, and a guide to the pages.
  • Introduction to TES (tesintro.md): GA4GH and its APIs, a minimal task, and what inputs, outputs, executors and resources mean.
  • Architecture (new, architecture.md):
    • The components: tesk-api, the taskmaster and the filer from tesk-core, and the executors.
    • The life of a task, and the Kubernetes objects and permissions involved.
  • Deployment (rewritten, deployment.md):
    • Requirements, including the Kubernetes versions tested with taskmaster v0.10.6.
    • Installation from a checkout or from a release, with checks of the attestation and signature.
    • Exposing the API: Ingress, OpenShift route, NodePort.
    • Storage backends: FTP, shared file system, S3. The OpenStack storage class option is in the configuration reference.
    • Authentication and resources.
  • Configuration (new, configuration.md): a reference of every chart value, plus the service info and the files and secrets the chart reads.
  • API (new, api.md): the endpoints, sending and following tasks, and authentication. This is the "API" section the issue leaves room for; tesk-api's own docs are pulled in under tesk-api/.
  • Upgrading (new, upgrading.md), changes that affect existing deployments:
  • Guides: the WES integration and local FTP pages, kept with new headings. The WES page is marked as a proof of concept.
  • Development: the install, verify and install commands for released charts move to the deployment guide; the release section links there.
  • Chart README (charts/tesk/README.md): now a short pointer to the docs. Its values table is replaced by the configuration reference.

Closes #225

Verification

  • mkdocs build --strict: passes.
  • Every key in charts/tesk/values.yaml appears in the configuration reference. I checked this with a script over all keys of the old values table and of values.yaml.
  • The deployment and upgrade guides were checked against the chart templates, the CI and release workflows, and the defaults on dev: taskmaster and filer v0.10.6, tesk-api 1.1.0, auth.service_info_public.
  • CI: all jobs pass; the Read the Docs preview builds (https://tesk--237.org.readthedocs.build/en/237/).

Lane

Light lane: docs only. I reviewed the diff myself.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Rewrite the deployment and configuration documentation to reflect the current TESK architecture, Helm chart, API, storage options, and upgrade path.

New Features:

  • Add dedicated architecture, configuration, API, and upgrading guides to the MkDocs documentation.
  • Document TES task concepts, lifecycle, deployment options, storage backends, authentication, API usage, and upgrade considerations.

Enhancements:

  • Rewrite the deployment documentation with current installation, exposure, storage, resource, and authentication guidance.
  • Replace the Helm chart README's detailed deployment and values documentation with links to the maintained documentation.
  • Reorganize the documentation navigation and clarify the WES integration and local FTP guides.

Documentation:

  • Update the documentation home and introduction to describe TESK, its repositories, GA4GH TES, and the documentation structure.
  • Move released-chart installation guidance from development documentation into the deployment guide.

uniqueg and others added 2 commits November 6, 2026 07:01
Rewrite the deployment guide and the introduction to TES; add pages on
the architecture (tesk-api, tesk-core, life of a task), a reference of
all chart values, service info and secrets, the API, and upgrade notes
(release scheme, memory limits since taskmaster v0.10.6). Move the WES
and FTP pages under Guides and point the chart README to the docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Move the download, verification and install of a released chart from
the development guide to the deployment guide, where operators look.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

This documentation-only PR restructures the MkDocs site into task-oriented introduction, architecture, deployment, configuration, API, upgrading, and guide sections, while centralizing chart installation and value references and updating examples to match the current chart and component versions.

Sequence diagram for the TESK task lifecycle

sequenceDiagram
    actor Client
    participant API as tesk-api
    participant TM as Taskmaster
    participant Filer
    participant Executor
    participant PVC as Task PVC

    Client->>API: POST /tasks
    API->>TM: Create taskmaster job
    TM->>PVC: Create scratch PVC
    TM->>Filer: Stage task inputs
    Filer->>PVC: Download inputs
    TM->>Executor: Run executor job
    Executor->>PVC: Read inputs and write outputs
    TM->>Filer: Stage task outputs
    Filer->>PVC: Upload outputs
    TM->>PVC: Delete scratch PVC
    Client->>API: GET /tasks/{id}
    API-->>Client: Task state
Loading

Flow diagram for TESK chart installation and exposure

flowchart TD
    Checkout[Checkout or signed release chart] --> Values[Set values and secrets]
    Values --> Helm[helm upgrade --install]
    Helm --> API[tesk-api Deployment and Service]
    Helm --> Access{Expose API}
    Access --> Ingress[Ingress]
    Access --> Route[OpenShift Route]
    Access --> NodePort[NodePort or LoadBalancer]
    API --> Verify[GET /service-info]
Loading

File-Level Changes

Change Details Files
Reorganized the documentation around a complete deployment and configuration workflow.
  • Added architecture, API, configuration, and upgrading guides.
  • Rewrote deployment guidance for installation, release verification, exposure, storage, authentication, and resources.
  • Updated the home page and navigation to describe the documentation structure.
  • Moved released-chart installation guidance from development documentation into deployment.
docs/index.md
docs/architecture.md
docs/api.md
docs/configuration.md
docs/deployment.md
docs/upgrading.md
docs/development.md
mkdocs.yml
Replaced the chart README's detailed deployment and values documentation with a concise documentation entry point.
  • Added links to the primary deployment, configuration, and upgrade guides.
  • Retained a short checkout-based installation example.
  • Removed the duplicated values table and legacy deployment instructions.
charts/tesk/README.md
Expanded introductory and scenario documentation to explain TES concepts and supported integrations.
  • Reworked the TES introduction with GA4GH context, a minimal task, and explanations of inputs, outputs, executors, and resources.
  • Retitled and refreshed the WES and local FTP guides, marking the WES integration as a proof of concept.
  • Linked storage and configuration guidance from the scenario pages.
docs/tesintro.md
docs/integrated_wes_tes.md
docs/local_ftp.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

@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #237   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          199       199           
=========================================
  Hits           199       199           

☔ 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 6, 2026 06:05

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

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

## Individual Comments

### Comment 1
<location path="docs/deployment.md" line_range="76-82" />
<code_context>
+
+```bash
+gh release download vX.Y.Z --repo elixir-cloud-aai/TESK --pattern 'tesk-*'
+gh attestation verify tesk-X.Y.Z.tgz --repo elixir-cloud-aai/TESK \
+    --signer-workflow elixir-cloud-aai/TESK/.github/workflows/release.yml \
+    --source-ref refs/tags/vX.Y.Z
+cosign verify-blob tesk-X.Y.Z.tgz --bundle tesk-X.Y.Z.tgz.sigstore.json \
+    --certificate-identity https://github.com/elixir-cloud-aai/TESK/.github/workflows/release.yml@refs/tags/vX.Y.Z \
+    --certificate-oidc-issuer https://token.actions.githubusercontent.com
+helm upgrade --install tesk tesk-X.Y.Z.tgz \
+    --namespace tesk --create-namespace \
+    -f my-values.yaml -f secrets.yaml
</code_context>
<issue_to_address>
**Unverified chart still installs**

When an operator executes the release command block and either verification command fails, the shell continues after either verification command exits nonzero, so `helm upgrade --install` still deploys the chart whose attestation or signature check failed.

Make installation conditional on both checks succeeding, for example by enabling `set -e` at the start of the block or chaining the commands with `&&`.
</issue_to_address>

### Comment 2
<location path="docs/deployment.md" line_range="23" />
<code_context>
+  1.31 or later, the taskmaster must be v0.10.6 or later (see
+  [Upgrading](upgrading.md#taskmaster-and-filer-v0106)).
+- **[Helm](https://helm.sh/) 3.**
+- **A default storage class.** TESK creates a temporary PVC for each task
+  with I/O, with the cluster's default storage class (or the one in
+  `storageClass`). ReadWriteOnce is enough. The chart doesn't install a
</code_context>
<issue_to_address>
**Tasks hang without storage class**

When a deployment runs tasks without input/output and has neither a configured `storageClass` nor a cluster default storage class, the taskmaster still creates a PVC for each task, including tasks without I/O, so the claim that a storage class is needed only for tasks with I/O leads operators to omit one and those tasks remain pending. The task never runs.

State that a storage class is required for every task if the taskmaster creates a PVC for every task, or qualify the requirement only if taskmasters skip PVC creation for tasks without I/O.
</issue_to_address>

### Comment 3
<location path="docs/deployment.md" line_range="43" />
<code_context>
+cd TESK
+helm upgrade --install tesk charts/tesk \
+    --namespace tesk --create-namespace \
+    -f my-values.yaml -f secrets.yaml
 ```
-If your cluster is provided by a Cloud Provider, you may be able to use a LoadBalancer type of service. In the chart set the value:
</code_context>
<issue_to_address>
**Install fails without secrets file**

When the operator has no FTP or Swagger UI OIDC credentials and has not created `secrets.yaml`, helm treats each `-f` path as required, so these commands fail when `secrets.yaml` has not been created, even for deployments that use the default `auth.mode: noauth` and do not need FTP credentials. The operator cannot install by following the commands as written.

Mark `secrets.yaml` as optional and show the install command without that `-f` flag for deployments that do not need it.

Also at `docs/deployment.md:84`.
</issue_to_address>

### Comment 4
<location path="docs/api.md" line_range="27" />
<code_context>
+```bash
+TES=https://tes.example.org/ga4gh/tes/v1
+curl -X POST "${TES}/tasks" -H 'Content-Type: application/json' \
+    -d @examples/success/hello.json
+curl "${TES}/tasks/<id>?view=BASIC"
+```
</code_context>
<issue_to_address>
**Task example cannot read its body**

When a reader runs the documented command from a repository checkout, `examples/success/hello.json` does not exist, so `curl` cannot open the request body and does not submit a task.

Change the command to use an existing example file or provide the request body inline.

Also at `docs/api.md:28`.
</issue_to_address>

### Comment 5
<location path="docs/deployment.md" line_range="92" />
<code_context>
+```bash
+helm list -n tesk
+kubectl get all -n tesk
+kubectl port-forward -n tesk service/tesk-api 8080:8080
+curl http://localhost:8080/ga4gh/tes/v1/service-info
 ```
</code_context>
<issue_to_address>
**Installation check never reaches curl**

When the installation check block is run sequentially in one shell, `kubectl port-forward` stays in the foreground, so a user running this code block in one shell never reaches the following `curl` command. The documented installation check stalls before it verifies the API.

Run port-forward in the background or instruct users to run the curl command in a second terminal.
</issue_to_address>

### Comment 6
<location path="docs/architecture.md" line_range="41-43" />
<code_context>
+/tasks/{id}:cancel`) by marking its taskmaster, which stops and deletes the
+task's jobs.
+
+The taskmasters use the service account `taskmaster`, which may create,
+read and delete jobs, pods and PVCs in the namespace; the API uses the same
+account.
+
+## Storage
</code_context>
<issue_to_address>
**Pod permissions are overstated**

When an operator relies on this description to audit the chart or configure custom RBAC, the description says the API and taskmasters create, read and delete pods, but the `taskmaster` Role grants only list and patch on pods, plus access to pod logs and status; jobs create the pods. Operators are misled about the chart's permissions and access boundary.

Revise the description to match the Role's pod permissions and clarify that jobs create the pods.

Also at `docs/deployment.md:5-6`.
</issue_to_address>

### Comment 7
<location path="docs/api.md" line_range="19-20" />
<code_context>
+| Cancel a task | `POST /tasks/{id}:cancel` |
+
+The API also serves a Swagger UI, at the root path of the deployment. With
+`auth.mode: auth`, requests need an OIDC access token (see [Authentication
+and authorisation](deployment.md#authentication-and-authorisation)).
+
+For example, to create a task and get its state:
</code_context>
<issue_to_address>
**Public service info appears protected**

When an operator enables authentication and relies on this API page to determine whether service info is protected, with the default `auth.service_info_public: true`, `GET /service-info` remains accessible without a token even when `auth.mode: auth`; this page's blanket claim that requests need a token gives operators the wrong access-control expectation.

State the `GET /service-info` exception and link it to the `auth.service_info_public` setting.
</issue_to_address>

### Comment 8
<location path="docs/architecture.md" line_range="23-24" />
<code_context>
+
+1. A client sends a task to the API (`POST /tasks`). The API validates it,
+   and creates a **taskmaster** job for it, with the task (inputs, outputs,
+   volumes, executors) as the job's input.
+2. The taskmaster creates a persistent volume claim (**PVC**) as the task's
+   scratch space, of the task's disk size, with the default storage class
+   (or `storageClass`).
</code_context>
<issue_to_address>
**Compute-only tasks lack documented resources**

When a task has no volumes, inputs or outputs, `run_task` skips `init_pvc` and the filer jobs, so the lifecycle steps and resource summary say these tasks have a PVC and filers when they do not, leaving operators with the wrong Kubernetes resource model.

Clarify in the lifecycle steps and summary that PVC and filer resources are created only when a task has volumes, inputs or outputs.

Also at `docs/architecture.md:33-35`, `docs/architecture.md:47-48`.
</issue_to_address>

Linked issues

#225 docs: revise the documentation content · 9 of 9 met

# Requirement Status Notes
1 Provide an overview of TESK and its architecture, including tesk-api and tesk-core. ✅ Met Covered by docs/index.md and docs/architecture.md.
2 Explain TES and what a task's inputs, outputs, executors and resources mean. ✅ Met Covered by docs/tesintro.md.
3 Provide deployment guidance that matches the current chart, including requirements, installation, API exposure, storage backends, authentication and resources. ✅ Met docs/deployment.md covers these topics, including checkout and release installation.
4 Document every chart value. ✅ Met docs/configuration.md documents the keys in charts/tesk/values.yaml and the chart's additional credential values.
5 Document service info and the files and secrets the chart reads. ✅ Met Covered in the Files section of docs/configuration.md.
6 Cover storage backends and integration with WES. ✅ Met The deployment guide covers FTP, shared file systems and S3, and links to the WES integration guide.
7 Provide upgrade notes, including the release scheme and changes affecting existing deployments. ✅ Met docs/upgrading.md covers the release scheme, taskmaster v0.10.6 resource limits and the public service-info option.
8 Provide development guidance for checks, documentation and releases that matches the current workflows. ✅ Met docs/development.md describes the checks, documentation build and release workflow.
9 Leave room for an API section. ✅ Met The navigation includes an API section, with endpoints and usage documented in docs/api.md.

Sourcery assessment

Approval pending. 8 findings to address first.

Blocking findings: docs/deployment.md:82, docs/deployment.md:23, docs/deployment.md:43, docs/api.md:27, docs/deployment.md:92, and 3 more


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

Comment thread docs/deployment.md Resolved
Comment thread docs/deployment.md Resolved
Comment thread docs/deployment.md Resolved
Comment thread docs/api.md Resolved
Comment thread docs/deployment.md Resolved
Comment thread docs/architecture.md Resolved
Comment thread docs/api.md Resolved
Comment thread docs/architecture.md Resolved
uniqueg and others added 2 commits November 6, 2026 07:12
Describe the role's actual permissions and that tasks without I/O get
no PVC or filers, make secrets.yaml optional, stop the release install
when a check fails, background the port forward, and note the public
service info exception (Sourcery review).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg
uniqueg merged commit 73b9270 into dev Nov 6, 2026
21 checks passed
@uniqueg
uniqueg deleted the docs/content branch November 6, 2026 06:15
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: revise the documentation content

1 participant