Skip to content

fix: do not unresolve threads verified by CodeRabbit#5179

Merged
rnetser merged 3 commits into
RedHatQE:mainfrom
rnetser:fix/unresolve-coderabbit-verification
Jun 11, 2026
Merged

fix: do not unresolve threads verified by CodeRabbit#5179
rnetser merged 3 commits into
RedHatQE:mainfrom
rnetser:fix/unresolve-coderabbit-verification

Conversation

@rnetser

@rnetser rnetser commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator
What this PR does / why we need it:

Fixes the unresolve workflow incorrectly unresolving CodeRabbit threads that were already verified.

Root cause: The workflow only checked for PR-author replies (≥15 chars). When CodeRabbit itself verified a fix (e.g., "✅ The concern is fully addressed. Commit 4fc400e registered the windows marker..."), there was no PR-author reply, so the workflow unresolved the thread — forcing the author to re-address it.

Fix: Also treat CodeRabbit verification replies as substantive. If CodeRabbit replied with keywords like "addressed", "verified", "resolved", or "✅", the thread stays resolved.

Example of the bug: https://github.com/RedHatQE/openshift-virtualization-tests/pull/5145/files#r3373950402

Assisted-by: Claude noreply@anthropic.com

Which issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket:

Summary by CodeRabbit

  • Chores
    • Added GitHub Actions workflow for automated code review thread management on pull requests.

The unresolve workflow only checked for PR-author replies. When
CodeRabbit itself verified a fix (e.g., "The concern is fully
addressed"), there was no PR-author reply, so the workflow
incorrectly unresolved the thread.

Now treats CodeRabbit verification replies (containing "addressed",
"verified", "resolved", or checkmark) as substantive — these threads
stay resolved.

Assisted-by: Claude <noreply@anthropic.com>
Signed-off-by: rnetser <rnetser@redhat.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@rnetser, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 10 minutes and 28 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4abe48ef-8917-4452-af48-3b98d7579322

📥 Commits

Reviewing files that changed from the base of the PR and between 7944375 and a2d28e6.

📒 Files selected for processing (1)
  • .github/workflows/unresolve-coderabbit-threads.yml
📝 Walkthrough

Walkthrough

This PR introduces a new GitHub Actions workflow that automatically unresolves CodeRabbit review threads resolved without substantive PR-author responses. The workflow paginates through all review threads, filters candidates meeting unresolve criteria, and applies GraphQL mutations to unresolve and notify via warning comments.

Changes

Auto-unresolve CodeRabbit Review Threads

Layer / File(s) Summary
Workflow configuration and environment setup
.github/workflows/unresolve-coderabbit-threads.yml
Workflow triggered on PR synchronize events (excluding bot authors), per-PR concurrency with run cancellation, 5-minute timeout, authentication via BOT3_TOKEN, and strict bash execution with set -euo pipefail.
GraphQL pagination and thread collection
.github/workflows/unresolve-coderabbit-threads.yml
Iterative cursor-based pagination through reviewThreads GraphQL query (100 nodes per page), accumulating thread IDs, resolution statuses, opening comment authors, and recent comment bodies/authors until all pages are exhausted.
Thread filtering and candidate selection
.github/workflows/unresolve-coderabbit-threads.yml
jq-based filtering pipeline identifies threads that are resolved AND opened by coderabbitai AND lack substantive PR-author replies (≥15 chars) or CodeRabbit verification confirmation markers; outputs eligible thread IDs.
Unresolve mutations and warning replies
.github/workflows/unresolve-coderabbit-threads.yml
Per-thread execution of unresolveReviewThread GraphQL mutation; on success, posts addPullRequestReviewThreadReply warning explaining the auto-unresolve and requesting explanation; continues on mutation errors with logged warnings.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Reasoning: GraphQL pagination and bash filtering logic require careful verification of query correctness, jq filter accuracy, and proper error handling. The workflow controls bot behavior on PRs, so mutation ordering, concurrency safety, and thread-selection correctness are critical. Multiple shell expansions, GraphQL syntax, and stateful pagination loops demand close inspection.


Possibly related PRs


Suggested reviewers

  • dshchedr
  • RoniKishner
  • vsibirsk
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: preventing CodeRabbit-verified threads from being incorrectly unresolved.
Description check ✅ Passed The description comprehensively covers the root cause, fix, and impact with a concrete example, though it leaves 'Which issue(s) this PR fixes' and 'Special notes for reviewer' blank.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stp Link Required ✅ Passed PR adds only .github/workflows/unresolve-coderabbit-threads.yml (workflow file), not test files or test functions under tests/ directory; STP link requirement does not apply.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Review ran into problems

🔥 Problems

Linked repositories: Your configuration references 1 linked repositories, but your current plan allows 0. Analyzed ``, skipped RedHatQE/openshift-virtualization-tests-design-docs.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-virtualization-qe-bot

Copy link
Copy Markdown

D/S test tox -e verify-tc-requirement-polarion failed: cnv-tests-tox-executor/28973

@openshift-virtualization-qe-bot-4

Copy link
Copy Markdown

Report bugs in Issues

Welcome! 🎉

This pull request will be automatically processed with the following features:

🔄 Automatic Actions

  • Reviewer Assignment: Reviewers are automatically assigned based on the OWNERS file in the repository root
  • Size Labeling: PR size labels (XS, S, M, L, XL, XXL) are automatically applied based on changes
  • Issue Creation: A tracking issue is created for this PR and will be closed when the PR is merged or closed
  • Branch Labeling: Branch-specific labels are applied to track the target branch
  • Auto-verification: Auto-verified users have their PRs automatically marked as verified
  • Labels: Enabled categories: branch, can-be-merged, cherry-pick, has-conflicts, hold, needs-rebase, size, verified, wip

📋 Available Commands

PR Status Management

  • /wip - Mark PR as work in progress (adds WIP: prefix to title)
  • /wip cancel - Remove work in progress status
  • /hold - Block PR merging (approvers only)
  • /hold cancel - Unblock PR merging
  • /verified - Mark PR as verified
  • /verified cancel - Remove verification status
  • /reprocess - Trigger complete PR workflow reprocessing (useful if webhook failed or configuration changed)
  • /regenerate-welcome - Regenerate this welcome message

Review & Approval

  • /lgtm - Approve changes (looks good to me)
  • /approve - Approve PR (approvers only)
  • /assign-reviewers - Assign reviewers based on OWNERS file
  • /assign-reviewer @username - Assign specific reviewer
  • /check-can-merge - Check if PR meets merge requirements

Testing & Validation

  • /retest tox - Run Python test suite with tox
  • /retest build-container - Rebuild and test container image
  • /retest verify-bugs-are-open - verify-bugs-are-open
  • /retest all - Run all available tests

Container Operations

  • /build-and-push-container - Build and push container image (tagged with PR number)
    • Supports additional build arguments: /build-and-push-container --build-arg KEY=value

Cherry-pick Operations

  • /cherry-pick <branch> - Schedule cherry-pick to target branch when PR is merged
    • Multiple branches: /cherry-pick branch1 branch2 branch3

Label Management

  • /<label-name> - Add a label to the PR
  • /<label-name> cancel - Remove a label from the PR

✅ Merge Requirements

This PR will be automatically approved when the following conditions are met:

  1. Approval: /approve from at least one approver
  2. LGTM Count: Minimum 2 /lgtm from reviewers
  3. Status Checks: All required status checks must pass
  4. No Blockers: No wip, hold, has-conflicts labels and PR must be mergeable (no conflicts)
  5. Verified: PR must be marked as verified

📊 Review Process

Approvers and Reviewers

Approvers:

  • dshchedr
  • myakove
  • rnetser
  • vsibirsk

Reviewers:

  • RoniKishner
  • dshchedr
  • rnetser
  • vsibirsk
Available Labels
  • hold
  • verified
  • wip
  • lgtm
  • approve
AI Features
  • Cherry-Pick Conflict Resolution: Enabled (claude/claude-opus-4-6[1m])

💡 Tips

  • WIP Status: Use /wip when your PR is not ready for review
  • Verification: The verified label is removed on new commits unless the push is detected as a clean rebase
  • Cherry-picking: Cherry-pick labels are processed when the PR is merged
  • Container Builds: Container images are automatically tagged with the PR number
  • Permission Levels: Some commands require approver permissions
  • Auto-verified Users: Certain users have automatic verification and merge privileges

For more information, please refer to the project documentation or contact the maintainers.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 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 @.github/workflows/unresolve-coderabbit-threads.yml:
- Line 108: Update the author check to match the bot account and make the regex
case-insensitive: replace the literal author match ".author.login ==
\"coderabbitai\"" with ".author.login == \"coderabbitai[bot]\"" and change the
body test invocation from test("addressed|verified|resolved|✅|concern is fully")
to use the case-insensitive flag, i.e.
test("addressed|verified|resolved|✅|concern is fully"; "i"), keeping the same
pattern so .body and .author.login checks correctly detect variations like
"Addressed" and the bot suffix.
- Line 99: Replace the bot login string used in the selection filters so they
include the GitHub bot suffix; change the literal "coderabbitai" to
"coderabbitai[bot]" in both occurrences of the filter expression (the
select(.opening_comment.nodes[0].author.login == "...") check and the matching
second filter) so the workflow correctly matches the bot account.
- Around line 22-25: Remove the unused repository permission declaration
"contents: read" (it's unnecessary since there's no actions/checkout in this
workflow) and add a human-friendly job name for clarity by inserting a name:
field under the job key unresolve-threads (e.g., name: "Unresolve Threads") so
the workflow UI shows the descriptive name instead of the key.
🪄 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: ASSERTIVE

Plan: Pro

Run ID: c15dbfd6-3202-4c50-9afb-98acedc0f514

📥 Commits

Reviewing files that changed from the base of the PR and between ec593a3 and 7944375.

📒 Files selected for processing (1)
  • .github/workflows/unresolve-coderabbit-threads.yml
📜 Review details
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: 2026-05-19T10:17:37.060Z
Learnt from: Anatw
Repo: RedHatQE/openshift-virtualization-tests PR: 4833
File: tests/network/localnet/migration_stuntime/libstuntime.py:13-13
Timestamp: 2026-05-19T10:17:37.060Z
Learning: In RedHatQE/openshift-virtualization-tests, when the PR template validation rule is triggered, avoid posting the PR template violation comment if the PR description already contains the required sections with meaningful content:
- `##### What this PR does / why we need it:`
- `##### Which issue(s) this PR fixes:`
- `##### Special notes for reviewer:`
- `##### jira-ticket:`
Because the current implementation can use a broad `**` path glob and re-run the check per diff context/file, reviewers/automation should verify the actual PR description content before flagging it as a violation or duplicating the comment.

Applied to files:

  • .github/workflows/unresolve-coderabbit-threads.yml
📚 Learning: 2026-05-20T11:18:31.677Z
Learnt from: Anatw
Repo: RedHatQE/openshift-virtualization-tests PR: 4867
File: tests/network/libs/stuntime.py:1-1
Timestamp: 2026-05-20T11:18:31.677Z
Learning: In RedHatQE/openshift-virtualization-tests, make the PR template validation (HIGH-severity) heuristic more conservative: if the author explicitly rebuts the “missing template section” finding and confirms the required sections are present with meaningful content, treat the original finding as a false positive and do not re-raise it. Only raise the HIGH-severity flag when a required PR section header (e.g., "##### What this PR does / why we need it:") is clearly absent or its content can be verified as empty/placeholder-only.

Applied to files:

  • .github/workflows/unresolve-coderabbit-threads.yml
📚 Learning: 2026-06-03T15:08:46.871Z
Learnt from: geetikakay
Repo: RedHatQE/openshift-virtualization-tests PR: 5101
File: .github/workflows/request-coderabbit-test-instructions.yml:39-39
Timestamp: 2026-06-03T15:08:46.871Z
Learning: In RedHatQE/openshift-virtualization-tests, GitHub Actions workflow reviewers should follow the repo convention of allowing `uses:` references that are pinned to mutable version tags (e.g., `owner/actionv4`, `owner/actionv5`) and should NOT flag these as security issues. Full commit-SHA pinning for third-party actions is explicitly out of scope for this repository, so do not treat non-SHA `uses:` references as violations.

Applied to files:

  • .github/workflows/unresolve-coderabbit-threads.yml
🪛 zizmor (1.25.2)
.github/workflows/unresolve-coderabbit-threads.yml

[error] 21-21: overly broad permissions (excessive-permissions): pull-requests: write is overly broad at the workflow level

(excessive-permissions)


[error] 11-13: use of fundamentally insecure workflow trigger (dangerous-triggers): pull_request_target is almost always used insecurely

(dangerous-triggers)


[warning] 21-21: permissions without explanatory comments (undocumented-permissions): needs an explanatory comment

(undocumented-permissions)


[info] 25-25: workflow or action definition without a name (anonymous-definition): this job

(anonymous-definition)

🔇 Additional comments (3)
.github/workflows/unresolve-coderabbit-threads.yml (3)

11-17: LGTM!

The pull_request_target trigger is flagged by static analysis, but it's used safely here. The danger arises when you checkout and execute untrusted fork code—this workflow only makes GraphQL API calls with no code checkout, so the trigger is appropriate.


40-93: LGTM!


113-142: LGTM!

The mutation logic is solid: thread IDs come from GitHub's trusted API response, error handling allows continuation on failures, and the warning message clearly explains the automated action.

Comment thread .github/workflows/unresolve-coderabbit-threads.yml Outdated
Comment thread .github/workflows/unresolve-coderabbit-threads.yml Outdated
Comment thread .github/workflows/unresolve-coderabbit-threads.yml Outdated

@RoniKishner RoniKishner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it showing it as a new file instead of changes done? or is it only for me?

@rnetser

rnetser commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

why is it showing it as a new file instead of changes done? or is it only for me?

it was missing a rebase; fixing

…abbit-verification

Signed-off-by: rnetser <rnetser@redhat.com>

# Conflicts:
#	.github/workflows/unresolve-coderabbit-threads.yml
- Add [bot] suffix to coderabbitai login checks (GitHub bot accounts
  use "coderabbitai[bot]" not "coderabbitai")
- Use case-insensitive regex for verification keywords (matches
  "Addressed", "Resolved", etc.)
- Remove unused contents: read permission
- Add job name for GitHub UI clarity

Assisted-by: Claude <noreply@anthropic.com>
Signed-off-by: rnetser <rnetser@redhat.com>
@rnetser

rnetser commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

/verified (will be tested once merged)
/approve

@openshift-virtualization-qe-bot-3

Copy link
Copy Markdown
Contributor

@coderabbitai

Test execution plan request details

CRITICAL: You MUST post an inline review comment on the first changed line of the first file.
The inline comment should contain the full Test Execution Plan (smoke decision, gating decision, and specific affected tests).
Do NOT submit a blocking review event (REQUEST_CHANGES/APPROVE).
Post a single inline PR comment on Files Changed (non-blocking COMMENT flow).

As an expert software testing engineer, analyze all modified files in this PR and create a targeted test execution plan.
You will post an inline review comment with the test execution plan on the first changed file.
If you fail to run or post a comment, retry.

Analysis Requirements:

  1. Examine code changes in each modified file

  2. Identify affected code paths, functions, and classes

  3. Analyze pytest-specific elements: fixtures (scope, dependencies), parametrization, markers, conftest changes

  4. Trace test dependencies through imports, shared utilities, fixture inheritance, fixture teardown, and yield from cleanup in conftest

  5. Detect new tests introduced in the PR

  6. Utilities and libs impact (when utilities/ or libs/ changes):
    You MUST use shell scripts (rg, git diff) to trace the full impact.
    Follow these sub-steps in order:

    6a. Identify modified symbols: For each changed file under utilities/ or libs/,
    list every modified function or method.
    Example: git diff HEAD~1 --unified=0 -- utilities/hco.py | grep '^[+-]def '

    6b. Find direct callers: Search tests and conftest for each symbol from 6a.
    Example: rg -l 'get_hco_version' tests/

    6c. Trace fixture teardown and cleanup: Find fixtures that reach
    the modified symbol through yield from or context-manager wrappers.
    Example: rg -l 'yield from.*enable_common_boot|def.*enable_common_boot' tests/

    6d. Trace same-file callers: In each changed file, find other functions
    whose body calls a modified symbol (including code after yield
    in @contextmanager helpers).
    Example: rg 'get_hco_version|enable_common_boot' utilities/hco.py

    6e. Expand transitively: If function A calls modified B, then
    tests/fixtures that call A are affected — even when the test body
    never imports B directly.

    Do NOT limit impact to tests that import the modified symbol only.

  7. Smoke test impact: Intersect the affected set from step 6 with smoke-marked tests.
    Run: rg -l '@pytest.mark.smoke' tests/
    VERIFY the above command returned actual file paths before concluding False.
    Set True if either condition is met:

    • a smoke-marked file appears in the affected set from 6b-6e, OR
    • any conftest.py in the smoke test's parent-directory hierarchy (up to repo root)
      imports or calls a modified utilities/libs symbol — including autouse fixtures
      that depend on modified functions. ALL tests in that directory and below are affected.
      Example check: for each smoke_file, scan dirname(smoke_file)/conftest.py,
      dirname(dirname(smoke_file))/conftest.py, etc. for modified symbol imports
      and autouse fixtures that depend on modified symbols.
  8. Gating test impact: Intersect the affected set from step 6 with gating-marked tests.
    Run: rg -l '@pytest.mark.gating' tests/
    Set True if a gating-marked file also appears in the affected set from 6b-6e.
    Utilities/libs changes often affect gating tests without affecting smoke tests.
    Do NOT stop analysis after concluding Run smoke tests: False.

Output rules:
Do NOT include analysis step numbers (1-8) in your visible output.

Your deliverable:
Your inline informational comment will be based on the following requirements:

Test Execution Plan

  • Run smoke tests: True / False — If True, state the dependency path (test → fixture → changed symbol). True ONLY with a verified path.
  • Run gating tests: True / False — If True, state the dependency path. True if any gating-marked test is in the affected set.
  • Affected tests to run (required when utilities/, libs/, or shared conftest changes — list concrete paths even when smoke is False)

Use these formats:

  • path/to/test_file.py - When the entire test file needs verification
  • path/to/test_file.py::TestClass::test_method - When specific test(s) needed
  • path/to/test_file.py::test_function - When specific test(s) needed
  • -m marker - When a marker covers multiple affected tests (e.g. -m gating only if ALL gating tests in scope need run)
  • Tag each listed test or group with its marker when not obvious, e.g. (gating) or (smoke)

Real test commands (MANDATORY when changes affect session/runtime code):

When the affected code runs at session/collection time (conftest fixtures, pytest plugins,
config hooks, session-scoped setup) or modifies runtime behavior that unit tests mock away,
you MUST include concrete pytest commands the PR author must run on a real cluster
to verify the change works end-to-end. Include:

  • A command for the error/fix path (the scenario the PR fixes)
  • A command for the happy path (regression: the normal case still works)
  • Use lightweight tests (e.g., --collect-only for startup failures,
    a single small test for runtime behavior)
    If the PR only changes test logic (not utilities/libs/conftest), the affected test
    paths themselves serve as the real test commands — no separate section needed.

Example output for a session-startup fix:

**Real tests (cluster required)**
Error path (the fix):
`pytest tests/storage/.../test_foo.py --storage-class-matrix=nonexistent-sc --collect-only`
Expected: ValueError with clear message, not IndexError

Happy path (regression):
`pytest tests/storage/.../test_foo.py --storage-class-matrix=<valid-sc> -k test_bar`
Expected: session starts normally

Guidelines:

  • Include tests affected directly OR via fixture setup/teardown, yield from cleanup, or transitive utility call chains (caller calls modified helper)
  • Use a full file path only if ALL tests in that file require verification
  • Use file path + test name when only specific tests use an affected fixture or utility wrapper (preferred for partial file impact)
  • If a test marker can cover multiple files/tests, provide the marker
  • Balance coverage vs over-testing - Keep descriptions minimal
  • Example: if leaf helper foo() changes, include tests whose fixture teardown calls wrapper bar() where bar() calls foo(), even when the test body only imports an unrelated symbol from the same utilities module

Hardware-Related Checks (SR-IOV, GPU, DPDK):

When PR modifies fixtures for hardware-specific resources:

  • Collection Safety: Fixtures MUST have existence checks (return None when hardware unavailable)
  • Test Plan: MUST verify both WITH and WITHOUT hardware:
    • Run affected tests on cluster WITH hardware
    • Verify collection succeeds on cluster WITHOUT hardware

CRITICAL WORKFLOW COMPLETION RULES:

When responding to this test execution plan request, you MUST follow these rules EXACTLY:

  1. YOUR ONLY DELIVERABLE: Post one non-blocking inline comment containing the test execution plan on the first changed line
  2. THEN STOP IMMEDIATELY - Do NOT generate any additional response
  3. FALLBACK ONLY: If inline comment API calls fail after retrying, post as a regular PR comment
  4. SILENCE = SUCCESS: After successfully submitting the review, your task is complete. No confirmation needed.

ABSOLUTE PROHIBITIONS (violating these creates empty/meaningless reviews):

  • ❌ Do NOT post acknowledgment messages like "Test execution plan posted", "Review posted successfully", "I've successfully posted"
  • ❌ Do NOT mention review IDs, URLs, or confirmation of posting in the PR thread
  • ❌ Do NOT add any follow-up comments after submitting the review
  • ❌ Do NOT reply to confirm task completion
  • ❌ Do NOT explain what you did - just do it and stop

Remember: The pull request review is visible to users. Additional comments are redundant noise.

CRITICAL — Verification rules for smoke and gating decisions:
- For each True decision, you must have traced a concrete path: test file → fixture → utility function → modified symbol.
- Do NOT assume impact based on scope, file proximity, or infrastructure-sounding names.
Only set True when you trace a concrete path through steps 6a-6e, then 7 or 8.
WRONG: "utilities/hco.py changed → run smoke" (no traced dependency path)
WRONG: "Run smoke tests: False" with no affected-test list when gating tests use the changed utility
RIGHT: "Run smoke tests: False, Run gating tests: True" plus tests/.../test_foo.py::TestBar::test_baz (gating)
RIGHT: "Smoke test X uses fixture Y → wrapper Z → changed function W in utilities/hco.py"

Comment thread .github/workflows/unresolve-coderabbit-threads.yml
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Get the PR diff to find the first changed line position for an inline comment
gh api repos/RedHatQE/openshift-virtualization-tests/pulls/5179/files --jq '.[0] | {filename, patch: .patch[0:200]}'

Length of output: 538


🏁 Script executed:

#!/bin/bash
# Post a non-blocking inline review comment on the first changed line (position 5 in the diff)
gh api repos/RedHatQE/openshift-virtualization-tests/pulls/5179/reviews \
  --method POST \
  --field body="" \
  --field event="COMMENT" \
  --field "comments[][path]=.github/workflows/unresolve-coderabbit-threads.yml" \
  --field "comments[][position]=5" \
  --field "comments[][body]=**Test Execution Plan**

- **Run smoke tests: False** — This PR modifies only a GitHub Actions workflow YAML file. No Python symbols, pytest fixtures, conftest files, or test utilities were changed. No traceable path from any test to a modified symbol exists.
- **Run gating tests: False** — Same reasoning; no gating-marked test file is in the affected set.
- **Affected tests to run:** None — The change is scoped entirely to CI/CD workflow logic (\`.github/workflows/unresolve-coderabbit-threads.yml\`). It does not modify any code that runs during pytest collection, session setup, or test execution on a cluster."

Length of output: 2798



@rnetser rnetser merged commit 9b93b8d into RedHatQE:main Jun 11, 2026
18 of 19 checks passed
@openshift-virtualization-qe-bot-6

Copy link
Copy Markdown

New container for quay.io/openshift-cnv/openshift-virtualization-tests:latest published

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants