Skip to content

Commit

Permalink
Flag metric duration tests as problematic due to random failures on OCP4
Browse files Browse the repository at this point in the history
  • Loading branch information
phantomjinx committed Dec 13, 2021
1 parent 75c1a86 commit ffbb183
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions e2e/common/operator_metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"bytes"
"fmt"
"math"
"os"
"testing"
"time"

Expand Down Expand Up @@ -170,6 +171,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"))
Expand Down

0 comments on commit ffbb183

Please sign in to comment.