Skip to content

NETOBSERV-2748: YAML lint bug fix#80672

Merged
openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
Amoghrd:yamllint-fix
Jun 18, 2026
Merged

NETOBSERV-2748: YAML lint bug fix#80672
openshift-merge-bot[bot] merged 2 commits into
openshift:mainfrom
Amoghrd:yamllint-fix

Conversation

@Amoghrd

@Amoghrd Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

This PR updates NetObserv operator CI configuration to fix a YAML lint/formatting issue and to increase suite-level timeouts for Ginkgo-based e2e runs, improving reliability and preventing CI failures/timeouts.

  • Fix YAML lint/format job setup for e2etests-lint-fmt (ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml)

    • Ensures the yamlfmt binary can be found at runtime by prepending $GOPATH/bin to PATH before installation and execution.
    • Runs yamlfmt -lint across testdata/**/*.yaml and *.yml, preserving fail-fast behavior (ERROR: YAML lint failed for <file>) and emitting a final yamllint SUCCESS message.
  • Increase e2e job/pod timeout budget (ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml)

    • Sets an explicit timeout: 8h0m0s for the e2etest job to align with suite-level execution needs.
  • Align Ginkgo suite timeout configuration (ci-operator/step-registry/netobserv/ginkgo-tests/netobserv-ginkgo-tests-ref.yaml)

    • Raises the netobserv-ginkgo-tests step timeout from 60m to 8h.
    • Updates GINKGO_TIMEOUT default from 50m to 8h and revises its documentation to clarify it controls suite execution timeout (not per-test-case timeouts).

Impact: NetObserv operator main-branch CI checks for YAML linting and subsequent e2e Ginkgo runs should be more stable due to correct lint tool discovery and more appropriate suite-level timeout settings.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 17, 2026
@openshift-ci-robot

openshift-ci-robot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@Amoghrd: This pull request references NETOBSERV-2748 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 1acaaf6c-523e-411d-b0e7-0ca787012364

📥 Commits

Reviewing files that changed from the base of the PR and between e4b5a2e and d5d7b08.

📒 Files selected for processing (1)
  • ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml

Walkthrough

The PR extends test execution timeouts in the NetObserv operator CI pipeline from 50–60 minutes to 8 hours and improves the YAML lint tooling by prepending $GOPATH/bin to PATH so Go-installed tools are accessible at runtime.

Changes

Test Infrastructure Updates

Layer / File(s) Summary
YAML lint/fmt PATH configuration
ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml
Prepends $GOPATH/bin to PATH in the e2etests-lint-fmt job script so Go-installed tools like yamlfmt are found and executable at runtime.
Test timeout extensions to 8h
ci-operator/step-registry/netobserv/ginkgo-tests/netobserv-ginkgo-tests-ref.yaml, ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml
The netobserv-ginkgo-tests step timeout increases from 60m to 8h. The e2etest job timeout is set to 8h0m0s. The GINKGO_TIMEOUT environment variable default increases from 50m to 8h with updated documentation describing it as the full ginkgo test suite timeout.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • openshift/release#80004: Modifies the same CI job definitions for e2etests-lint-fmt and e2etest in the NetObserv operator config, potentially overlapping on timeout and job configuration changes.

Suggested labels

lgtm, approved, rehearsals-ack

Suggested reviewers

  • jotak
  • jpinsonneau
🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title references a YAML lint bug fix, but the actual changes primarily involve timeout configurations (8h for e2etests and ginkgo tests) rather than a YAML lint bug fix. Update the title to accurately reflect the main changes, such as 'NETOBSERV-2748: Increase e2etests and ginkgo test timeouts to 8 hours' or similar.
✅ Passed checks (14 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed This PR only modifies CI/CD configuration YAML files (timeouts and environment variables), not Ginkgo test code. The check is not applicable to this PR as it contains no test title definitions.
Test Structure And Quality ✅ Passed This PR modifies only CI configuration files (YAML files in ci-operator/) and does not modify any Ginkgo test code. The check is not applicable to this PR.
Microshift Test Compatibility ✅ Passed PR only modifies CI configuration files (timeout settings and YAML linting); no new Ginkgo e2e tests are added, so MicroShift compatibility check does not apply.
Single Node Openshift (Sno) Test Compatibility ✅ Passed No new Ginkgo e2e tests are added in this PR. Changes are only to CI configuration files (timeout adjustments), not test source code.
Topology-Aware Scheduling Compatibility ✅ Passed The PR modifies only CI/CD configuration files (ci-operator test configs and step registry definitions) to adjust test timeouts. No deployment manifests, operator code, or scheduling constraints ar...
Ote Binary Stdout Contract ✅ Passed PR contains only configuration changes (timeout values, env vars) in YAML files; no code changes that would add stdout writes violating OTE Binary Stdout Contract.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR contains only CI configuration changes to timeout values and yamlfmt linting; no new Ginkgo test code with It/Describe/Context/When patterns is added, so the IPv6 and disconnected network compat...
No-Weak-Crypto ✅ Passed No weak cryptographic algorithms (MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB), custom crypto implementations, or non-constant-time secret comparisons found. Changes are CI/CD configuration only.
Container-Privileges ✅ Passed The PR modifies CI/CD configuration files only (netobserv-netobserv-operator-main.yaml and netobserv-ginkgo-tests-ref.yaml), not Kubernetes container manifests. No privileged, hostPID, hostNetwork,...
No-Sensitive-Data-In-Logs ✅ Passed PR changes only modify CI/CD configuration (PATH, timeouts, tool installation, documentation). No new logging exposing passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer...

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Amoghrd

Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

/assign @memodi

@Amoghrd

Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-netobserv-netobserv-operator-main-e2etests-lint-fmt

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@Amoghrd: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@Amoghrd

Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-netobserv-netobserv-operator-main-e2etests-lint-fmt

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@Amoghrd: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@Amoghrd

Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-netobserv-netobserv-operator-main-e2etests-lint-fmt

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@Amoghrd: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@memodi

memodi commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@Amoghrd in this PR could you please update GINKGO_TIMEOUT to be 8 hours , I mistook it for case timeout, but it's actually a SUITE timeout, we should update the var name and description for it. That's the reason why you see the e2etest is failing on PR. We should also update the pod timeout to be 6-8 hours https://github.com/openshift/release/blob/main/ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml#L215

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/step-registry/netobserv/ginkgo-tests/netobserv-ginkgo-tests-ref.yaml`:
- Around line 21-23: The documentation for the GINKGO_TIMEOUT parameter needs to
be more explicit about its scope. Update the documentation field value from the
current generic "Timeout for ginkgo test execution." to clearly specify that
this is a suite-level timeout (meaning the entire test suite must complete
within this duration, not individual test cases). This will prevent
misinterpretation of how the timeout applies when the parameter is consumed.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 3dcefce2-e166-4cfc-913c-058a49acafe8

📥 Commits

Reviewing files that changed from the base of the PR and between e9ebe76 and b68944a.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/netobserv/netobserv-operator/netobserv-netobserv-operator-main-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (2)
  • ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml
  • ci-operator/step-registry/netobserv/ginkgo-tests/netobserv-ginkgo-tests-ref.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/config/netobserv/netobserv-operator/netobserv-netobserv-operator-main.yaml

Comment thread ci-operator/step-registry/netobserv/ginkgo-tests/netobserv-ginkgo-tests-ref.yaml Outdated
@Amoghrd

Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-netobserv-netobserv-operator-main-e2etests-lint-fmt

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@Amoghrd: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@Amoghrd, pj-rehearse: unable prepare a candidate for rehearsal; rehearsals will not be run. This could be due to a branch that needs to be rebased. ERROR:

couldn't checkout base SHA 906adc13b1b33e4a580ce1f0af714e63913c5854: error checking out "906adc13b1b33e4a580ce1f0af714e63913c5854": exit status 128 fatal: unable to read tree (906adc13b1b33e4a580ce1f0af714e63913c5854)

@Amoghrd

Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-netobserv-netobserv-operator-main-e2etests-lint-fmt

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@Amoghrd: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@Amoghrd

Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

YAML lint ran in job
Reverting order

@Amoghrd Amoghrd requested a review from memodi June 17, 2026 20:10
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@Amoghrd: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-netobserv-netobserv-operator-main-e2etest netobserv/netobserv-operator presubmit Ci-operator config changed
pull-ci-netobserv-netobserv-operator-main-e2etests-lint-fmt netobserv/netobserv-operator presubmit Ci-operator config changed
Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@memodi memodi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

thanks @Amoghrd

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 17, 2026
@Amoghrd

Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

@jotak @OlivierCazade Could you approve as well? TIA!

@Amoghrd

Amoghrd commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse ack

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@Amoghrd: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Jun 17, 2026
@jotak

jotak commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci

openshift-ci Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Amoghrd, jotak, memodi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 18, 2026
@openshift-ci

openshift-ci Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

@Amoghrd: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/rehearse/netobserv/netobserv-operator/main/e2etests-lint-fmt d6888a1 link unknown /pj-rehearse pull-ci-netobserv-netobserv-operator-main-e2etests-lint-fmt

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot Bot merged commit 8464198 into openshift:main Jun 18, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants