Skip to content

ci: only publish container and Helm chart when all checks pass - #1711

Closed
ZohebShaikh wants to merge 1 commit into
mainfrom
ci-release-gating
Closed

ZohebShaikh wants to merge 1 commit into
mainfrom
ci-release-gating

Conversation

@ZohebShaikh

Copy link
Copy Markdown
Contributor

Summary

  • container now waits for lint and system-test as well as test, and publish is true only when all three pass. Before, a tag with failing lint or system tests still published the image and chart.
  • helm_publish now checks inputs.publish. Before, a tag with failing tests skipped the image push but still pushed a chart pointing at that missing image.
  • Removed the Extract metadata step from helm_publish: it read the undefined env.REGISTRY/env.IMAGE_NAME and nothing used its outputs.

Trade-off: the container build now starts after system tests finish rather than after unit tests.

Will conflict with #1709 on the line next to needs: in ci.yml; whichever merges second keeps both changes.

Test plan

  • CI passes on this PR (container builds, publish false)
  • On the next tag, image and chart publish only when lint, test and system-test all pass

🤖 Generated with Claude Code

Gate publish on lint and system-test as well as test, skip helm_publish
when publish is false, and drop the unused metadata step that read
undefined env vars.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ZohebShaikh
ZohebShaikh requested a review from a team as a code owner October 21, 2026 08:15
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.41%. Comparing base (66b52cc) to head (4700abe).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1711   +/-   ##
=======================================
  Coverage   96.41%   96.41%           
=======================================
  Files          49       49           
  Lines        3711     3711           
=======================================
  Hits         3578     3578           
  Misses        133      133           

☔ 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.

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.

2 participants