Commit e203b75
authored
Improve CodeRabbit test execution plans for verified PRs (#5018)
##### What this PR does / why we need it:
CodeRabbit test execution plans triggered by the `verified` label were
smoke-centric. For utilities or libs changes, plans often stopped at
`Run smoke tests: False` and omitted `@pytest.mark.gating` tests reached
only through conftest fixtures or teardown (for example HCO golden-image
helpers).
This PR updates the `verified` workflow comment to CodeRabbit, adds
matching `.coderabbit.yaml` path instructions for `utilities/`, `libs/`,
and `tests/`, and aligns `TESTS_ORACLE_PROMPT.md`. Plans should now
include:
- `Run smoke tests` and `Run gating tests`
- A required affected-test list for infrastructure changes
- Tracing via fixture teardown and `yield from` cleanup, not only direct
test imports
-
##### Which issue(s) this PR fixes:
The verified-label prompt only required a smoke yes/no decision, so
utilities changes often produced "Run smoke tests: False" with no gating
tests or fixture-teardown paths listed. Extend the workflow comment,
CodeRabbit path instructions, and TESTS_ORACLE_PROMPT so plans include
gating impact, a concrete affected-test list, and tracing through
fixtures and yield-from cleanup.
##### Special notes for reviewer:
- No runtime or test code changes. Docs and bot prompt only.
- example:
#4860,
here test plan executions doesn't cover tests affected due to change in
teardown/fixture flow
##### jira-ticket:
<!-- full-ticket-url needs to be provided. This would add a link to the
pull request to the jira and close it when the pull request is merged
If the task is not tracked by a Jira ticket, just write "NONE".
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Tightened test-review workflow: first-line inline reviews must include
both smoke and gating decisions, justified with concrete dependency
paths; added explicit examples for correct/incorrect review content.
* **Documentation**
* Expanded testing guidance: deeper dependency tracing across imports,
shared utilities and test fixtures (including teardown), detection of
newly added tests, stricter impact-analysis requirements, and updated
recommendations for gating test handling and marking.
<!-- review_stack_entry_start -->
[](https://app.coderabbit.ai/change-stack/RedHatQE/openshift-virtualization-tests/pull/5018?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)
<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: Geetika Kapoor <gkapoor@redhat.com>1 parent fe0e25a commit e203b75
2 files changed
Lines changed: 64 additions & 20 deletions
Lines changed: 54 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
60 | 91 | | |
61 | 92 | | |
62 | 93 | | |
63 | 94 | | |
64 | 95 | | |
65 | 96 | | |
66 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
67 | 100 | | |
68 | 101 | | |
69 | 102 | | |
70 | | - | |
| 103 | + | |
| 104 | + | |
71 | 105 | | |
72 | 106 | | |
73 | 107 | | |
74 | | - | |
| 108 | + | |
75 | 109 | | |
76 | | - | |
| 110 | + | |
77 | 111 | | |
78 | 112 | | |
| 113 | + | |
79 | 114 | | |
80 | 115 | | |
81 | 116 | | |
| |||
103 | 138 | | |
104 | 139 | | |
105 | 140 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
115 | 149 | | |
116 | 150 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
| |||
0 commit comments