Skip to content

ci: stop Run Tests from starting on docs-only PRs - #6969

Draft
theCyberTech wants to merge 1 commit into
mainfrom
cursor/docs-pr-skip-tests-workflow-d02f
Draft

ci: stop Run Tests from starting on docs-only PRs#6969
theCyberTech wants to merge 1 commit into
mainfrom
cursor/docs-pr-skip-tests-workflow-d02f

Conversation

@theCyberTech

@theCyberTech theCyberTech commented Aug 12, 2026

Copy link
Copy Markdown
Member

Investigation

Docs-only PRs still showed Run Tests even after #6800 / #6818 / #6822.

Why: tests.yml used on: [pull_request] with no top-level path filter. The pytest matrix was correctly skipped via dorny/paths-filter, but the workflow still started so lightweight stub jobs could report required ruleset checks:

  • tests, tests (3.10)tests (3.13), lint, type-checker

Without those statuses, merges hang on “Expected — Waiting for status to be reported.”

Verified on docs-only PRs (#6967, #6963): matrix skipped (~2s stubs), but Run Tests still appeared.

Fix

Change Effect
paths-ignore on tests / lint / type-checker Workflows do not start for docs / *.md / *.mdx / .github/**-only PRs
New non-code-ci-status.yml Creates the required check runs via the Checks API when those workflows are skipped
Remove in-workflow skip scaffolding Heavy CI workflows only run when they actually test code

Mixed docs+code PRs still run the real Python CI (paths-ignore only skips when all files match).

Verified on this PR

This PR only touches .github/**, so it exercises the non-code path:

  • Run Tests / Lint / Type Checks did not start
  • Non-code CI status reported lint, type-checker, tests, and tests (3.10)tests (3.13) as success

Follow-ups (repo settings, not in this PR)

Optional: narrow the main ruleset required checks to only the summary jobs (tests, lint, type-checker) so per-version stub names are unnecessary.

Open in Web Open in Cursor 

Docs/markdown/Actions-only PRs still started the Run Tests workflow so
branch-protection stubs could report required check names. The pytest
matrix was already skipped, but the workflow still appeared and burned
runners for Detect changes + skip jobs.

- Add paths-ignore on tests, lint, and type-checker so those workflows
  do not start when only docs/**, *.md, *.mdx, or .github/** change
- Add non-code-ci-status.yml to create the required check runs
  (lint, type-checker, tests, tests 3.10–3.13) via the Checks API
- Drop in-workflow dorny skip scaffolding from the Python CI workflows
- Exclude *.mdx in the vulnerability-scan path filter for consistency

Co-authored-by: Rip&Tear <theCyberTech@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: db3ab518-faf4-45ea-9264-90ffd8c208a2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants