Repository navigation
Conversation
Apply the fixers of the new pre-commit hooks (end-of-file-fixer, trailing-whitespace) to all files outside the copy of tesk-core in `source/`, so that the lint job of the new CI workflow passes. No changes other than whitespace. Refs #221 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Replace `build.yaml` (chart install on pull requests to `master`, with chart-releaser on pull requests) and the unused `.travis.yml` with `ci.yml` as in cloud-registry: PR title, lint (pre-commit hooks, with pre-commit locked in `uv.lock`), chart lint and render, chart install on kind with a service-info check, and the gate `CI passed`. The chart steps are composite actions, for reuse by the release workflow. Nothing is published from CI. Closes #221 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The template held filler text in PEM blocks, which gitleaks reports as a private key. Use short placeholders instead. Refs #221 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Restart the port forward until the API answers, as the chart has no readiness probe; keep Markdown hard line breaks in the whitespace hook; pin uv through the lock, as in cloud-registry; limit the exclude of the copy of tesk-core to the whitespace hooks; drop references to files that do not exist yet. Refs #221 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Time out each request after 10 s and show an unexpected response; require uv 0.13 as cloud-registry does. Refs #221 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Reviewer's GuideThe PR replaces obsolete Travis and chart CI with a reproducible GitHub Actions workflow whose required Flow diagram for the CI workflow and required gateflowchart TD
Trigger["Push to dev or pull request event"] --> Title["PR title"]
Trigger --> Lint["Lint: pre-commit and gitleaks"]
Trigger --> Chart["Chart: helm lint --strict and helm template"]
Trigger --> Install["Chart install"]
Install --> Kind["Create kind cluster"]
Kind --> HelmInstall["helm install"]
HelmInstall --> PortForward["kubectl port-forward"]
PortForward --> ServiceInfo["curl GET /ga4gh/tes/v1/service-info"]
Title --> Gate["CI passed"]
Lint --> Gate
Chart --> Gate
ServiceInfo --> Gate
Gate --> Required["Required dev ruleset check"]
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
uniqueg
marked this pull request as ready for review
November 6, 2026 04:56
Contributor
There was a problem hiding this comment.
Hey - I've found 2 issues
Fixed security issues:
- charts/tesk/tls_secret_name.yml-TEMPLATE (link)
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/ci.yml" line_range="117" />
<code_context>
+
+ # The only required check: fails if any job failed or was cancelled, or
+ # was skipped where it must run (only `title` is skipped on pushes)
+ passed:
+ name: CI passed
+ runs-on: ubuntu-latest
</code_context>
<issue_to_address>
**Unvalidated changes can pass required checks**
When a PR author can edit the workflow and the `dev` ruleset requires only the status check named `CI passed`, the PR-provided workflow can replace the `passed` job with an unconditional job using the same `CI passed` name, so GitHub reports the required check as successful without running the title, lint, or chart checks.
Protect changes to the workflow with required review, or configure the ruleset to require this workflow rather than only a status-check name.
</issue_to_address>
### Comment 2
<location path=".github/actions/install-chart/action.yml" line_range="56" />
<code_context>
+ fi
+ if curl --fail --silent --show-error --max-time 10 --output "${body}" \
+ http://localhost:8080/ga4gh/tes/v1/service-info; then
+ if ! jq -e '.id and .type.group == "org.ga4gh"' "${body}"; then
+ echo "::error::Unexpected service info"
+ cat "${body}"
</code_context>
<issue_to_address>
**Empty service ID passes the check**
When the endpoint returns HTTP 200 with an empty-string `id` and `type.group` equal to `org.ga4gh`, the `Check service info` test uses jq truthiness for `.id`; jq treats an empty string as true, so a response with `"id": ""` and the expected group passes and the chart install is reported successful despite the invalid service ID.
Require `.id` to be a non-empty string in the jq assertion.
</issue_to_address>Linked issues
#221 ci: add a CI workflow with a gate · 9 of 9 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Run CI on pull requests to dev and pushes to dev, without paths filters | ✅ Met | The workflow triggers on both event types for dev and defines no paths filters. |
| 2 | Use the shared PR title action | ✅ Met | The title job uses the shared pr-title action pinned to a release commit. |
| 3 | Run pre-commit lint with pre-commit-hooks, gitleaks and actionlint | ✅ Met | The lint job runs pre-commit checks and the manual gitleaks-all hook; pre-commit and uv are managed through the locked dev dependencies. |
| 4 | Lint and render the chart | ✅ Met | The test-chart action runs helm lint --strict and helm template. |
| 5 | Install the chart on a throwaway cluster and check that the service-info endpoint answers | ✅ Met | The install-chart action creates a kind cluster, installs with default values, and checks the endpoint through a port forward. |
| 6 | Add the CI passed gate using the shared gate action | ✅ Met | The passed job runs with if: always(), needs all check jobs, and invokes the shared gate action. |
| 7 | Pin the shared actions to release commits | ✅ Met | The shared PR-title and gate actions are pinned to commit SHAs. |
| 8 | CI passed reports on every pull request to dev and every push to dev | ✅ Met | The workflow has the required triggers, and the always-running gate accounts for skipped title checks on pushes. |
| 9 | Remove build.yaml and .travis.yml, and do not publish from pull requests | ✅ Met | Both old workflow files are deleted; the new CI workflow contains no publishing step. |
Sourcery assessment
Approval pending. 2 findings to address first.
Blocking findings: .github/workflows/ci.yml:117, .github/actions/install-chart/action.yml:56
Refs #221 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the old chart CI with
ci.yml/CI, as in cloud-registry and foca, with the gateCI passedthat thedevruleset requires.build.yamlis removed. It ran only on pull requests tomaster, and it also ran chart-releaser on pull requests, which published a chart from an unmerged branch..travis.ymlis removed too: it no longer runs.ci.ymljobs:title/PR title: shared action.lint/Lint: pre-commit, with pre-commit-hooks, gitleaks and actionlint, as in cloud-registry. pre-commit and uv come fromuv.lock.chart/Chart:helm lint --strictandhelm template.chart-install/Chart install: installs on kind with the default values and checksGET /ga4gh/tes/v1/service-infothrough a port forward.passed/CI passed: shared gate action..github/actions/test-chart,install-chart), as in foca, so that the release workflow (ci: release charts from v* tags #222) can reuse them.pyproject.toml+uv.lockholds the tools (dependency groupdev).source/, which is excluded from the whitespace hooks.charts/tesk/tls_secret_name.yml-TEMPLATE: filler PEM bodies replaced with short placeholders. gitleaks reported them as a private key; they were filler text, not a key.Nothing is published from CI. Chart releases come with
release.yml(#222). The Ingress isn't exercised any more: the old job used microk8s with the ingress addon, the new one uses kind and a port forward. Docs, metadata, tests and the release workflow follow in separate PRs (see #229).Closes #221
Verification
helm lint charts/tesk --strictandhelm template(Helm v3.22.1): pass.pre-commit run --all-fileswith cached hook environments, including gitleaks, actionlint and shellcheck: pass.gitleaks diron the tracked files: no leaks.actionlint .github/workflows/ci.yml: pass.uv lock --check: pass.service-infoon kind.Review
Full review: the change includes a reformat. Two rounds, with
adversarial-reviewerandquality-reviewer. All high, medium and cheap low findings are fixed:--markdown-linebreak-ext=md)Declined review findings
None.
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Replace the legacy validation workflows with a gated CI pipeline that lint-checks the repository, validates the Helm chart, and smoke-tests chart installation without publishing releases.
New Features:
Bug Fixes:
Enhancements:
CI:
Tests: