fix: cluster sanity does not need to execute when operator or cluster health is run#1184
Conversation
|
The following are automatically added/executed:
Available user actions:
Supported labels{'/hold', '/lgtm', '/build-push-pr-image', '/wip', '/cherry-pick', '/verified'} |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a guard in the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Security findings (actionable)
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@tests/conftest.py`:
- Around line 680-683: Replace the fragile substring check of markexpr
(request.config.getoption(name="markexpr")) with an inspection of the collected
test items' actual markers: iterate request.session.items and for each test item
use item.get_closest_marker or item.iter_markers to detect presence of the
markers "cluster_health" or "operator_health"; if any collected item has those
markers, call LOGGER.info(...) and return. Update the block that currently
references markexpr to perform this collected-items marker scan instead so
path-based selection and negated expressions are handled correctly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: f1e7cfee-29d6-44f3-95e6-73bbe12b17f8
📒 Files selected for processing (1)
tests/conftest.py
|
Status of building tag latest: success. |
|
/cherry-pick 3.4ea1 |
|
Cherry pick action created PR #1185 successfully 🎉! |
|
/cherry-pick 3.3 |
|
Cherry pick action created PR #1186 successfully 🎉! |
Pull Request
Summary
No need to run cluster sanity when we are running operator or cluster sanity - they are the same exact checks.
Related Issues
How it has been tested
Additional Requirements
Summary by CodeRabbit