Skip to content

Fail upgrade tests early when a Dapr Helm chart isn't published#1665

Open
cicoyle wants to merge 1 commit into
dapr:masterfrom
cicoyle:feat-explicit-helm-issue-surfaced
Open

Fail upgrade tests early when a Dapr Helm chart isn't published#1665
cicoyle wants to merge 1 commit into
dapr:masterfrom
cicoyle:feat-explicit-helm-issue-surfaced

Conversation

@cicoyle

@cicoyle cicoyle commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Adds a test that checks each upgrade-path runtime version has a published chart in the Dapr helm repo, so a missing chart fails with a clear msg instead of a cascade of missing-role errors & panic

…rs better

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Copilot AI review requested due to automatic review settings July 1, 2026 19:12
@cicoyle cicoyle requested review from a team as code owners July 1, 2026 19:12

Copilot AI 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.

Pull request overview

Adds a preflight check to the upgrade E2E test suite so it fails early (with a targeted error message) when a runtime version referenced by supportedUpgradePaths does not have a corresponding published Dapr Helm chart, avoiding later cascading install/role errors.

Changes:

  • Introduces TestMain to run a preflight validation before executing upgrade tests.
  • Adds helpers to compute which runtime versions are missing charts and to check chart existence in the Dapr Helm repo via HTTP.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +161 to +168
func chartPublished(version string) bool {
resp, err := http.Head(fmt.Sprintf("%s/dapr-%s.tgz", daprHelmRepo, version))
if err != nil {
return false
}
defer resp.Body.Close()
return resp.StatusCode == http.StatusOK
}
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