astefanutti commented on a change in pull request #2711:
URL: https://github.com/apache/camel-k/pull/2711#discussion_r792403216



##########
File path: e2e/common/operator_metrics_test.go
##########
@@ -171,6 +172,17 @@ func TestMetrics(t *testing.T) {
                        ))
                })
 
+               /*
+                * TODO
+                * The duration_seconds tests keep randomly failing on OCP4 
with slightly different duration values
+                * May need to lessen the strict checking parameters
+                *
+                * Adding CAMEL_K_TEST_SKIP_PROBLEMATIC env var for the moment.
+                */
+               if os.Getenv("CAMEL_K_TEST_SKIP_PROBLEMATIC") == "true" {

Review comment:
       Ah, I checked the Kubernetes workflow logs and saw:
   ```
   === Problematic Tests (7) ===
     ./e2e/common/cli/dev_mode_test.go::TestRunDevMode
     ./e2e/common/cli/dev_mode_test.go::TestRunDevMode
     ./e2e/common/operator_metrics_test.go::TestMetrics
     ./e2e/common/operator_metrics_test.go::TestMetrics
     ./e2e/common/traits/health_test.go::TestHealthTrait
     ./e2e/common/traits/toleration_test.go::TestTolerationTrait
     ./e2e/common/traits/route_test.go::TestRunRoutes
   ===
   ```
   I assumed the tests got skipped as a result, but they are indeed executed 
later on. Maybe the problematic tests listing could be skipped when 
`CAMEL_K_TEST_SKIP_PROBLEMATIC` is not truthy.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to