Skip to content

Test worktree guard fix; make sync-wiring test robust to nested make#24

Open
jnasbyupgrade wants to merge 2 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-38-worktree-guard
Open

Test worktree guard fix; make sync-wiring test robust to nested make#24
jnasbyupgrade wants to merge 2 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-38-worktree-guard

Conversation

@jnasbyupgrade

Copy link
Copy Markdown
Contributor

Related pgxntool PR: Postgres-Extensions/pgxntool#39

Covers the pgxntool fix for the .git-in-a-worktree guard (issue #38).

  • New regression test (update-setup-files.bats): runs update-setup-files.sh from inside a linked git worktree (where .git is a file) and confirms it gets past the repo-root guard instead of dying with "Not in a git repository."
  • Fix flaky wiring test (pgxntool-sync.bats): the sync-target test matched all of make -n output, which failed under make test-all because the nested make prints "Entering/Leaving directory" bookkeeping. It now greps the pgxntool-sync.sh recipe line and matches that exactly — still pins the full command, but ignores make's chatter.

Full suite green (212/212) on PG 17.

🤖 Generated with Claude Code

Add tests/updates for pgxntool commit 864a4f7 (repo-root guard now works in a
git worktree via `git rev-parse --git-dir`):
- setup.sh / pgxntool-sync.sh / update-setup-files.sh no longer reject a
  worktree, where `.git` is a file rather than a directory

New regression test in update-setup-files.bats: run the script from inside a
linked worktree and confirm it gets past the repo-root guard.

Also fix the sync-target wiring test: it matched all of `make -n` output, which
failed under `make test-all` because the nested make prints "Entering/Leaving
directory" bookkeeping. Grep the pgxntool-sync.sh recipe line and match that
exactly instead.

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

coderabbitai Bot commented Jul 12, 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: 59 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: 48f4b529-a175-4ee4-b0df-73137c9bae26

📥 Commits

Reviewing files that changed from the base of the PR and between 0d6abd6 and 2ad8c8a.

📒 Files selected for processing (1)
  • test/standard/update-setup-files.bats
✨ 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 added a commit that referenced this pull request Jul 12, 2026
After merging master, pgxntool-sync.bats carries the exact-match wiring test,
which fails under `make test` (bats runs as a child of make, so the nested
`make -n` prints "Entering/Leaving directory"). Grep the pgxntool-sync.sh recipe
line and match that exactly instead. Same fix as the open fix-38 PR (#24).

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

# Conflicts:
#	test/standard/pgxntool-sync.bats
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.

1 participant