Skip to content

ci: skip full CI for documentation-only PRs - #126

Merged
nachiketb-nvidia merged 2 commits into
mainfrom
nachiketb/skip-full-ci-for-docs-only-prs
Jul 23, 2026
Merged

nachiketb-nvidia merged 2 commits into
mainfrom
nachiketb/skip-full-ci-for-docs-only-prs

Conversation

@nachiketb-nvidia

@nachiketb-nvidia nachiketb-nvidia commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

What

Add a lightweight change-detection job to the main CI workflow and skip the expensive lint, SPDX,
Rust, mypy, Python test matrix, and slim-install jobs when a pull request changes documentation
only.

Why

Documentation-only pull requests currently run the complete CI suite even though focused
documentation workflows already validate the published docs, README, and getting-started guide.
The required CI Success check must still appear so branch protection is not left waiting on a
skipped workflow.

How

  • Classify clearly non-runtime documentation paths with dorny/paths-filter.
  • Gate the full CI jobs on the resulting full_ci output.
  • Keep the lightweight detector and CI Success jobs running for every pull request.
  • Always run the complete suite for pushes to main.
  • Treat runtime Markdown prompts and mixed docs/code diffs as code-impacting changes.
  • Update the repository CI skills and remove their stale reference to a missing validation helper.

Validation

  • actionlint .github/workflows/ci.yml
  • Parsed the workflow structure and all skill frontmatter with PyYAML.
  • Exercised docs-only, runtime-prompt, workflow, source, and mixed-diff classifier cases with
    picomatch.
  • git diff --check

Summary by CodeRabbit

  • Documentation
    • Clarified CI guidance for documentation-only pull requests.
    • Documented that lightweight change detection and the required CI success check still run, while broader validation is skipped.
    • Clarified that published-site checks remain part of the documentation workflow, with focused README and getting-started checks triggered by relevant changes.
    • Added guidance for manual change inspection and identifying targeted validation coverage.
  • Chores
    • Improved CI change detection to run full validation only when applicable.

@nachiketb-nvidia
nachiketb-nvidia marked this pull request as ready for review July 23, 2026 17:11
@nachiketb-nvidia
nachiketb-nvidia requested a review from a team as a code owner July 23, 2026 17:11
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The CI workflow adds path-based full-CI detection and conditionally runs lint, headers, Rust, typecheck, tests, and install smoke checks. Testing and documentation skills explain the revised local gate selection and docs-only CI behavior.

Changes

CI Scope Detection and Guidance

Layer / File(s) Summary
Workflow change detection and job gating
.github/workflows/ci.yml
A changes job determines whether full CI is required, downstream jobs are conditionally gated, and ci-success depends on the detector.
Local gate-selection guidance
.agents/skills/switchyard-testing-ci/SKILL.md
Local validation guidance now starts with diff inspection and targeted searches, and defines documentation-only classifications including runtime prompt Markdown exclusions.
Documentation CI guidance
.agents/skills/switchyard-docs/SKILL.md
Docs guidance describes lightweight detection, the required CI Success job, published-site validation, and targeted README/getting-started workflows.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Poem

I’m a rabbit hopping through the CI lane,
Sorting doc paths from code in the rain.
Full checks wake when source changes appear,
While CI Success stays dutifully near.
Fluffy gates keep the workflow clear!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: skipping full CI for documentation-only PRs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

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

@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: 1

🤖 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 @.agents/skills/switchyard-testing-ci/SKILL.md:
- Line 27: Update the “Inspect the current diff” command in the switchyard
testing CI instructions to include staged changes and untracked files, using
HEAD-based or cached Git comparisons together with git ls-files --others. Ensure
the resulting file-name and diff inspection covers all changed files, not only
unstaged tracked files.
🪄 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: CHILL

Plan: Enterprise

Run ID: 5ae2cbfe-c7d6-4eec-b05f-91c750bfa437

📥 Commits

Reviewing files that changed from the base of the PR and between 4ccec5d and 986e533.

📒 Files selected for processing (3)
  • .agents/skills/switchyard-docs/SKILL.md
  • .agents/skills/switchyard-testing-ci/SKILL.md
  • .github/workflows/ci.yml

@nachiketb-nvidia
nachiketb-nvidia merged commit 50f24aa into main Jul 23, 2026
14 checks passed
@nachiketb-nvidia
nachiketb-nvidia deleted the nachiketb/skip-full-ci-for-docs-only-prs branch July 23, 2026 18:20
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.

3 participants