Skip to content

ci: skip paired-test-PR requirement for doc-only PRs#71

Merged
jnasbyupgrade merged 2 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:doc-only-ci-bypass
Jul 26, 2026
Merged

ci: skip paired-test-PR requirement for doc-only PRs#71
jnasbyupgrade merged 2 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:doc-only-ci-bypass

Conversation

@jnasbyupgrade

Copy link
Copy Markdown
Contributor

check-test-pr requires every pgxntool PR to have a paired pgxntool-test PR (or a maintainer-applied commit-with-no-tests label), with no automatic exemption for PRs that only touch documentation. Surfaced by PR #70 needing a paired test PR for a workflow-only fix, and by pgxntool-test PR #36 (a pure .claude/commands/pr.md doc change) running its full Postgres test matrix unnecessarily.

check-test-pr now detects when every changed file is pure documentation (*.md, *.asc, *.adoc, *.asciidoc, anywhere including .claude/, but never under .github/ — workflow definitions carry real behavioral weight regardless of extension) and skips both the paired-branch requirement and the test job entirely, ahead of the paired-branch lookup and the commit-with-no-tests label check. claude-code-review.yml is unaffected (separate workflow, own gate) and still runs.

Fixes #62.

Related pgxntool-test PR: Postgres-Extensions/pgxntool-test#37

@coderabbitai

coderabbitai Bot commented Jul 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. 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: ASSERTIVE

Plan: Pro Plus

Run ID: 758e09c0-1f73-4cb6-8b6b-b9e738d3381a

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

jnasbyupgrade and others added 2 commits July 26, 2026 17:34
check-test-pr now detects when every changed file is pure documentation
(*.md, *.asc, *.adoc, *.asciidoc, anywhere including .claude/, but never
under .github/) and skips both the paired pgxntool-test PR requirement
and the test job entirely, ahead of the paired-branch lookup and the
commit-with-no-tests label check. claude-code-review.yml is unaffected
(separate workflow, own gate) and still runs.

Fixes Postgres-Extensions#62

Co-Authored-By: Claude Sonnet 5 <[email protected]>
A rename like src/foo.sql -> docs/foo.md only exposed the new filename
to the doc-only check, so it would incorrectly bypass tests despite
changing a non-documentation path. Check previous_filename too.

Found by CodeRabbit on the paired pgxntool-test PR:
Postgres-Extensions/pgxntool-test#37 (comment)

Co-Authored-By: Claude Sonnet 5 <[email protected]>
jnasbyupgrade added a commit to jnasbyupgrade/pgxntool-test that referenced this pull request Jul 26, 2026
- run-tests.yml: add PostgreSQL 18 to the test matrix.
- ci.yml: resolve job gains a doc-only check (every changed file is
  *.md/*.asc/*.adoc/*.asciidoc, anywhere including .claude/, never under
  .github/) that gates the test job directly. claude-review is
  unaffected (separate workflow, own gate).

Paired with the equivalent pgxntool-side bypass:
Postgres-Extensions/pgxntool#71

Fixes Postgres-Extensions/pgxntool#62

Co-Authored-By: Claude Sonnet 5 <[email protected]>
jnasbyupgrade added a commit to Postgres-Extensions/pgxntool-test that referenced this pull request Jul 26, 2026
Related pgxntool PR:
Postgres-Extensions/pgxntool#71

Adds PostgreSQL 18 to `run-tests.yml`'s test matrix.

Also adds a doc-only bypass to `ci.yml`'s `resolve` job: when every
changed file in a PR is pure documentation (`*.md`, `*.asc`, `*.adoc`,
`*.asciidoc`, anywhere including `.claude/`, but never under `.github/`
— workflow definitions carry real behavioral weight regardless of
extension), the `test` job is skipped entirely. Surfaced by PR #36 (a
pure `.claude/commands/pr.md` doc change) running the full Postgres test
matrix unnecessarily. `claude-review` is unaffected (separate workflow,
own gate) and still runs.

Fixes Postgres-Extensions/pgxntool#62.

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
@jnasbyupgrade
jnasbyupgrade merged commit 21b35ef into Postgres-Extensions:master Jul 26, 2026
4 checks passed
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.

CI: auto-exempt doc-only PRs from the paired pgxntool-test PR requirement

1 participant