From e4b5a2eda7b58803ce06a2c29fe58912e90dccad Mon Sep 17 00:00:00 2001 From: Amoghrd Date: Wed, 17 Jun 2026 11:34:09 -0400 Subject: [PATCH] GINKGO timeout --- .../netobserv-netobserv-operator-main.yaml | 22 ++++++++++--------- ...rv-netobserv-operator-main-presubmits.yaml | 1 + .../netobserv-ginkgo-tests-ref.yaml | 6 ++--- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml b/ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml index 91f11d546defb..2b5f341c87e0c 100644 --- a/ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml +++ b/ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml @@ -187,6 +187,17 @@ tests: cd integration-tests/backend/ go mod tidy make prereqs + echo -e "\n############### yamllint ####################" + export PATH=$GOPATH/bin:$PATH + go install github.com/google/yamlfmt/cmd/yamlfmt@latest + find testdata/ -name '*.yaml' -o -name '*.yml' | while read -r f; do + if ! yamlfmt -lint "$f" 2>&1; then + echo "ERROR: YAML lint failed for $f" + exit 1 + fi + done + echo "yamllint SUCCESS" + make lint echo -e "\n############### gofmt ####################" bad_gofmt_files=$(gofmt -s -l ./) @@ -199,16 +210,6 @@ tests: else echo "gofmt SUCCESS" fi - - echo -e "\n############### yamllint ####################" - go install github.com/google/yamlfmt/cmd/yamlfmt@latest - find testdata/ -name '*.yaml' -o -name '*.yml' | while read -r f; do - if ! yamlfmt -lint "$f" 2>&1; then - echo "ERROR: YAML lint failed for $f" - exit 1 - fi - done - echo "yamllint SUCCESS" container: from: src run_if_changed: integration-tests/backend/.*\.(yaml|go) @@ -247,6 +248,7 @@ tests: cpu: 100m - ref: netobserv-ginkgo-tests workflow: optional-operators-ci-operator-sdk-aws + timeout: 8h0m0s zz_generated_metadata: branch: main org: netobserv diff --git a/ci-operator/jobs/netobserv/netobserv-operator/netobserv-netobserv-operator-main-presubmits.yaml b/ci-operator/jobs/netobserv/netobserv-operator/netobserv-netobserv-operator-main-presubmits.yaml index 59c8c13938839..e32bbfb45d9c8 100644 --- a/ci-operator/jobs/netobserv/netobserv-operator/netobserv-netobserv-operator-main-presubmits.yaml +++ b/ci-operator/jobs/netobserv/netobserv-operator/netobserv-netobserv-operator-main-presubmits.yaml @@ -159,6 +159,7 @@ presubmits: - .ci-operator.yaml - Dockerfile - integration-tests/backend/Dockerfile + timeout: 8h0m0s labels: ci-operator.openshift.io/cloud: aws ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws diff --git a/ci-operator/step-registry/netobserv/ginkgo-tests/netobserv-ginkgo-tests-ref.yaml b/ci-operator/step-registry/netobserv/ginkgo-tests/netobserv-ginkgo-tests-ref.yaml index f81f4daf79a93..d1d4ca21bbf74 100644 --- a/ci-operator/step-registry/netobserv/ginkgo-tests/netobserv-ginkgo-tests-ref.yaml +++ b/ci-operator/step-registry/netobserv/ginkgo-tests/netobserv-ginkgo-tests-ref.yaml @@ -8,7 +8,7 @@ ref: requests: cpu: 100m memory: 256Mi - timeout: 60m + timeout: 8h env: - name: GINKGO_LABEL_FILTER default: "" @@ -19,8 +19,8 @@ ref: Regex to filter tests by source file path. When set, only tests defined in matching files will run. Typically computed from PR changed files. - name: GINKGO_TIMEOUT - default: "50m" - documentation: Timeout for ginkgo test execution. + default: "8h" + documentation: Timeout for the full ginkgo test suite execution. - name: TEST_RUN_MODE default: "periodic" documentation: |-