Skip to content

feat: list no backend parameters in service info - #314

Merged
uniqueg merged 2 commits into
devfrom
feat/289-backend-parameters
Nov 16, 2026
Merged

uniqueg merged 2 commits into
devfrom
feat/289-backend-parameters

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Finishes #289: #309 already made the chart report TES 1.1.0 and bumped the default images; what was left is the TES 1.1 field tesResources_backend_parameters.

  • charts/tesk/templates/_helpers.tpl (tesk.serviceInfo): from tesk-api 2.0.0 on (also its pre-releases and tags that aren't versions, the same condition as type.version), the service info lists tesResources_backend_parameters: []: TESK supports no backend parameters. tesk-api 1.x reads the file with plain SnakeYAML and can't load the unknown key (it would serve an empty service info), so the field is left out for it. tesk-api 2.0.0 reads it (substituteProperty) and always serves [].
  • Tests (tests/test_chart.py): new test_service_info_backend_parameters (present for 2.0.0, v2.0.0, 2.0.0-rc.1, 2.1.0, dev; absent for 1.2.0, v1.2.1); test_service_info_defaults and test_service_info_optional updated. The new test failed before the template change.
  • Docs: configuration reference (incl. a caveat for tags that aren't versions: tesk-api images before tesk-api#147 can't read the field), "Unreleased" upgrade notes (own ConfigMaps: field optional, not for 1.x; the API restarts as the ConfigMap changes), values.yaml comment.

Closes #289

Verification

  • REQUIRE_HELM=1 pytest (Helm 3.22.1): 917 passed and 2 failed (test_service_info_optional, which lists the service info's fields); after updating that test, pytest -k service_info: 76 passed
  • helm lint charts/tesk --strict: passed
  • mypy tests: no issues; mkdocs build --strict: passed
  • pre-commit run --all-files: passed except actionlint, which couldn't run locally (tool shim without a version; no workflow changed here)

CI: all checks passed (gate CI passed, Chart install, Test, Docs, Release readiness, CodeQL, Read the Docs).

Lane

Full lane (chart template logic): adversarial-reviewer and quality-reviewer, one round (no high or medium correctness findings; the quality reviewer's two medium findings were docs only and are fixed).

Declined review findings

  • Bind the "API 2.0.0 or later" condition once and reuse it for type.version and the new field (low): two short uses of the same helper, tesk.apiBefore, which holds the threshold logic; a variable would save nothing.
  • Share the tag matrix of test_service_info_type_version and the new test (low): the two lists check different things and read clearly as they are.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Add TES 1.1 backend-parameter reporting to service info for tesk-api 2.0.0 and later while preserving compatibility with older API versions.

New Features:

  • Report that TESK supports no backend parameters in service info for tesk-api 2.0.0 and later.

Enhancements:

  • Keep the new service-info field compatible with tesk-api 1.x by omitting it for older API versions.
  • Clarify service-info behavior, version compatibility, upgrade considerations, and non-version image tags in the documentation.

Documentation:

  • Document the backend-parameter field, compatibility caveats, and upgrade behavior for chart-managed and user-managed service-info ConfigMaps.

Tests:

  • Add coverage for rendering the backend-parameter field across supported API version and tag formats.
  • Update service-info expectations to include the chart-generated backend-parameter field.

uniqueg and others added 2 commits November 16, 2026 21:15
From tesk-api 2.0.0 on, the chart's service info has
tesResources_backend_parameters: [] (TES 1.1): TESK supports no
backend parameters. Earlier tesk-api releases can't read the service
info with the field, so it is left out for them, as type.version
follows the API's tag too.

Closes #289

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Say that the backend parameters field is optional in an own
ConfigMap and must not be added for tesk-api 1.x, that the chart's
ConfigMap change restarts the API, and that tags that aren't versions
need tesk-api images built after tesk-api#147 (review findings).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg uniqueg self-assigned this Nov 16, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Configuration

Add the TES 1.1 empty backend-parameters field to chart-generated service info only for tesk-api 2.0.0 and later, and document the chart-managed behavior in the values comment.

  • charts/tesk/templates/_helpers.tpl L450-453, L527-529
  • charts/tesk/values.yaml L339-341

Documentation

Explain when the field is emitted, its compatibility constraints for older and non-version-tagged API images, and how it applies to user-managed ConfigMaps and upgrades.

  • docs/configuration.md L193-201
  • docs/upgrading.md L76-81

Tests

Update service-info expectations and test that backend parameters are listed for supported API tags but omitted for earlier releases.

  • tests/test_chart.py L2017, L2068-2098, L2229-2237

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 added a commit that referenced this pull request Nov 16, 2026
The 0.4.0 notes gain the service info's backend parameters (#289,
#314) and the prerelease flag of releases before 1.0 (#313, #315),
both planned for 0.4.0.

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

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ab9769c) to head (865ed0c).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #314   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          422       422           
=========================================
  Hits           422       422           

☔ 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 16, 2026 20:29
@sourcery-ai

sourcery-ai Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit 865ed0c

#289 feat: report TES 1.1.0 in service info · 4 of 4 met

# Requirement Status Notes
1 Report TES 1.1.0 and tesResources_backend_parameters: [] for tesk-api 2.0.0 or later ✅ Met The chart reports type.version: 1.1.0 and includes the empty backend-parameters field for 2.0.0+, while omitting the field for earlier API tags.
2 Bump the default tesk-api, taskmaster, and filer image tags to releases that implement TES 1.1 ✅ Met The chart defaults to tesk-api 2.0.0 and taskmaster and filer 0.12.0.
3 Update the service-info comments and chart documentation, including upgrade guidance for pinned images and own ConfigMaps ✅ Met The values comment and configuration and upgrade docs cover the field, older API compatibility, custom ConfigMaps, and pinned-image upgrade considerations.
4 Add chart tests covering the rendered TES 1.1 fields ✅ Met The tests check default service info and verify the backend-parameters field is rendered for supported API tags and omitted for earlier ones.

@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="charts/tesk/templates/_helpers.tpl" line_range="528" />
<code_context>
 {{- end }}
 {{- end }}
+{{- if empty (include "tesk.apiBefore" (dict "root" . "version" "2.0.0")) }}
+tesResources_backend_parameters: []
+{{- end }}
 {{- end -}}
</code_context>
<issue_to_address>
**Old API serves empty service info**

When a Helm upgrade updates the ConfigMap while a 1.x API pod is still running and the pod reads the updated ConfigMap, the old API cannot parse the new `tesResources_backend_parameters` key, so it serves empty service info until the pod or ConfigMap is replaced; if the upgrade stops after the ConfigMap update, this persists until retry or rollback.

Keep the new key out of ConfigMaps still consumed by 1.x pods, for example by switching to a versioned ConfigMap after those pods are replaced.

Also at `charts/tesk/templates/_helpers.tpl:529`.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: charts/tesk/templates/_helpers.tpl:528


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

Comment thread charts/tesk/templates/_helpers.tpl Resolved
@uniqueg
uniqueg merged commit cd0c106 into dev Nov 16, 2026
39 checks passed
@uniqueg
uniqueg deleted the feat/289-backend-parameters branch November 16, 2026 20:34
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.

feat: report TES 1.1.0 in service info

1 participant