Skip to content

ci: add PG18 to test matrix; skip test job for doc-only PRs#37

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

ci: add PG18 to test matrix; skip test job for doc-only PRs#37
jnasbyupgrade merged 2 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:doc-only-ci-bypass

Conversation

@jnasbyupgrade

Copy link
Copy Markdown
Contributor

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.

@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: e4fdd95e-9da7-4dd8-bd36-f2087a79f079

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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 @.github/workflows/ci.yml:
- Around line 45-54: Update the `gh api` jq selection in the doc-only check to
emit both each file’s current `filename` and its `previous_filename` when
present, then run both through the existing `doc_only` allowlist loop. Preserve
the current behavior for non-renamed files and ensure any non-documentation
rename path sets `doc_only=false`.
🪄 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: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e1d68a53-2a80-43e8-a9d0-d297300d97cb

📥 Commits

Reviewing files that changed from the base of the PR and between 4ce0d67 and fadfa49.

📒 Files selected for processing (3)
  • .github/workflows/CLAUDE.md
  • .github/workflows/ci.yml
  • .github/workflows/run-tests.yml

Comment thread .github/workflows/ci.yml Outdated
jnasbyupgrade added a commit to jnasbyupgrade/pgxntool that referenced this pull request Jul 26, 2026
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 <noreply@anthropic.com>
jnasbyupgrade added a commit to jnasbyupgrade/pgxntool-test that referenced this pull request Jul 26, 2026
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: Postgres-Extensions#37 (comment)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
jnasbyupgrade added a commit to jnasbyupgrade/pgxntool that referenced this pull request Jul 26, 2026
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 <noreply@anthropic.com>
jnasbyupgrade and others added 2 commits July 26, 2026 17:34
- 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 <noreply@anthropic.com>
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: Postgres-Extensions#37 (comment)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jnasbyupgrade

Copy link
Copy Markdown
Contributor Author

Note on the CodeRabbit rename-file finding (originally on commit fadfa49, in this outdated thread): that thread shows as outdated because the branch was later rebased onto current master (fixing an unrelated stale-fork-branch test failure) and force-pushed, so its anchor commit no longer exists in the history. The fix itself is still present — current ci.yml checks both .filename and .previous_filename before applying the doc-only allowlist.

@jnasbyupgrade
jnasbyupgrade merged commit 788468d into Postgres-Extensions:master Jul 26, 2026
10 checks passed
jnasbyupgrade added a commit to Postgres-Extensions/pgxntool that referenced this pull request Jul 26, 2026
Related pgxntool-test PR:
Postgres-Extensions/pgxntool-test#37

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
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