You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(ci): make the saved-list gate fail on zero tests - #740
The curated-list CI recipe can succeed after running zero tests. In 0.17 the CLI exits 0 and writes a zero-test JUnit file for an empty saved list. The CI recipe now uses the existing JSON guard plus the CLI verdict, so it preserves JUnit and fails if no tests ran or a member was skipped.
Verified with the built CLI against an isolated mock API. The guard rejected the actual empty receipt and a skipped fixture, and accepted a nonempty completed fixture.
Summary by CodeRabbit
Documentation
Updated the curated test-list CI example to capture JSON output and fail if the run fails, the summary contains no tests, or any tests are skipped.
Clarified that an empty list can still succeed and produce a zero-test JUnit report.
Documented how the result checks and exit-status handling work, and noted the jq requirement.
No actionable comments were generated in the recent review.
Walkthrough
The documentation updates the curated test-list CI example. The example saves JSON output and checks that the run has at least one test and no skipped tests.
Changes
Curated Test-List CI Example
Layer / File(s)
Summary
Document the test-list CI gate DOCUMENTATION.md
The example saves JSON output and uses jq to check for at least one test and no skipped tests. The text explains empty-list behavior, failure-status handling, and the jq requirement.
The updated CI example makes the saved-list step fail when no tests ran or a list member was skipped. It is documentation only and carries no meaningful merge risk.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "docs(ci): make the saved-list gate fail on zero tests" matches the main change. The summary says the curated-list example now checks for at least one test and no skipped tests, and exits wi…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "docs(ci): make the saved-list gate fail on zero tests" matches the main change. The summary says the curated-list example now checks for at least one test and no skipped tests, and exits with failure otherwise. The objectives describe the same goal: failing when no tests ran or a list member was skipped. The title is specific and short, and it uses a conventional commit prefix.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Reviewing files that changed from the base of the PR and between e36596a and 03466b9.
Files selected for processing: 1
DOCUMENTATION.md
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The curated-list CI recipe can succeed after running zero tests. In 0.17 the CLI exits 0 and writes a zero-test JUnit file for an empty saved list. The CI recipe now uses the existing JSON guard plus the CLI verdict, so it preserves JUnit and fails if no tests ran or a member was skipped.
Related to #458. This documents current behavior.
Verified with the built CLI against an isolated mock API. The guard rejected the actual empty receipt and a skipped fixture, and accepted a nonempty completed fixture.
Summary by CodeRabbit
jqrequirement.