Skip to content

Add end-to-end test for make pgxntool-sync#6

Open
jnasbyupgrade wants to merge 1 commit intoPostgres-Extensions:masterfrom
jnasbyupgrade:pgxntool-sync-test
Open

Add end-to-end test for make pgxntool-sync#6
jnasbyupgrade wants to merge 1 commit intoPostgres-Extensions:masterfrom
jnasbyupgrade:pgxntool-sync-test

Conversation

@jnasbyupgrade
Copy link
Contributor

Summary

  • End-to-end test for make pgxntool-sync flow (git subtree pullupdate-setup-files.sh)
  • Creates a dedicated source repo with two tagged versions to guarantee git subtree add is used (vs rsync fallback for dirty repos)
  • Verifies subtree pull succeeds, .gitignore is auto-updated by update-setup-files.sh, and merge commit is created correctly
  • Document BATS set -eET error handling behavior in test/CLAUDE.md

Test plan

  • test/bats/bin/bats test/standard/pgxntool-sync.bats — all 6 tests pass
  • make test — full suite passes (157 tests, no regressions)

No related changes in pgxntool.

New test (test/standard/pgxntool-sync.bats) validates the full
`make pgxntool-sync` flow: git subtree pull → update-setup-files.sh.
Creates a dedicated source repo with two tagged versions to guarantee
git subtree add is used (vs rsync fallback for dirty repos). Verifies
subtree pull succeeds, .gitignore is auto-updated by
update-setup-files.sh, and the merge commit is created correctly.

Document BATS `set -eET` behavior in test/CLAUDE.md: errexit is active
in all test functions including setup_file, subshell failures propagate,
and `local var=$(cmd)` masks exit status.

Improve commit command allowed-tools to use broader glob patterns,
reducing per-command approval prompts.

Changes only in pgxntool-test. No related changes in pgxntool.

Co-Authored-By: Claude <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.

1 participant