Skip to content

test(installation): skip Calico-variant VAP tests on release-v1.43#4922

Open
electricjesus wants to merge 2 commits into
tigera:release-v1.43from
electricjesus:seth/skip-calico-vap-tests-v1.43
Open

test(installation): skip Calico-variant VAP tests on release-v1.43#4922
electricjesus wants to merge 2 commits into
tigera:release-v1.43from
electricjesus:seth/skip-calico-vap-tests-v1.43

Conversation

@electricjesus

@electricjesus electricjesus commented Jun 15, 2026

Copy link
Copy Markdown
Member

Draft — not yet for review. Skips a few release-v1.43-only failing unit tests; opening early to discuss the approach (mirrors calico#12962). Details below.

Description

Test-only change for release-v1.43.

The updateValidatingAdmissionPolicies Calico-variant unit tests (added in #4878) assert that the protect-builtin-tiers ValidatingAdmissionPolicy is created. But that VAP is a Calico v3.33 feature (projectcalico/calico#12824) and is not present in the OSS Calico v3.32.0 that release-v1.43 pins. The admission policies are generated from the pinned calico's api/admission/ dir, so the v1.43 config regen (build: update config for v1.43) correctly dropped the Calico copy — while the hand-written tests still assert it, so they fail on the missing VAP.

This skips the four affected Variant: operator.Calico tests on this branch only, mirroring projectcalico/calico#12962 (which skips the same tier-protection tests on calico release-v3.32). The early-return cases and the Enterprise-variant test still run — Calient v3.24 does ship the VAP (calico-private release-calient-v3.24-1 has it), so VAP-management coverage is retained.

Why the asymmetry is expected: operator releases alternate which product gets a new minor — even minors bump OSS Calico, odd minors bump Enterprise. release-v1.43 (odd) advanced Enterprise to v3.24 but kept OSS Calico at v3.32, so the OSS-side VAP isn't present yet (it arrives when an even operator minor moves OSS Calico to v3.33). Master is unaffected (pins calico master, which has the VAP), so the tests stay live there.

  • Type: bug fix (broken release-branch unit test)
  • Components: pkg/controller/installation (test only)
  • Testing: go test ./pkg/controller/installation/ focused on updateValidatingAdmissionPolicies3 passed, 0 failed, 4 skipped (the 4 Calico-variant tests skip with a rationale; early-return + Enterprise-variant tests still pass).

Release Note

NONE

For PR author

  • Tests for change. — N/A; this is a test-only change that skips tests not applicable to this branch's bundled OSS Calico (v3.32).
  • If changing pkg/apis/, run make gen-files — N/A, no pkg/apis/ changes.
  • If changing versions, run make gen-versions — N/A, no version changes.

For PR reviewers

  • Milestone set according to targeted release.
  • Appropriate labels: kind/bug, release-note-not-required.

The updateValidatingAdmissionPolicies Calico-variant tests assert that the
protect-builtin-tiers ValidatingAdmissionPolicy is created, but that VAP is a
Calico v3.33 feature (projectcalico/calico#12824) and is not present in the
calico v3.32.x bundled by release-v1.43. The admission policies are generated
from the pinned calico's api/admission/ dir, so the v1.43 config regen
correctly dropped the Calico copy while leaving these hand-written tests, which
then fail on the missing VAP.

Skip the four affected tests on this branch, mirroring projectcalico/calico#12962
which skips the same tier-protection tests on calico release-v3.32. The
early-return cases and the Enterprise-variant test still run (Calient v3.24 ships
the VAP), so VAP-management coverage is retained. The tests pass on master, which
pins calico master (where the VAP exists).

@caseydavenport caseydavenport left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM - can revert this after v3.32.1 is released.

@caseydavenport caseydavenport marked this pull request as ready for review June 15, 2026 18:57
@caseydavenport caseydavenport requested a review from a team as a code owner June 15, 2026 18:57
The GetValidatingAdmissionPolicies Calico-variant tests assert the
protect-builtin-tiers VAP (projectcalico/calico#12824), a Calico v3.33
feature absent from the calico v3.32.x bundled by release-v1.43. Skip
them, mirroring projectcalico/calico#12962 and the core_controller skip
in this PR. Revert once release-v1.43 bumps its calico pin to a v3.32.x
that carries the backport (projectcalico/calico#12982).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants