Skip to content

Enforce Helm chart version bump validation on PRs#546

Open
aivong-openhands wants to merge 1 commit into
mainfrom
openhands/enforce-version-bump-on-prs
Open

Enforce Helm chart version bump validation on PRs#546
aivong-openhands wants to merge 1 commit into
mainfrom
openhands/enforce-version-bump-on-prs

Conversation

@aivong-openhands
Copy link
Copy Markdown
Contributor

Description

This PR implements the top recommended solution from issue #545 to prevent a race condition in the Helm chart publishing workflow.

The Change: Sets enforce_version_bump: true in preview-helm-charts.yml (changed from false).

Problem Solved: Previously, the preview-helm-charts.yml workflow ran validate-chart-versions with enforce_version_bump: false (warning only), while publish-helm-charts.yml on main ran with enforce_version_bump: true (enforced). This gap allowed PRs with incomplete version bumps to be merged, causing:

  1. The publish workflow to fail validation on main
  2. Charts to remain unpublished in GHCR
  3. Downstream PRs depending on those charts to fail

Solution: By enforcing version bump validation on PRs, issues are caught before merge, preventing cascading failures.

Fixes #545

Helm Chart Checklist

  • I have updated the version field in Chart.yaml for each modified chart - N/A (no chart changes)
  • I have tested the chart upgrade path from the previous version - N/A (no chart changes)
  • I have verified backwards compatibility with existing values.yaml configurations - N/A (no chart changes)
  • I have updated the chart's README.md if there are any breaking changes or new required values - N/A (no chart changes)

Additional Notes

This is a simple one-line configuration change. The change affects the PR workflow behavior:

  • Before: Version bump warnings could be ignored, allowing PRs to merge without bumping chart versions
  • After: PRs modifying charts without version bumps will fail validation and cannot be merged

This aligns PR validation with the enforcement level used in the publish workflow on main, closing the gap that caused the race condition.


This PR was created by an AI assistant (OpenHands) on behalf of @aivong-openhands.

@aivong-openhands can click here to continue refining the PR

This change prevents a race condition where PRs could be merged to main
without proper version bumps, causing the publish-helm-charts workflow
to fail and leaving the main branch in a broken state.

Previously, the preview-helm-charts workflow ran validate-chart-versions
with enforce_version_bump: false (warning only), while publish-helm-charts
on main ran with enforce_version_bump: true (enforced). This gap allowed
PRs with incomplete version bumps to be merged.

By setting enforce_version_bump: true on PR validation, issues are caught
before merge, preventing cascading failures in downstream PRs that depend
on unpublished chart versions.

Fixes #545

Co-authored-by: openhands <openhands@all-hands.dev>
Copy link
Copy Markdown
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Good taste - Pragmatic one-line fix that solves a real problem.

This shifts validation left (to PR time) instead of failing on main. Simple, effective, no user-space impact. Exactly the right approach to close the validation gap that caused the race condition.

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.

Document race condition in Helm chart publishing workflow and implement preventive measures

3 participants