Test additional include list#2786
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Caution Review failedAn error occurred during the review process. Please try again later. 📝 WalkthroughWalkthroughAdded e2e test infrastructure for validating FlowCollector processor metrics configuration. Introduced a Prometheus metrics query helper that extracts netobserv flow metric names, and a table-driven test validating metric exposure across four scenarios combining ChangesProcessor metrics configuration e2e testing
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@integration-tests/backend/test_flowcollector.go`:
- Around line 426-429: Remove the unused variable by deleting the declaration
and population of expectedSet in TestFlowCollector (the block that starts with
"expectedSet := make(map[string]bool)" and the following for loop over
t.ExpectedMetrics); if deduplication or existence checks are not needed
elsewhere, simply remove both the map allocation and the loop to eliminate the
unused variable and allow the file to compile.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 55ef3b58-2b7a-4be0-88a6-64a7a3ef7cf1
📒 Files selected for processing (2)
integration-tests/backend/metrics.gointegration-tests/backend/test_flowcollector.go
|
/assign @memodi |
Description
Adding testcase OCP-89198 for appending new metrics to the default list of metrics feature.
Checklist
Summary by CodeRabbit
includeListandadditionalIncludeListoptions, ensuring correct metrics are exposed across default and custom configuration scenarios.