fix(e2e): set maxUnavailable to 2 to preserve parallel test coverage#1466
fix(e2e): set maxUnavailable to 2 to preserve parallel test coverage#1466qinqon wants to merge 1 commit intonmstate:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the end-to-end testing environment to maintain the integrity of parallel execution tests and enhance debugging capabilities. It adjusts a critical environment variable to ensure that tests designed to validate concurrent operations continue to provide accurate coverage, while also improving log persistence for better troubleshooting during cluster setup. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request introduces changes to enhance the e2e testing environment. The automation/check-patch.e2e-k8s.sh script now explicitly sets NMSTATE_MAX_UNAVAILABLE. The review suggests deriving this value programmatically from KUBEVIRT_NUM_NODES to improve robustness and consistency, adhering to repository coding style guidelines. The cluster/up.sh script has been updated to enable persistent journal logs, improving debugging capabilities by ensuring logs survive node reboots.
After reducing the cluster to 4 nodes (1 control-plane + 3 workers) in nmstate#1464, the default maxUnavailable of 50% results in only 1 node (floor(3 * 0.5) = 1), which means the "should be progressing on multiple nodes" test no longer validates parallel processing. Set NMSTATE_MAX_UNAVAILABLE=2 so that 2 out of 3 workers can progress in parallel and 1 is aborted, preserving meaningful coverage of the maxUnavailable logic. Signed-off-by: Enrique Llorente <ellorent@redhat.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7aa96fc to
ad784fd
Compare
|
/lgtm |
|
@qinqon: The following test failed, say
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/kind enhancement
What this PR does / why we need it:
Sets
NMSTATE_MAX_UNAVAILABLE=2in the e2e handler CI script to preserve parallel processing test coverage after the node reduction in #1464.With 3 workers and the default
maxUnavailableof50%, only 1 node can progress at a time (floor(3 * 0.5) = 1). This means theshould be progressing on multiple nodestest no longer validates that multiple nodes process in parallel — it effectively tests serial execution.Setting
maxUnavailable=2ensures 2 out of 3 workers progress simultaneously while 1 is aborted, keeping meaningful coverage of the maxUnavailable capping and abort logic.Special notes for your reviewer:
The
NMSTATE_MAX_UNAVAILABLEenv var is already supported by the test framework (test/e2e/handler/utils.go:60) and feeds into every NNCP'smaxUnavailablefield. No test code changes needed.Release note: