Skip to content

test(operator): track chart appVersion in operator-install version tripwires#115

Merged
jmgilman merged 1 commit into
masterfrom
fix/operator-version-tripwires-dynamic
Jun 5, 2026
Merged

test(operator): track chart appVersion in operator-install version tripwires#115
jmgilman merged 1 commit into
masterfrom
fix/operator-version-tripwires-dynamic

Conversation

@jmgilman

@jmgilman jmgilman commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

The operator-install version "tripwire" tests in cli/internal/operator/ssa
hardcoded the operator version (v0.2.0). Every operator release bumps the
chart appVersion, which re-broke these six assertions and red-lit master
until a follow-up re-sync PR — the v0.2.0 release hit exactly this (fixed
reactively in #111).

This reads the embedded chart's appVersion dynamically via the existing
embeddedChartAppVersion helper (already used in render_test.go) instead of a
hardcoded literal. The assertions now track the chart across releases, so a
release no longer reds master — while still catching real drift: the rendered
Deployment version label (set by the chart template) must equal the declared
appVersion.

Six assertions changed (apply_test.go ×1, install_envtest_test.go ×5).
Scenario literals (e.g. the v0.9.9 installed-version refuse case) are
deliberately unchanged — they are hypothetical inputs, not chart-derived.

Why now

This unblocks the v0.2.1 release (release PR #113, which ships P1 #112 +
P2 #114) without red-lighting master. Merge this first, then the release PR.

Verification

  • moon run root:test (full suite incl. the ssa envtest) — green at the current
    appVersion: v0.2.0.
  • Version-agnostic by construction: both sides read from the same embedded
    chart, so it stays green when appVersion becomes v0.2.1.
  • moon run root:check — clean.

🤖 Generated with Claude Code

…ipwires

The six operator-install tripwire assertions hardcoded the operator version
(v0.2.0), so every release re-broke them and red-lit master until a follow-up
re-sync (the v0.2.0 release did exactly this). Read the embedded chart's
appVersion via the existing embeddedChartAppVersion helper instead, so the
assertions track the chart across releases while still catching template-wiring
drift (the rendered Deployment version label vs. the declared appVersion).
Scenario literals (e.g. the v0.9.9 installed-version refuse case) are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jmgilman jmgilman merged commit 13122b6 into master Jun 5, 2026
12 checks passed
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.

1 participant