Skip to content

Add CodeRabbit review criteria for Robot test suites - #7829

Draft
dhensel-rh wants to merge 1 commit into
openshift:mainfrom
dhensel-rh:coderabbit-test-criteria
Draft

dhensel-rh wants to merge 1 commit into
openshift:mainfrom
dhensel-rh:coderabbit-test-criteria

Conversation

@dhensel-rh

@dhensel-rh dhensel-rh commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Teaches CodeRabbit the checkable test conventions for test/suites/**, so
craft feedback that reviewers currently deliver by hand arrives
automatically at PR time.

Every rule inverts a recorded failure from the OCPSTRAT-2899 / PR #7695
lifecycle (6 review rounds, 9 post-generation fix commits): one-liner docs
forcing reviewers to reverse-engineer intent, duplicated Fulfills blocks,
a test set that exceeded its CI window, secrets-scan log removal, and the
teardown anti-pattern.

What it checks (checkable conventions only)

  • Intent: [Documentation] states what is verified and why
  • Traceability: exactly one Fulfills <TICKET> AC #n line per test
  • Dedupe: flags tests duplicating existing suite coverage
  • Consolidation: flags test sets multiplying runtime without coverage
  • Teardown rules: no Run Keyword And Ignore Error in teardowns
  • No secret material in Robot logs

Style and importance deliberately remain with human reviewers. Criteria
source: openshift-eng/edge-tooling#355 (the generate-tests skill's
profile); a formal ADR will follow in openshift-eng/edge-context, and
comments that seem wrong for a specific test should be challenged there.

Draft until the criteria get human sign-off — feedback on the calibration
(scope too wide/narrow, missing rules, wrong thresholds) is exactly what
the draft period is for.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Added review guidance for Robot Framework tests, covering acceptance criteria, duplicate tests, teardown handling, and keeping secrets out of logs.

Teach CodeRabbit the checkable conventions for test/suites/** that
PR openshift#7695's review rounds enforced by hand: intent in [Documentation]
("Verify that ..." + why), exactly one Fulfills <TICKET> AC #n line per
test, duplicate detection, consolidation of tests sharing physical
operations, the teardown rules (no Run Keyword And Ignore Error in
teardowns), and no certificate/key material in Robot logs.

Each rule inverts a recorded failure from the OCPSTRAT-2899 / PR openshift#7695
lifecycle (6 review rounds, 9 post-generation fix commits, a secrets-scan
removal, a doc-convention condensing commit). Source of the criteria:
openshift-eng/edge-tooling#355; a formal ADR will follow in
openshift-eng/edge-context.

Deliberately scoped to checkable conventions — style and importance
stay with human reviewers, and each comment should explain rather
than silently block.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification

This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

Use /test ? to list jobs and /pipeline help for commands.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

This pull request changes a CodeRabbit configuration file. Because it comes from a fork or its author is not a repository collaborator, reviews use only the configuration from the target branch. The proposed configuration will take effect after it is merged.

No actionable comments were generated in the recent review.

Walkthrough

The configuration adds review instructions for Robot Framework tests under test/suites/**/*.robot, covering test intent, acceptance criteria, duplicates, teardown handling, and secret logging.

Changes

Robot Framework test review

Layer / File(s) Summary
Robot Framework test review criteria
.coderabbit.yaml
Adds criteria for documenting test intent, linking each test to one acceptance criterion, identifying duplicates, consolidating tests of the same physical operations, avoiding Run Keyword And Ignore Error in teardowns, and keeping secrets out of logs. It asks reviewers to explain exceptions in comments.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Merge Risk: Minimal · up to e43f2

This change adds review guidance for Robot Framework tests and does not alter product behavior. It can be merged with minimal risk.

Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

Failed Failed checks: 11 inconclusive

Check name Status Explanation Resolution
Stable And Deterministic Test Names Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Test Structure And Quality Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Microshift Test Compatibility Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Single Node Openshift (Sno) Test Compatibility Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Topology-Aware Scheduling Compatibility Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Ote Binary Stdout Contract Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Ipv6 And Disconnected Network Test Compatibility Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
No-Weak-Crypto Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Container-Privileges Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
No-Sensitive-Data-In-Logs Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Upstream-Cherry-Picks Inconclusive Pull request inputs changed after this check was assessed; its verdict is no longer current. Re-run the check against the current pull request inputs.
Passed Passed checks: 4 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: adding CodeRabbit review criteria for Robot Framework test suites. The raw summary confirms that .coderabbit.yaml adds path-specific instructions for test/suites/**/*.…
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.
Full details: Title check

Explanation

The title names the main change: adding CodeRabbit review criteria for Robot Framework test suites. The raw summary confirms that .coderabbit.yaml adds path-specific instructions for test/suites/**/*.robot, and the objectives describe the same criteria.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: openshift/microshift
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 3424f20
  • Layers: Repository YAML (base), Central YAML (inherited)
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 376912cb-d826-43e8-af05-07b91ef5776c
Commits

Reviewing files that changed from the base of the PR and between 3424f20 and e43f26c.

Files selected for processing: 1

  • .coderabbit.yaml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@openshift-ci

openshift-ci Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci

openshift-ci Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign pacevedom for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

This branch has not been deployed

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

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant