Skip to content

fix: default to taskmaster and filer v0.10.6 - #220

Merged
uniqueg merged 4 commits into
devfrom
fix/taskmaster-default
Nov 6, 2026
Merged

uniqueg merged 4 commits into
devfrom
fix/taskmaster-default

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Closes #218

Summary

The chart's default taskmaster and filer move from v0.10.2 to v0.10.6, and the chart's README and the deployment guide say which Kubernetes versions were tested. With v0.10.2, tasks end in SYSTEM_ERROR on Kubernetes 1.31 or later, as its taskmaster reads only the first condition of a job, which is SuccessCriteriaMet there.

Behaviour change: memory limits

v0.10.6 sets the resources that a task requests (cpu_cores, ram_gb) as the limits of its executors too: a task that uses more memory than it requested is killed (OOM), and its CPU is throttled. The chart's README says so; the upgrade notes of the docs will too (#225).

The chart version stays on purpose

Chart.yaml stays at 0.1.1. Since #230, no workflow publishes charts from pull requests; charts are released from v* tags by the release workflow (#222), with the chart version set in a release-prep PR. Tags up to v0.2 exist, so the next chart version must be above 0.2.

Update 2026-11-06: merged dev (with the new CI) into this branch; CI is green.

How it was verified

The script check-chart-default.sh runs one task with an input on TESK from the chart's defaults, in a throwaway k3s cluster, with tesk-api 1.1.0. It is kept outside this repo, which has no fitting test suite for charts.

k3s v1.36.6, v0.10.6 (new default)   COMPLETE
k3s v1.30.14, v0.10.6 (new default)  COMPLETE
k3s v1.36.6, v0.10.2 (old default)   SYSTEM_ERROR

proTES's job Integration (TESK) runs v0.10.6 on k3s 1.36.6 with tasks that finish, fail and are canceled: elixir-cloud-aai/protes#432.

CI: see the checks of this PR. Only the job that installs the chart applies.

Known limits of v0.10.6, not changed here

  • From reading the code, not reproduced: on Kubernetes 1.31 or later, a poll that lands between a failing job's conditions FailureTarget and Failed makes the taskmaster treat it as an error, which could give SYSTEM_ERROR instead of EXECUTOR_ERROR. Failing tasks did end in EXECUTOR_ERROR in all runs of proTES's job. A fix would belong in tesk-core.
  • It sets an executor's requests as its limits, too. The README says so.

Declined review findings

  • appVersion: dev in Chart.yaml: it was already unrelated to these images.
  • A changelog: the repo has none, so the note is in the chart's README.

Open questions

For the maintainer, not blocking this PR: when to publish a chart with this fix (0.1.3 or above), and whether chart-releaser should run on pushes to master instead of on pull requests.

🤖 Generated with Claude Code

Summary by Sourcery

Update TESK’s default taskmaster and filer versions and document their Kubernetes compatibility and resource-limit behavior.

Bug Fixes:

  • Update the default taskmaster and filer images to v0.10.6 to avoid task failures on Kubernetes 1.31 and later.

Enhancements:

  • Document supported Kubernetes versions and the executor memory and CPU limit behavior introduced by taskmaster v0.10.6.

Documentation:

  • Clarify Kubernetes compatibility and version requirements in the project, chart, and deployment documentation.

Taskmaster v0.10.2 reads only the first condition of a job, which is
SuccessCriteriaMet on Kubernetes 1.31 or later, so tasks end in
SYSTEM_ERROR there. Say which Kubernetes versions were tested, and what
changes for executors' resources.

Closes #218

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

sourcery-ai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The PR updates the Helm chart defaults for taskmaster and filer from v0.10.2 to v0.10.6, addressing task failures on Kubernetes 1.31+, while retaining chart version 0.1.1. It also adds deployment guidance covering tested Kubernetes versions, the minimum taskmaster version for newer clusters, and the newer executor resource-limit behavior.

File-Level Changes

Change Details Files
Update the chart’s default TESK taskmaster and filer images to v0.10.6 for Kubernetes compatibility.
  • Change both default image versions from v0.10.2 to v0.10.6.
  • Preserve the chart version at 0.1.1 to avoid publishing an unreleased chart during pull-request CI.
charts/tesk/values.yaml
charts/tesk/Chart.yaml
Document supported Kubernetes versions, taskmaster compatibility requirements, and resource behavior.
  • Record validation of the v0.10.6 defaults on Kubernetes 1.30 and 1.36.
  • Explain that taskmaster v0.10.2 can produce SYSTEM_ERROR on Kubernetes 1.31 or later and recommend v0.10.6+.
  • Document that executor requests are also applied as limits with v0.10.6.
charts/tesk/README.md
documentation/deployment.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

@uniqueg
uniqueg marked this pull request as ready for review November 5, 2026 09:18

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

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

## Individual Comments

### Comment 1
<location path="charts/tesk/values.yaml" line_range="25" />
<code_context>
     port: 8080
     taskmaster_image_name:  docker.io/elixircloud/tesk-core-taskmaster
-    taskmaster_image_version: v0.10.2
+    taskmaster_image_version: v0.10.6
     taskmaster_filer_image_name: docker.io/elixircloud/tesk-core-filer
-    taskmaster_filer_image_version: v0.10.2
</code_context>
<issue_to_address>
**Failed jobs get system errors**

When kubernetes 1.31 or later reports `FailureTarget` before `Failed` and the taskmaster polls during that interval, the v0.10.6 taskmaster treats `FailureTarget` as a generic error and exits the executor path before `Failed`, so TESK records `SYSTEM_ERROR` instead of `EXECUTOR_ERROR`.

Update the taskmaster to wait for the terminal `Failed` condition before classifying the job.
</issue_to_address>

### Comment 2
<location path="documentation/deployment.md" line_range="3" />
<code_context>
 # Deployment instructions for TESK
 ## Requirements
-* **A Kubernetes cluster version 1.9 and later**. TESK works well in multi-tenancy clusters such as OpenShift and requires access to only one namespace.
+* **A Kubernetes cluster.** The Helm chart's default taskmaster and filer, v0.10.6, were tested on Kubernetes 1.30 and 1.36; earlier versions of Kubernetes were not tested with them. On 1.31 or later, the taskmaster must be v0.10.6 or later (see the [chart's README](../charts/tesk/README.md)). TESK works well in multi-tenancy clusters such as OpenShift and requires access to only one namespace.
 * **A default storage class.** To handle tasks with I/O TESK always requires a default storage class (regardless of the chosen storage backend). TESK uses the class to create temporary PVCs. It should be enough that the storage supports the RWO mode.
 * **A storage backend** to exchange I/O with the external world. At the moment TESK supports:
</code_context>
<issue_to_address>
**Unverified Kubernetes versions appear supported**

When users consult the top-level README before deploying the updated chart, the top-level README still says Kubernetes 1.9 and later works, so users choosing a pre-1.30 cluster treat an untested configuration as supported.

Update the top-level README's Kubernetes requirement to match the deployment guidance.
</issue_to_address>

Linked issues

#218 fix: default taskmaster fails on Kubernetes 1.31+ · 2 of 2 met

# Requirement Status Notes
1 The chart's default taskmaster and filer version is v0.10.6 or later. ✅ Met The chart defaults both images to v0.10.6 in charts/tesk/values.yaml.
2 The chart's docs say which Kubernetes versions work with the default. ✅ Met The chart README and deployment guide state that the v0.10.6 defaults were tested on Kubernetes 1.30 and 1.36, and clarify that earlier versions were not tested.

Sourcery assessment

Approval pending. 2 findings to address first.

Blocking findings: charts/tesk/values.yaml:25, documentation/deployment.md:3


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

Comment thread charts/tesk/values.yaml Resolved
Comment thread documentation/deployment.md Resolved
@uniqueg
uniqueg merged commit d86c59c into dev Nov 6, 2026
15 checks passed
@uniqueg
uniqueg deleted the fix/taskmaster-default branch November 6, 2026 05:12
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.

fix: default taskmaster fails on Kubernetes 1.31+

1 participant