Repository navigation
docs: rewrite the deployment and config docs - #237
Conversation
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]>
Reviewer's GuideThis 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 lifecyclesequenceDiagram
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
Flow diagram for TESK chart installation and exposureflowchart 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]
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 #237 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 199 199
=========================================
Hits 199 199 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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
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]>
Summary
Revises the documentation content after the move to MkDocs (#224), in the style of the foca and cloud-registry docs:
index.md): what TESK is, its three repositories, and a guide to the pages.tesintro.md): GA4GH and its APIs, a minimal task, and what inputs, outputs, executors and resources mean.architecture.md):deployment.md):configuration.md): a reference of every chart value, plus the service info and the files and secrets the chart reads.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 undertesk-api/.upgrading.md), changes that affect existing deployments:gh-pagesHelm repository.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.charts/tesk/values.yamlappears in the configuration reference. I checked this with a script over all keys of the old values table and ofvalues.yaml.dev: taskmaster and filer v0.10.6, tesk-api 1.1.0,auth.service_info_public.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:
Enhancements:
Documentation: