Skip to content

test(iac): pin ComputePlanVersion=v2 regression-guard; release v1.2.1#20

Merged
intel352 merged 1 commit into
mainfrom
feat/capabilities-v2-guard-test
May 17, 2026
Merged

test(iac): pin ComputePlanVersion=v2 regression-guard; release v1.2.1#20
intel352 merged 1 commit into
mainfrom
feat/capabilities-v2-guard-test

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

Per Phase 2 + 2.5 cascade closeout cleanup (Item 3 of docs/plans/2026-05-17-phase2.5-cleanup-bundle-design.md in workflow repo): adds the missing Capabilities() → ComputePlanVersion="v2" regression-guard test.

Without this, a future refactor of the Capabilities return literal could silently revert to v1 dispatch (empty ComputePlanVersion → wfctlhelpers.DispatchVersionFor empty-default) with no signal until production deploy fails.

Matches the equivalent test in workflow-plugin-gcp (TestGCPIaCServer_Capabilities_ComputePlanVersionV2 at iacserver_test.go:67) and workflow-plugin-digitalocean (TestDOIaCServer_Capabilities_DeclaresV2 at iacserver_finalize_test.go:192).

Test-only change; cuts as v1.2.1 patch (no behavioral impact).

Test plan

  • go test ./internal/ -run TestAWSIaCServer_Capabilities_ComputePlanVersionV2 -v → PASS
  • go test ./internal/ -race -count=1 → full package PASS race-clean

Rollback

Revert commit. Test removal is non-functional.

…e closeout)

Adds TestAWSIaCServer_Capabilities_ComputePlanVersionV2 mirroring the
existing gcp + DO equivalents. Pins the Phase 2 contract signal: a
silent regression dropping the "v2" literal in Capabilities would
degrade to v1 dispatch via wfctlhelpers.DispatchVersionFor's
empty-default, breaking the Phase 2 hard-cutover contract per ADR 0024
+ ADR 0040.

Per workflow#640 + #695 Phase 2 + 2.5 cascade closeout.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

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 regression-guard test ensuring the AWS IaC server continues to declare ComputePlanVersion="v2" in its Capabilities response, preventing accidental fallback to v1 dispatch behavior.

Changes:

  • Adds TestAWSIaCServer_Capabilities_ComputePlanVersionV2.
  • Verifies CapabilitiesResponse.ComputePlanVersion remains pinned to "v2".

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

@intel352 intel352 merged commit 0bf13d0 into main May 17, 2026
9 checks passed
@intel352 intel352 deleted the feat/capabilities-v2-guard-test branch May 17, 2026 10:38
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