OCPBUGS-122255: tests-extension: fix PolarionID:68521 and Polarion:27680 - #1376
perdasilva wants to merge 2 commits into
Conversation
The redhat-operators catalog pod's startupProbe.failureThreshold was restored from 10 back to 15 by #3876 (commit 16f8312), returning the registry-server startup budget from 100s to 150s. The QE test still asserted the intermediate value of 10, causing it to fail with "expected content 10 not found". Update the assertion to 15 to match the current product behavior. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe package lookup helper now treats missing package manifests as a normal nonexistence result and propagates other errors. The ChangesCatalog and package handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The package lookup correctly handles absent manifests, and the probe expectation matches the restored product value. 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: perdasilva 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 |
ClusterPackageExists returned a non-nil error when the packagemanifest did not exist (oc get exits 1 on NotFound). Callers that assert on the error - e.g. PolarionID:27680, which intends to g.Skip when odf-prometheus-operator is absent from redhat-operators - fail before reaching the skip check. A missing packagemanifest is a legitimate "does not exist" result rather than a query error. Return (false, nil) when the combined output reports NotFound, and only surface real errors otherwise. The other callers in olmv0_defaultoption.go already discard the error and are unaffected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
@perdasilva: This pull request references Jira Issue OCPBUGS-122255, 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. |
|
@perdasilva: This pull request references Jira Issue OCPBUGS-122255, 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. |
|
/payload-aggregate periodic-ci-openshift-operator-framework-olm-release-5.1-periodics-e2e-aws-ovn-extended-f1 10 |
|
@perdasilva: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/47ce5ac0-b0f8-11f1-94b6-9f49072cc97a-0 |
|
/hold for aggregate jobs |
|
/payload-aggregate periodic-ci-openshift-operator-framework-olm-release-5.1-periodics-e2e-aws-ovn-extended-f1 10 |
|
@perdasilva: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/2a81c1b0-b0fc-11f1-88b3-18a5b8ed27f7-0 |
|
/payload-aggregate periodic-ci-openshift-operator-framework-olm-release-5.1-periodics-e2e-azure-ovn-techpreview-extended-f1 10 |
|
@perdasilva: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/0a878a40-b0ff-11f1-88dc-aba9fade0369-0 |
|
/test ci/prow/e2e-upgrade |
|
/test e2e-upgrade |
|
/test e2e-gcp-own |
|
/test e2e-aws-olmv0-ext |
|
@perdasilva: all tests passed! 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. |
Summary
Two independent fixes to the OLM v0 QE test extension, both addressing tests that fail against current catalog/product behavior.
1. PolarionID:68521 — startupProbe failureThreshold assertion (10 → 15)
The test
PolarionID:68521-Check failureThreshold of redhat-operators catalogfailed with:Root cause: The catalog pod's
StartupProbe.FailureThresholdwas restored from10back to15, returning the registry-server startup budget from 100s to 150s (the 100s budget was too tight for large CatalogSources — OCPBUGS-78095). The product value inreconciler.gois now15, but the QE test still asserted10.Origin of the change:
aca76a50)16f83128cvia OCPBUGS-23954,OCPBUGS-78095: Synchronize From Upstream Repositories #1355 (synchronize-upstream)Fix: Update the assertion in
tests-extension/test/qe/specs/olmv0_nonallns.goto expect15.2. ClusterPackageExists — treat NotFound as absent, not an error
The test
PolarionID:27680-OLM Bundle support for Prometheus Typesfailed with:Root cause:
odf-prometheus-operatoris not present in theredhat-operatorscatalog on the cluster under test. The test is written tog.Skipin that case, butClusterPackageExistsreturned a non-nil error on NotFound (oc getexits 1). Since the test assertso.Expect(err).NotTo(o.HaveOccurred())before the skip check, it failed instead of skipping.Origin of the regression: commit
b51eec3ac("tests-extension: replace etcd usage in 32613/47181 and update 27680 Prometheus flow"), merged via #1241, which rewrote test 27680 to use the realredhat-operatorscatalog +odf-prometheus-operatorand added theo.Expect(err)assertion that is incompatible with howClusterPackageExistsreports NotFound.Fix:
ClusterPackageExistsnow returns(false, nil)when the packagemanifest is NotFound, and only surfaces genuine query errors. A missing packagemanifest is a legitimate "does not exist" result. The other callers inolmv0_defaultoption.goalready discard the error and are unaffected.Verification
make buildpassesmake update-metadataproduces no changes (test titles/labels unchanged)🤖 Generated with Claude Code