Repository navigation
OCPBUGS-140722: fix(e2e/v2): skip event TTL test on control planes before 5.1 - #10291
Conversation
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
@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
The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn 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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@jparrill: This pull request references Jira Issue OCPBUGS-140722, which is valid. 3 validation(s) were run on this bug
DetailsIn 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. |
|
Chai risk assessment for Tier: Low 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 /label chai-risk-assessment/low |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
… 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>
27434ae to
1f17dec
Compare
|
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 |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Scheduling tests matching the |
|
Chai risk assessment for Tier: Low 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 Change it with |
|
/verified by E2E + Unit test passing No further verification needed. |
|
@jparrill: This PR has been marked as verified by DetailsIn 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. |
Test Resultse2e-aws
e2e-aks
|
|
/retest-required |
|
@jparrill: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
14f75de
into
openshift:main
|
@jparrill: Jira Issue Verification Checks: Jira Issue OCPBUGS-140722 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. 🕓 DetailsIn 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. |
What this PR does / why we need it:
The v2 Event TTL test fails the required
e2e-v2-awspresubmit on release-5.0 and release-4.22 PRs. Those jobs run the test image built frommain(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-ttlto3hand has noeventTTLMinutesfield, so:3hinstead of180m, andDeferCleanupwait the full 10 minutes before failing.This is a test defect:
eventTTLMinutesonly exists from 5.1. Skip the test on control planes older than 5.1, before registering theDeferCleanup, while keeping the existing CRD-schema skip.Additionally, the default assertions now compare parsed
time.Durationvalues so equivalent spellings (3hvs180m) 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:
test-e2ev2-unitMakefile regex change; no product code.TestEventTTLMatchesis added to themake test-e2ev2-unitrun list so it executes inmake test.Verification
go test -race -tags=e2ev2 -count=1 -run '^(...|TestEventTTLMatches)$' ./test/e2e/v2/testsgo vet -tags integration,e2e,reqserving,e2ev2,backuprestore,envtest ./test/e2e/v2/...Checklist:
Summary by CodeRabbit