Skip to content

test: add target migration precheck#2500

Open
eofff wants to merge 1 commit into
mainfrom
chore/target-migration-precheck
Open

test: add target migration precheck#2500
eofff wants to merge 1 commit into
mainfrom
chore/target-migration-precheck

Conversation

@eofff

@eofff eofff commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a dedicated e2e precheck label for TargetMigration tests.

The new precheck verifies that the TargetMigration feature accepts VirtualMachineOperation.spec.migrate.nodeSelector via dry-run creation and checks that at least two ready KVM-enabled worker nodes are available before running the target migration e2e scenario.

Why do we need it, and what problem does it solve?

Target migration e2e tests require both the TargetMigration feature and enough suitable worker nodes. Without a dedicated precheck, the test can fail later with less actionable errors when the environment does not satisfy these requirements.

What is the expected result?

TargetMigration e2e tests are skipped or fail early with a clear precheck message when the required feature or worker nodes are unavailable. The precheck can be disabled with TARGET_MIGRATION_PRECHECK=no.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Signed-off-by: Valeriy Khorunzhin <valeriy.khorunzhin@flant.com>
@eofff eofff requested a review from Isteb4k as a code owner June 17, 2026 08:52
@eofff eofff added this to the v1.10.0 milestone Jun 17, 2026
@eofff eofff marked this pull request as draft June 17, 2026 08:54
@eofff eofff requested a review from hardcoretime June 17, 2026 09:05
@eofff eofff marked this pull request as ready for review June 17, 2026 09:06
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