This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 94ab6380f78363e8eae20a497302bea5f44d0a40 Author: phantomjinx <[email protected]> AuthorDate: Fri Dec 10 12:23:00 2021 +0000 Flag metric duration tests as problematic due to random failures on OCP4 --- e2e/common/operator_metrics_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/e2e/common/operator_metrics_test.go b/e2e/common/operator_metrics_test.go index a3f12d1..e1944ae 100644 --- a/e2e/common/operator_metrics_test.go +++ b/e2e/common/operator_metrics_test.go @@ -26,6 +26,7 @@ import ( "bytes" "fmt" "math" + "os" "testing" "time" @@ -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" { + t.Skip("WARNING: Test marked as problematic ... skipping") + } + t.Run("reconciliation duration metric", func(t *testing.T) { RegisterTestingT(t) Expect(metrics).To(HaveKey("camel_k_reconciliation_duration_seconds"))
