From 6b62a60b0eb2a5b3466f1fb1f1b676f18efdf7c5 Mon Sep 17 00:00:00 2001 From: Dheeraj Date: Fri, 12 Jan 2024 11:48:38 +0530 Subject: [PATCH] fix(RHTAPBUGS-1051): skip the ginkgo nodes that are re-running NBE tests (#991) Problem: * Currently, our nbe.go test suite re-runs an integration test on the Snapshot within an "ephemeral namespace". * This test coverage was added as part of Integration service's re-run feature. * However, this new addition is causing failures specifically on the CI of the integration-service repo. * Why? Because Integration service uses smaller cluster pool to run its CI jobs. Solution: * Just to be clear, this is just what I believe is causing the problem. * In order to confirm it, I'm confirming the related test nodes, and monitor the CI jobs to see if it made any difference. Signed-off-by: Dheeraj --- .../integration-service/namespace-backed-environments.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/integration-service/namespace-backed-environments.go b/tests/integration-service/namespace-backed-environments.go index f691ee6ce..40c1cce03 100644 --- a/tests/integration-service/namespace-backed-environments.go +++ b/tests/integration-service/namespace-backed-environments.go @@ -263,13 +263,15 @@ var _ = framework.IntegrationServiceSuiteDescribe("Namespace-backed Environment }) }) - It("creates a new IntegrationTestScenario with ephemeral environment", func() { + // skipped due to RHTAPBUGS-1051 + It("creates a new IntegrationTestScenario with ephemeral environment", Pending, func() { var err error newIntegrationTestScenario, err = f.AsKubeAdmin.IntegrationController.CreateIntegrationTestScenarioWithEnvironment(applicationName, testNamespace, gitURL, revisionForNBE, pathInRepoForNBE, userPickedEnvironment) Expect(err).ShouldNot(HaveOccurred()) }) - It("updates the Snapshot with the re-run label for the new scenario", FlakeAttempts(3), func() { + // skipped due to RHTAPBUGS-1051 + It("updates the Snapshot with the re-run label for the new scenario", Pending, FlakeAttempts(3), func() { updatedSnapshot := snapshot.DeepCopy() err := metadata.AddLabels(updatedSnapshot, map[string]string{snapshotRerunLabel: newIntegrationTestScenario.Name}) Expect(err).ShouldNot(HaveOccurred()) @@ -277,7 +279,8 @@ var _ = framework.IntegrationServiceSuiteDescribe("Namespace-backed Environment Expect(metadata.GetLabelsWithPrefix(updatedSnapshot, snapshotRerunLabel)).NotTo(BeEmpty()) }) - When("An snapshot is updated with a re-run label for a given scenario", func() { + // skipped due to RHTAPBUGS-1051 + When("An snapshot is updated with a re-run label for a given scenario", Pending, func() { It("checks if the re-run label was removed from the Snapshot", func() { Eventually(func() error { snapshot, err = f.AsKubeAdmin.IntegrationController.GetSnapshot(snapshot.Name, "", "", testNamespace)