Repository navigation
ci: fix chart check test shell and comment - #300
Merged
Merged
Conversation
Run the chart check script in its test with the options of GitHub's default shell for steps without shell: (bash -e, no pipefail), as the runner does. Correct the comment of the step: a rejected chart leaves the image pushed by push, with its BuildKit SBOM and provenance attestations, but without GitHub attestation, signature and tags. Closes #299 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Assert that the chart check comes before the image is tagged, and align the test comment with the corrected workflow comment. Refs #299 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates chart-check verification to accurately emulate GitHub’s default Bash invocation and enforce that validation occurs before image tagging and all later attest/sign steps; also corrects the release workflow comment to reflect the image’s pre-existing digest push and BuildKit attestations. 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 #300 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 22 22
Lines 2356 2356
=========================================
Hits 2356 2356 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 31, 2026 18:12
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#299 ci: fix chart check test shell and comment · 3 of 3 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Run the chart-check test with GitHub’s default shell options (bash -e, without pipefail). |
✅ Met | The test invokes Bash with -e and no -o pipefail. |
| 2 | Correct the “Check chart” comment so it accurately describes the image’s existing BuildKit attestations and the GitHub attestation, signature, and tags that the check precedes. | ✅ Met | The workflow comment distinguishes the image’s existing SBOM and provenance attestations from the GitHub attestation, signature, and tags; the test also asserts the check precedes tagging. |
| 3 | Audit the release image flow and leave it unchanged if it already pushes by digest, scans without an environment or secrets, then attests, signs, and tags in release; keep CI dev-image jobs in dev-images. |
✅ Met | The release workflow has that flow, and the CI dev-image push and publish jobs use the dev-images environment. |
Sourcery assessment
Approved.
This was referenced Nov 1, 2026
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
Two follow-ups to the chart-artifact check (#296), found while porting it to trs-filer and proTES:
tests/test_workflows.py: the chart check test runs the step's script with the options of GitHub's default shell for steps withoutshell:(bash -e, nopipefail), as the runner does, instead ofbash -e -o pipefail. It also asserts that the check comes before "Tag image", and its comment no longer says the image is left unattested..github/workflows/release.yml: the comment of "Check chart" no longer claims a rejected chart leaves "nothing attested or signed, the image included": the image was already pushed untagged bypush, with BuildKit's SBOM and provenance attestations; the check only comes before the GitHub attestation, the signature and the tags (and before the chart is attested and signed). Same wording as the trs-filer and proTES ports.Audit for foca#574: cloud-registry already follows the release image flow (push by digest only in
release, scan without environment or secrets, publish inreleaseattests, signs, then tags; CI dev image jobs indev-images). Nothing else to change.Closes #299
Verification
pytest tests/test_workflows.py: 15 passed.ruff check/ruff format --checkon the test file: clean.actionlint .github/workflows/*.yml: no findings.Declined review findings
None.
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Correct chart validation test behavior and documentation to match the release workflow's artifact and attestation lifecycle.
Bug Fixes:
pipefailoption.Enhancements:
Tests: