Skip to content

OCPBUGS-140722: fix(e2e/v2): skip event TTL test on control planes before 5.1 - #10291

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
jparrill:OCPBUGS-140722
Nov 13, 2026
Merged

openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
jparrill:OCPBUGS-140722

Conversation

@jparrill

@jparrill jparrill commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

The v2 Event TTL test fails the required e2e-v2-aws presubmit on release-5.0 and release-4.22 PRs. Those jobs run the test image built from main (hypershift/hypershift-tests:latest) against a hosted control plane whose CPO comes from the release branch under test. Before 5.1 the CPO hard-codes --event-ttl to 3h and has no eventTTLMinutes field, so:

  • the default assertion sees 3h instead of 180m, and
  • the configured value can never propagate, making the DeferCleanup wait the full 10 minutes before failing.

This is a test defect: eventTTLMinutes only exists from 5.1. Skip the test on control planes older than 5.1, before registering the DeferCleanup, while keeping the existing CRD-schema skip.

Additionally, the default assertions now compare parsed time.Duration values so equivalent spellings (3h vs 180m) do not spuriously fail, covered by a focused unit test. The propagation assertion is unchanged.

Which issue(s) this PR fixes:

Fixes https://redhat.atlassian.net/browse/OCPBUGS-140722

Special notes for your reviewer:

  • Only test code and the test-e2ev2-unit Makefile regex change; no product code.
  • TestEventTTLMatches is added to the make test-e2ev2-unit run list so it executes in make test.

Verification

  • go test -race -tags=e2ev2 -count=1 -run '^(...|TestEventTTLMatches)$' ./test/e2e/v2/tests
  • go vet -tags integration,e2e,reqserving,e2ev2,backuprestore,envtest ./test/e2e/v2/...

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

Summary by CodeRabbit

  • Tests
    • Expanded the selected end-to-end test suite to include event TTL checks.
    • Event TTL checks now run only for clusters on version 5.1 or later and accept equivalent duration formats when validating defaults.
    • Added unit coverage for identical and equivalent durations, differing durations, and invalid duration values.
    • The checks also verify the default TTL during setup and cleanup.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification

This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

Use /test ? to list jobs and /pipeline help for commands.

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Nov 12, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@jparrill: This pull request references Jira Issue OCPBUGS-140722, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.1.0) matches configured target version for branch (5.1.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

What this PR does / why we need it:

The v2 Event TTL test fails the required e2e-v2-aws presubmit on release-5.0 and release-4.22 PRs. Those jobs run the test image built from main (hypershift/hypershift-tests:latest) against a hosted control plane whose CPO comes from the release branch under test. Before 5.1 the CPO hard-codes --event-ttl to 3h and has no eventTTLMinutes field, so:

  • the default assertion sees 3h instead of 180m, and
  • the configured value can never propagate, making the DeferCleanup wait the full 10 minutes before failing.

This is a test defect: eventTTLMinutes only exists from 5.1. Skip the test on control planes older than 5.1, before registering the DeferCleanup, while keeping the existing CRD-schema skip.

Additionally, the default assertions now compare parsed time.Duration values so equivalent spellings (3h vs 180m) do not spuriously fail, covered by a focused unit test. The propagation assertion is unchanged.

Which issue(s) this PR fixes:

Fixes https://redhat.atlassian.net/browse/OCPBUGS-140722

Special notes for your reviewer:

  • Only test code and the test-e2ev2-unit Makefile regex change; no product code.
  • TestEventTTLMatches is added to the make test-e2ev2-unit run list so it executes in make test.

Verification

  • go test -race -tags=e2ev2 -count=1 -run '^(...|TestEventTTLMatches)$' ./test/e2e/v2/tests
  • go vet -tags integration,e2e,reqserving,e2ev2,backuprestore,envtest ./test/e2e/v2/...

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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 Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review.

Walkthrough

The event TTL test now compares values as parsed Go durations, so equivalent duration strings match. It skips clusters below version 5.1. A new unit test covers matching, differing, and invalid duration values. The test-e2ev2-unit target includes the new unit test.

Suggested reviewers: mehabhalodiya

Merge Risk: Minimal · previous review 27434

The change makes the event TTL test skip on control planes older than 5.1 and compare TTL values as parsed durations. It affects only test infrastructure, and no merge-blocking risk remains.

Pre-merge checks: Passed 11

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the ticket and says the event TTL e2e test is skipped on control planes before 5.1. The changeset matches this: the test skips clusters below version 5.1, and the default TTL assertion…
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 The PR adds no new Ginkgo titles and changes no existing ones. The diff in hosted_cluster_event_ttl_test.go only adds a tc.SkipIfVersionBelow(v2util.Version51) call, a skip-free helper `eventTTLMa…
Test Structure And Quality Passed The PR changes three files: the Makefile test-e2ev2-unit run list, hosted_cluster_event_ttl_test.go, and a new hosted_cluster_event_ttl_unit_test.go. I checked the diff against the six Test Stru…
Topology-Aware Scheduling Compatibility Passed The check applies when deployment manifests, operator code, or controllers are added or modified. This PR changes only three test-side files: the Makefile test-e2ev2-unit regex, `test/e2e/v2/tests/h…
Ipv6 And Disconnected Network Test Compatibility Passed The check applies to newly added Ginkgo e2e specs (It, Describe, Context, When). This PR adds no new Ginkgo spec containers. The diff, verified with git diff against the review base, changes three f…
No-Weak-Crypto Passed The check forbids weak cryptographic algorithms (MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB), custom crypto implementations, and non-constant-time comparison of secrets or tokens. The PR diff (Makefile,…
Container-Privileges Passed The container-privileges check does not apply to this PR's changes. The PR changes three files: Makefile (test-e2ev2-unit regex), test/e2e/v2/tests/hosted_cluster_event_ttl_test.go (modified), and tes…
No-Sensitive-Data-In-Logs Passed The check looks for logging or error output that exposes passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. I read the full PR diff (Makefile, hosted_cluster_event_tt…
Full details: Title check

Explanation

The title names the ticket and says the event TTL e2e test is skipped on control planes before 5.1. The changeset matches this: the test skips clusters below version 5.1, and the default TTL assertions compare parsed durations. The title is specific and accurate, so it passes. The title uses the ticket key and conventional-commit style, which is acceptable. It does not mention the duration-comparison change or the Makefile update, which is expected for a title covering the main change.

Full details: Stable And Deterministic Test Names

Explanation

The PR adds no new Ginkgo titles and changes no existing ones. The diff in hosted_cluster_event_ttl_test.go only adds a tc.SkipIfVersionBelow(v2util.Version51) call, a skip-free helper eventTTLMatches, and assertion changes. Existing titles in that file, such as Describe("[sig-hypershift][Jira:Hypershift][Feature:EventTTL] Hosted Cluster Event TTL", ...), When("the event TTL is configured on a running HostedCluster", ...), and It("should render the configured value as the kube-apiserver --event-ttl flag", ...), are unchanged, static, and contain no dynamic values, legacy metadata prefixes, or Polarion IDs. The new file hosted_cluster_event_ttl_unit_test.go defines TestEventTTLMatches. Its five table-driven t.Run case names are static strings, such as "When durations are equivalent but spelled differently, it should match". They contain no pod names, timestamps, UUIDs, node names, IPs, or Author:/NonHyperShiftHOST/platform/importance/Polarion tokens. The Makefile change only adds TestEventTTLMatches to a -run regex and does not alter any test title. No test title violates the check.

Full details: Test Structure And Quality

Explanation

The PR changes three files: the Makefile test-e2ev2-unit run list, hosted_cluster_event_ttl_test.go, and a new hosted_cluster_event_ttl_unit_test.go. I checked the diff against the six Test Structure and Quality criteria. 1. Single responsibility: The PR adds no new It() block. The existing It("should render the configured value...") keeps its multi-step body, but this PR does not change that structure. The new TestEventTTLMatches is a plain Go table test. Each subtest checks one behavior: equivalent match, identical match, differing values, and each invalid-input error. 2. Setup and cleanup: The BeforeEach registers a DeferCleanup that restores the captured operatorConfiguration through restoreEventTTLPatch. The new SkipIfVersionBelow(v2util.Version51) runs before the cleanup is registered, so a skipped test does not register cleanup it cannot use. 3. Timeouts: The Eventually calls keep explicit timeouts and polling intervals (10m/10s, 5m/10s). 4. Assertion messages: The changed assertions added messages, such as "expected the default event-ttl %q, got %q". Two newly added Expect/g.Expect(err).NotTo(HaveOccurred()) lines (around lines 185 and 196) have no message. This is a minor gap. Many untouched lines in the same file also lack messages. 5. Consistency: tc.SkipIfVersionBelow(v2util.Version51) follows the same pattern used in karpenter_test.go. The unit test follows the existing table-driven Go test style. 6. Informing: The criterion applies only to newly added It() blocks. This PR adds none, so the criterion does not apply. No criterion produces a FAIL. The only issue is the two message-less assertions, which is a minor quality note.

Full details: Topology-Aware Scheduling Compatibility

Explanation

The check applies when deployment manifests, operator code, or controllers are added or modified. This PR changes only three test-side files: the Makefile test-e2ev2-unit regex, test/e2e/v2/tests/hosted_cluster_event_ttl_test.go (modified), and test/e2e/v2/tests/hosted_cluster_event_ttl_unit_test.go (added). The PR adds a version skip and a duration comparison helper to tests. A search of the full diff for affinity, topology, toleration, nodeSelector, PodDisruptionBudget, maxUnavailable, replicas, spread, control-plane, worker, and arbiter terms returned no matches. No deployment manifests, operator code, or controllers changed, and no scheduling constraints were introduced. The check does not apply, so it passes.

Full details: Ipv6 And Disconnected Network Test Compatibility

Explanation

The check applies to newly added Ginkgo e2e specs (It, Describe, Context, When). This PR adds no new Ginkgo spec containers. The diff, verified with git diff against the review base, changes three files: - Makefile: adds TestEventTTLMatches to the -run regex for test-e2ev2-unit. - test/e2e/v2/tests/hosted_cluster_event_ttl_test.go (modified): adds a tc.SkipIfVersionBelow(v2util.Version51) guard to the existing EventTTLPropagationTest BeforeEach. It also switches the default-TTL assertions to a new eventTTLMatches helper that compares parsed time.Duration values. This is an existing spec, not a new one. - test/e2e/v2/tests/hosted_cluster_event_ttl_unit_test.go (new): a plain testing unit test, not a Ginkgo spec. Its inputs are duration strings such as "3h", "180m", and "not-a-duration". None of the changed code contains IPv4 literals, 127.0.0.1, IP parsing, ParseIP/ParseCIDR, URL host interpolation, IPv4-only network policies, or public-internet, registry, or download connectivity. The existing test's connectivity runs through the hosted cluster's API and CRD, not public endpoints. The check's IPv6 and disconnected-network criteria therefore have no matching change in this PR.

Full details: No-Weak-Crypto

Explanation

The check forbids weak cryptographic algorithms (MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB), custom crypto implementations, and non-constant-time comparison of secrets or tokens. The PR diff (Makefile, hosted_cluster_event_ttl_test.go, and the new hosted_cluster_event_ttl_unit_test.go) adds no cryptographic code. Keyword search over the added lines for md5, sha1, des, rc4, 3des, blowfish, ecb, crypto, hmac, cipher, hash, subtle, and bytes.Equal found no cryptographic usage; the only hit was the substring "des" in the word "ignores" in a comment. The new eventTTLMatches helper parses Go duration strings with time.ParseDuration and compares time.Duration values. The event TTL is a configuration value, not a secret or token, so the constant-time comparison rule does not apply. The version skip and Makefile regex change are unrelated to cryptography. No failure condition is met.

Full details: Container-Privileges

Explanation

The container-privileges check does not apply to this PR's changes. The PR changes three files: Makefile (test-e2ev2-unit regex), test/e2e/v2/tests/hosted_cluster_event_ttl_test.go (modified), and test/e2e/v2/tests/hosted_cluster_event_ttl_unit_test.go (added). None is a container or Kubernetes manifest. A search of all added lines for privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPrivilegeEscalation, runAsUser, runAsNonRoot, securityContext, and capabilities returned no matches. The PR does not add or change any privilege settings. The PR also does not introduce any running-as-root configuration. The PR's skip for control planes older than 5.1 is a test-logic change only.

Full details: No-Sensitive-Data-In-Logs

Explanation

The check looks for logging or error output that exposes passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. I read the full PR diff (Makefile, hosted_cluster_event_ttl_test.go, and the new hosted_cluster_event_ttl_unit_test.go) and searched the added lines for logging and sensitive keywords. The only new output statements are: - fmt.Errorf in eventTTLMatches that prints the event-ttl duration strings ("failed to parse event-ttl %q"). - Gomega Expect/To failure messages in the e2e test that print the default TTL and the observed TTL. - t.Errorf/t.Fatalf in the unit test that print duration literals such as "3h" and "180m". These values are Kubernetes --event-ttl configuration durations. They are not credentials, tokens, PII, session identifiers, hostnames, or customer data. The change adds no passwords, keys, or secrets. The Makefile change only adds a test name to a -run regex. No sensitive data reaches the logs, so the check passes.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: openshift/hypershift
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: debb40b
  • Layers: Repository YAML (base), Central YAML (inherited)
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 5f14b979-5ab3-4336-bd77-a25ac07daafa
Commits

Reviewing files that changed from the base of the PR and between 276f534 and 27434ae.

Files selected for processing: 1

  • test/e2e/v2/tests/hosted_cluster_event_ttl_test.go

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

@openshift-ci
openshift-ci Bot requested review from ironcladlou and muraee November 12, 2026 14:48
@openshift-ci openshift-ci Bot added area/testing Indicates the PR includes changes for e2e testing and removed do-not-merge/needs-area labels Nov 12, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@jparrill: This pull request references Jira Issue OCPBUGS-140722, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.1.0) matches configured target version for branch (5.1.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
Details

In response to this:

What this PR does / why we need it:

The v2 Event TTL test fails the required e2e-v2-aws presubmit on release-5.0 and release-4.22 PRs. Those jobs run the test image built from main (hypershift/hypershift-tests:latest) against a hosted control plane whose CPO comes from the release branch under test. Before 5.1 the CPO hard-codes --event-ttl to 3h and has no eventTTLMinutes field, so:

  • the default assertion sees 3h instead of 180m, and
  • the configured value can never propagate, making the DeferCleanup wait the full 10 minutes before failing.

This is a test defect: eventTTLMinutes only exists from 5.1. Skip the test on control planes older than 5.1, before registering the DeferCleanup, while keeping the existing CRD-schema skip.

Additionally, the default assertions now compare parsed time.Duration values so equivalent spellings (3h vs 180m) do not spuriously fail, covered by a focused unit test. The propagation assertion is unchanged.

Which issue(s) this PR fixes:

Fixes https://redhat.atlassian.net/browse/OCPBUGS-140722

Special notes for your reviewer:

  • Only test code and the test-e2ev2-unit Makefile regex change; no product code.
  • TestEventTTLMatches is added to the make test-e2ev2-unit run list so it executes in make test.

Verification

  • go test -race -tags=e2ev2 -count=1 -run '^(...|TestEventTTLMatches)$' ./test/e2e/v2/tests
  • go vet -tags integration,e2e,reqserving,e2ev2,backuprestore,envtest ./test/e2e/v2/...

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

Summary by CodeRabbit

  • Tests
  • Expanded the selected end-to-end tests to cover event TTL defaults.
  • Default TTL checks now accept equivalent duration formats and report invalid values.
  • Added unit test coverage for matching, differing, and invalid durations.

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.

@redhat-chai-bot

Copy link
Copy Markdown
Contributor

Chai risk assessment for 276f534bf1ce6e9ca44c6a13d1d2ca2b6954ac56 → main

Tier: Low
Assessed: Low
Minimum: Low
Signals: 3 files, +93/-3 lines outside vendored and generated code; no API type changes; no CRD schema changes; full diff read.

Reason: All three changed files are test infrastructure: a Makefile regex adding a unit test name to the run list, an e2e test file adding a version-gate skip and switching from literal string comparison to parsed time.Duration comparison, and a new unit test for the helper. No product code is touched and no runtime behaviour changes. This meets the Low definition (tests only, no impact on product behaviour).

Change it with @redhat-chai-bot /risk-tier <low|moderate|critical>: anyone can raise the tier; lowering it needs two OWNERS approvers and lasts until the next push.

/label chai-risk-assessment/low

@openshift-ci openshift-ci Bot added the chai-risk-assessment/low Chai risk assessment of the latest commit: low (no product behaviour change). label Nov 12, 2026
@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.42%. Comparing base (debb40b) to head (1f17dec).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10291   +/-   ##
=======================================
  Coverage   53.42%   53.42%           
=======================================
  Files         850      850           
  Lines      107416   107416           
=======================================
  Hits        57391    57391           
  Misses      46457    46457           
  Partials     3568     3568           
Flag Coverage Δ
cmd-support 47.68% <ø> (ø)
cpo-hostedcontrolplane 56.37% <ø> (ø)
cpo-other 57.60% <ø> (ø)
hypershift-operator 61.21% <ø> (ø)
other 41.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

… 5.1

The required e2e-v2-aws presubmit on release-5.0 and release-4.22 runs the
test image built from main against a control plane whose CPO hard-codes
--event-ttl to 3h and ignores eventTTLMinutes. Those control planes cannot
propagate the configured value, so the test only times out in DeferCleanup.
Skip below 5.1, the release that introduced the feature.

Also compare parsed durations for the default assertion so equivalent
spellings such as 3h and 180m do not spuriously fail, and cover the
comparison with a unit test.

Assisted-by: LLM
Signed-off-by: Juan Manuel Parrilla Madrid <jparrill@redhat.com>
@ironcladlou

Copy link
Copy Markdown
Contributor

Thanks!

although looking at this test for the first time, I question whether it really needs to be an e2e.... just food for thought

/approve
/lgtm

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

openshift-ci Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ironcladlou

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 Nov 12, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aks-5-0
/test e2e-aws-5-0
/test e2e-aks
/test e2e-aws
/test e2e-aws-upgrade-hypershift-operator
/test e2e-kubevirt-aws-ovn-reduced
/test e2e-v2-aws
/test e2e-v2-azure-self-managed
/test e2e-v2-gke

@redhat-chai-bot

Copy link
Copy Markdown
Contributor

Chai risk assessment for 1f17deca4f39f3f32a2ed67ca50adaaaf7621c9f → main

Tier: Low
Assessed: Low
Minimum: Low
Signals: 3 files, +93/-3 lines outside vendored and generated code; no API type changes; no CRD schema changes; full diff read.

Reason: All three changed files are test infrastructure: (1) a Makefile regex adding a unit-test name to the run list, (2) an e2e test file that adds a version-gate skip for control planes before 5.1 and replaces literal string comparison with parsed time.Duration comparison so equivalent spellings ("3h" vs "180m") no longer spuriously fail, and (3) a new unit test covering the helper. No product code is touched and no runtime behaviour changes. This meets the Low definition (tests only, no impact on product behaviour).

Change it with @redhat-chai-bot /risk-tier <low|moderate|critical>: anyone can raise the tier; lowering it needs two OWNERS approvers and lasts until the next push.

@jparrill

Copy link
Copy Markdown
Contributor Author

/verified by E2E + Unit test passing

No further verification needed.

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Nov 12, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@jparrill: This PR has been marked as verified by E2E + Unit test passing.

Details

In response to this:

/verified by E2E + Unit test passing

No further verification needed.

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.

@cwbotbot

cwbotbot commented Nov 12, 2026 •

Copy link
Copy Markdown

Test Results

e2e-aws

e2e-aks

@jparrill

Copy link
Copy Markdown
Contributor Author

/retest-required

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD debb40b and 2 for PR HEAD 1f17dec in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 8b2704d and 1 for PR HEAD 1f17dec in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD f0df0e3 and 0 for PR HEAD 1f17dec in total

@openshift-ci

openshift-ci Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@jparrill: 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/prow/e2e-kubevirt-aws-ovn-reduced 1f17dec link false /test e2e-kubevirt-aws-ovn-reduced

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 14f75de into openshift:main Nov 13, 2026
49 of 50 checks passed
@openshift-ci-robot

Copy link
Copy Markdown

@jparrill: Jira Issue Verification Checks: Jira Issue OCPBUGS-140722
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-140722 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

Details

In response to this:

What this PR does / why we need it:

The v2 Event TTL test fails the required e2e-v2-aws presubmit on release-5.0 and release-4.22 PRs. Those jobs run the test image built from main (hypershift/hypershift-tests:latest) against a hosted control plane whose CPO comes from the release branch under test. Before 5.1 the CPO hard-codes --event-ttl to 3h and has no eventTTLMinutes field, so:

  • the default assertion sees 3h instead of 180m, and
  • the configured value can never propagate, making the DeferCleanup wait the full 10 minutes before failing.

This is a test defect: eventTTLMinutes only exists from 5.1. Skip the test on control planes older than 5.1, before registering the DeferCleanup, while keeping the existing CRD-schema skip.

Additionally, the default assertions now compare parsed time.Duration values so equivalent spellings (3h vs 180m) do not spuriously fail, covered by a focused unit test. The propagation assertion is unchanged.

Which issue(s) this PR fixes:

Fixes https://redhat.atlassian.net/browse/OCPBUGS-140722

Special notes for your reviewer:

  • Only test code and the test-e2ev2-unit Makefile regex change; no product code.
  • TestEventTTLMatches is added to the make test-e2ev2-unit run list so it executes in make test.

Verification

  • go test -race -tags=e2ev2 -count=1 -run '^(...|TestEventTTLMatches)$' ./test/e2e/v2/tests
  • go vet -tags integration,e2e,reqserving,e2ev2,backuprestore,envtest ./test/e2e/v2/...

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

Summary by CodeRabbit

  • Tests
  • Expanded the selected end-to-end test suite to include event TTL checks.
  • Event TTL checks now run only for clusters on version 5.1 or later and accept equivalent duration formats when validating defaults.
  • Added unit coverage for identical and equivalent durations, differing durations, and invalid duration values.
  • The checks also verify the default TTL during setup and cleanup.

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.

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. area/testing Indicates the PR includes changes for e2e testing chai-risk-assessment/low Chai risk assessment of the latest commit: low (no product behaviour change). jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. 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. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants