test: add verification for spdx licenses#1225
Conversation
|
The following are automatically added/executed:
Available user actions:
Supported labels{'/wip', '/cherry-pick', '/hold', '/build-push-pr-image', '/lgtm', '/verified'} |
Signed-off-by: fege <fmosca@redhat.com>
|
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 (3)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughUpdated security guidance in CONSTITUTION.md; added a BSD 3-Clause license filter test case for MCP server search; removed an xfail marker from an ordering test so it now runs as a normal test. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 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)
📝 Coding Plan
Comment Tip You can get early access to new features in CodeRabbit.Enable the |
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/model_registry/mcp_servers/search/test_filtering.py`:
- Line 27: The test case uses the wrong license string so the filter returns
zero results; update the pytest.param entry in test_filtering.py (the parameter
with id="by_license" and target "file-manager") to use license='BSD-3-Clause'
(hyphens) instead of license='BSD 3-Clause' so it matches the fixture, i.e.,
adjust the pytest.param argument passed to the filtering test to the correct
license format.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 7cc98d31-bde4-42b1-96b6-65251a4bee8f
📒 Files selected for processing (3)
CONSTITUTION.mdtests/model_registry/mcp_servers/search/test_filtering.pytests/model_registry/mcp_servers/search/test_ordering.py
💤 Files with no reviewable changes (1)
- tests/model_registry/mcp_servers/search/test_ordering.py
|
Status of building tag latest: success. |
Signed-off-by: fege <fmosca@redhat.com> Co-authored-by: Debarati Basu-Nag <dbasunag@redhat.com> Signed-off-by: Shehan Saleem <ssaleem@redhat.com>
Pull Request
Summary
Related Issues
How it has been tested
Additional Requirements
Summary by CodeRabbit
Documentation
Tests