Skip to content

ci: add upgrade-path regression test - #266

Open
chrisburr wants to merge 1 commit into
masterfrom
ci-upgrade-path-test
Open

ci: add upgrade-path regression test#266
chrisburr wants to merge 1 commit into
masterfrom
ci-upgrade-path-test

Conversation

@chrisburr

Copy link
Copy Markdown
Member

Install the latest released chart, then helm upgrade --atomic to the PR's working-tree chart, on a kind cluster. Catches the class of bug where a chart change that's harmless on a fresh install breaks the upgrade path — e.g. PR #262 converting diracx-secrets from a regular resource to a hook, which silently deleted the Secret during upgrades from <= 1.0.x.

The job reuses the released-tag's own run_demo.sh via 'git worktree add' so the install step is coherent with that chart version (its own demo/values.tpl.yaml etc.). After the install, --atomic upgrade runs against the PR tree; assertions check helm release status, key release resources still exist, all pods Ready, no failed hook Jobs, helm history advanced. Diagnostics always run.

Skips cleanly when there's no prior release, when Chart.yaml version is unchanged, or when the PR is docs-only.

@chrisburr
chrisburr marked this pull request as ready for review April 28, 2026 15:09
Install the latest released chart, then helm upgrade --atomic to the
PR's working-tree chart, on a kind cluster. Catches the class of bug
where a chart change that's harmless on a fresh install breaks the
upgrade path — e.g. PR #262 converting diracx-secrets from a regular
resource to a hook, which silently deleted the Secret during upgrades
from <= 1.0.x.

The job reuses the released-tag's own run_demo.sh via 'git worktree add'
so the install step is coherent with that chart version (its own
demo/values.tpl.yaml etc.). After the install, --atomic upgrade runs
against the PR tree; assertions check helm release status, key release
resources still exist, all pods Ready, no failed hook Jobs, helm
history advanced. Diagnostics always run.

Skips cleanly when there's no prior release, when Chart.yaml version
is unchanged, or when the PR is docs-only.
@aldbr
aldbr force-pushed the ci-upgrade-path-test branch from 580da64 to 5d04f8a Compare April 29, 2026 15:25
Comment thread scripts/upgrade-test/assert-upgrade-healthy.sh
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