Skip to content

ci: skip doctests when no doc examples changed#3251

Merged
QuantumExplorer merged 2 commits into
v3.1-devfrom
ci/skip-doctests-when-unchanged
Mar 14, 2026
Merged

ci: skip doctests when no doc examples changed#3251
QuantumExplorer merged 2 commits into
v3.1-devfrom
ci/skip-doctests-when-unchanged

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

Summary

  • Add doctest change detection to the changes job — checks if any added/removed lines in .rs files contain doc comments with code fences (```)
  • Only run the doctests job when doc examples actually changed, or when CI workflows changed
  • Previously doctests ran on every Rust file change, even when no doc comments were modified
  • Always runs on workflow_dispatch

Test plan

  • Verify doctests are skipped when only non-doc Rust code changes
  • Verify doctests run when doc comments with ``` are modified
  • Verify doctests run on manual workflow dispatch

🤖 Generated with Claude Code

Only run the doctests job when the diff contains changes to doc
comments with code fences (```). This avoids running doctests on
every Rust file change when no doc examples were actually modified.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@QuantumExplorer has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 1 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a5609c13-630c-4395-9adb-2c5bd943d021

📥 Commits

Reviewing files that changed from the base of the PR and between 76e38a8 and b66b3e8.

📒 Files selected for processing (2)
  • .github/workflows/tests-rs-workspace.yml
  • .github/workflows/tests.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ci/skip-doctests-when-unchanged
📝 Coding Plan
  • Generate coding plan for human review comments

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.

@github-actions github-actions Bot added this to the v3.1.0 milestone Mar 14, 2026
@QuantumExplorer QuantumExplorer changed the title ci(tests): skip doctests when no doc examples changed ci: skip doctests when no doc examples changed Mar 14, 2026
Remove rs-workflows-changed fallback from doctests condition — CI
workflow changes don't need doctest validation. Pass doctests-changed
flag to workspace workflow so Mac runner also skips doctests when
no doc comment code examples were modified.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@QuantumExplorer

Copy link
Copy Markdown
Member Author

Self Reviewed

@QuantumExplorer QuantumExplorer merged commit b9cec6b into v3.1-dev Mar 14, 2026
18 of 20 checks passed
@QuantumExplorer QuantumExplorer deleted the ci/skip-doctests-when-unchanged branch March 14, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant