Skip to content

ci: pass repo owners to run-tests.yml for fork-account matching#40

Open
jnasbyupgrade wants to merge 4 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-ci-fork-owner
Open

ci: pass repo owners to run-tests.yml for fork-account matching#40
jnasbyupgrade wants to merge 4 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-ci-fork-owner

Conversation

@jnasbyupgrade

@jnasbyupgrade jnasbyupgrade commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Pairs with pgxntool-test PR: Postgres-Extensions/pgxntool-test#25

Problem

CI resolved the paired sibling branch using github.repository_owner
(Postgres-Extensions), so a fork PR never found its paired branch (which
lives on the fork) and tested against the wrong, unpaired code. This is what
made the fix-38 PRs' CI fail: pgxntool-test's resolve looked for the pgxntool
branch on Postgres-Extensions, didn't find it (it was on the fork), fell back to
pgxntool=master, and master lacked the paired change.

This PR (pgxntool side)

When pgxntool runs its own tests (commit-with-no-tests or master-to-master),
pass explicit owners to run-tests.yml:

  • pgxntool-owner = this PR's head account (the fork for fork PRs)
  • pgxntool-test-owner = Postgres-Extensions (canonical master only — never a fork's master)

The matching resolve/owner logic and the pgxntool-owner/pgxntool-test-owner
inputs on run-tests.yml are in the paired pgxntool-test PR.

Merge order: pgxntool-test first (so run-tests.yml@master gains the owner
inputs), then this PR.

🤖 Generated with Claude Code

Pairs with the pgxntool-test change. When pgxntool runs its own tests
(commit-with-no-tests or master-to-master), pass pgxntool-owner = this PR's head
account (a fork for fork PRs) and pgxntool-test-owner = Postgres-Extensions, so
fork PRs check out their own pgxntool branch and always take pgxntool-test from
canonical master rather than a fork's master.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@jnasbyupgrade, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 19 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 07e23b23-9fa3-4105-8aed-acd435649a65

📥 Commits

Reviewing files that changed from the base of the PR and between b062fca and e594f85.

📒 Files selected for processing (3)
  • .github/workflows/ci.yml
  • README.asc
  • README.html
✨ 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.

Copilot AI 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.

Pull request overview

Updates this repo’s CI reusable-workflow invocation so fork PRs can pass the correct repository owners into pgxntool-test’s run-tests.yml, enabling correct paired-branch resolution across fork accounts.

Changes:

  • Pass pgxntool-owner as the PR head repo owner (github.event.pull_request.head.repo.owner.login) to support fork PR pairing.
  • Pass pgxntool-test-owner as the canonical Postgres-Extensions owner when falling back to pgxntool-test/master.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
The README's Development section pointed at the old decibel/pgxntool-test URL
and didn't mention how contributions are coordinated. Point at
Postgres-Extensions/pgxntool-test and note that changes are normally paired
across both repos (matching branch + account), linking to pgxntool-test's
"CI and Contributing" section. Regenerated the matching README.html paragraph.

Co-Authored-By: Claude Opus 4.8 (1M context) <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.

2 participants