Skip to content

Commit

Permalink
Consolidate parallel and sequential lanes
Browse files Browse the repository at this point in the history
Run the e2e handler test lane only once, configured
to use default 50% of worker nodes to process
NNCPs concurrently.

For that reason, setting number of nodes to 5
so that 2 nodes run concurrently (4/2 == 2)

Signed-off-by: Radim Hrazdil <[email protected]>
  • Loading branch information
Radim Hrazdil committed Mar 25, 2021
1 parent 73dab1f commit bffe21e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
7 changes: 1 addition & 6 deletions automation/check-patch.e2e-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ teardown() {
}

main() {
export KUBEVIRT_NUM_NODES=3 # 1 master, 2 workers
export KUBEVIRT_NUM_NODES=5 # 1 master, 4 workers
source automation/check-patch.setup.sh
cd ${TMP_PROJECT_PATH}

Expand All @@ -32,11 +32,6 @@ main() {
make cluster-sync

export E2E_TEST_SUITE_ARGS="--junit-output=$ARTIFACTS/junit.functest.xml"
if [ "$NMSTATE_PARALLEL_ROLLOUT" == "true" ]; then
E2E_TEST_SUITE_ARGS="${E2E_TEST_SUITE_ARGS} -ginkgo.skip='user-guide|nns|sequential'"
else
E2E_TEST_SUITE_ARGS="${E2E_TEST_SUITE_ARGS} -ginkgo.skip='parallel'"
fi

make E2E_TEST_TIMEOUT=1h E2E_TEST_ARGS="-noColor" test-e2e-handler
}
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/handler/nnce_conditions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var _ = Describe("[rfe_id:3503][crit:medium][vendor:[email protected]][level:com
resetDesiredStateForNodes()
})

It("[test_id:3795][parallel] should have Failing ConditionType set to true", func() {
It("[test_id:3795] should have Failing ConditionType set to true", func() {
for _, node := range nodes {
By(fmt.Sprintf("Check %s failing state is reached", node))
enactmentConditionsStatusEventually(node).Should(
Expand Down Expand Up @@ -195,7 +195,7 @@ var _ = Describe("[rfe_id:3503][crit:medium][vendor:[email protected]][level:com
wg.Wait()
})

It("[test_id:3795][sequential] should have one Failing the rest Aborted ConditionType set to true", func() {
It("[test_id:3795] should have one Failing the rest Aborted ConditionType set to true", func() {
checkEnactmentCounts := func(policy string) {
failingConditions := 0
abortedConditions := 0
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/handler/nncp_parallel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ var _ = Describe("NNCP with maxUnavailable", func() {
By("Reset desired state at all nodes")
resetDesiredStateForNodes()
})
It("[parallel] should be progressing on multiple nodes", func() {
It("should be progressing on multiple nodes", func() {
Eventually(func() int {
return enactmentsInProgress(TestPolicy)
}, duration, interval).Should(BeNumerically("==", maxUnavailableNodes()))
waitForAvailablePolicy(TestPolicy)
})
It("[parallel] should never exceed maxUnavailable nodes", func() {
It("should never exceed maxUnavailable nodes", func() {
Consistently(func() int {
return enactmentsInProgress(TestPolicy)
}, duration, interval).Should(BeNumerically("<=", maxUnavailableNodes()))
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/handler/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var _ = Describe("Validation Admission Webhook", func() {
updateDesiredStateAndWait(linuxBrAbsent(bridge1))
resetDesiredStateForNodes()
})
It("Should deny updating sequentially rolled out policy when it's in progress", func() {
It("Should deny updating rolled out policy when it's in progress", func() {
By(fmt.Sprintf("Updating the policy %s", TestPolicy))
err := retry.RetryOnConflict(retry.DefaultRetry, func() error {
return setDesiredStateWithPolicyAndNodeSelector(TestPolicy, linuxBrUpNoPorts(bridge1), map[string]string{})
Expand Down

0 comments on commit bffe21e

Please sign in to comment.