NO-JIRA: job-run-aggregator: remove relaxing in disruption aggregation#4899
NO-JIRA: job-run-aggregator: remove relaxing in disruption aggregation#4899petr-muller wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@petr-muller: This pull request explicitly references no jira issue. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
WalkthroughRemoved a one-off decrement that tightened required pass counts when equality held; pity-factor relaxation remains. Tests updated to reflect the new boundary behavior where equality no longer reduces the requiredNumberOfPasses by one. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 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)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Comment |
|
/hold Needs #4894 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petr-muller 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 |
|
/uncc @danilo-gemoli @droslean |
There was a problem hiding this comment.
Pull request overview
This pull request removes the simple -1 relaxation for disruption tests and replaces it with a more sophisticated pityFactor function that allows up to 2 failures regardless of the strict pass requirement. The change affects both disruption percentile checks and regular test failure checks.
Changes:
- Replaced the
-1adjustment with apityFactorfunction that allows up to 2 failures - Updated test cases to reflect new expected pass requirements (7 instead of 6, 5 instead of 4)
- Added comprehensive test coverage for the pity factor behavior
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| pkg/jobrunaggregator/jobrunaggregatoranalyzer/pass_fail.go | Removed -1 relaxation, added pityFactor function, integrated pity factor into disruption and regular checks, updated summary messages |
| pkg/jobrunaggregator/jobrunaggregatoranalyzer/pass_fail_test.go | Updated existing test expectations, added comprehensive tests for CheckFailedWithPityFactor and innerCheckPercentileDisruptionWithPityFactor |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/test all |
I do not _entirely_ understand why the relaxation for disruption tests exists here but the TODO exists this may be worth tightening. The `pityFactor` will relax the threshold in some cases (high attempts, high pass rate) so the additional relaxation would only apply in the remaining cases.
f180675 to
ebabeb6
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Scheduling required tests: |
|
@petr-muller: The following tests failed, say
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. |
I do not entirely understand why the relaxation for disruption tests exists here but the TODO exists this may be worth tightening. The
pityFactorwill relax the threshold in some cases (high attempts, high pass rate) so the additional relaxation would only apply in the remaining cases.Summary by CodeRabbit
Bug Fixes