✨ OPRUN-4232: Refactor e2e tests to support feature-gate aware skipping#2293
Conversation
Consolidates experimental-e2e tests into the main e2e test suite and implements automatic feature-gate detection from OLM deployments. Changes: - Merges experimental-e2e tests into test/e2e directory - Adds new feature_gates.go helper that queries OLM deployments to detect enabled/disabled feature gates - Updates tests to skip automatically when required feature gates are disabled (SingleOwnNamespaceInstallSupport, WebhookProviderCertManager) - Removes separate experimental-e2e Makefile target - Falls back to programmatic defaults when feature gates aren't explicitly configured This allows the test suite to adapt to different cluster configurations without manual test selection. Post-commit improvements (with AI assistance): - Fixed typo: processFeatuteGate -> processFeatureGate - Added sync.Once for thread-safe feature gate caching - Improved error messages for feature gate validation - Added package and function documentation Signed-off-by: Todd Short <tshort@redhat.com> Assisted-by: Claude code
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2293 +/- ##
==========================================
- Coverage 71.28% 71.25% -0.03%
==========================================
Files 90 90
Lines 7003 7003
==========================================
- Hits 4992 4990 -2
- Misses 1599 1600 +1
- Partials 412 413 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| } | ||
| } | ||
|
|
||
| func gatherFeatureGates(t *testing.T) { |
There was a problem hiding this comment.
Nit: I would reorder these functions so they are in the order they're used so a human reading the code doesn't have to scroll to the bottom and then work their way back up.
Current order:
- processFeatureGate
- gatherFeatureGatesFromDeployment
- gatherFeatureGates
Suggested Order:
- gatherFeatureGates
- gatherFeatureGatesFromDeployment
- processFeatureGate
There was a problem hiding this comment.
But you can tell I'm a C programmer this way!
(But yeah, I hear you)
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tmshort 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 |
8bda126
into
operator-framework:main
Consolidates experimental-e2e tests into the main e2e test suite and implements automatic feature-gate detection from OLM deployments.
Changes:
This allows the test suite to adapt to different cluster configurations without manual test selection.
Post-commit improvements (with AI assistance):
Assisted-by: Claude code
Description
Reviewer Checklist