Skip to content

Separate test debug from script debug; add commit-time level check#21

Closed
jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:debug-levels
Closed

Separate test debug from script debug; add commit-time level check#21
jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:debug-levels

Conversation

@jnasbyupgrade
Copy link
Copy Markdown
Contributor

Summary

  • test/lib/helpers.bash: debug() now checks $TESTDEBUG instead of $DEBUG, so test infrastructure verbosity and pgxntool script verbosity are independently controlled
  • .claude/skills/commit/SKILL.md: Added advisory Step 2b — scans debug level distribution in changed pgxntool .sh files at commit time
  • .claude/agents/test.md, .claude/settings.json: Updated all DEBUG= references to TESTDEBUG=; corrected stale debug level descriptions
  • .claude/skills/test/scripts/run-tests.sh: Derives PGPORT from PGCLUSTER so pg_regress uses the correct cluster port

Companion PR

pgxntool: Postgres-Extensions/pgxntool#32

Test plan

  • 209/209 tests pass, zero skips

Updates for pgxntool commit 6e707bb (clarify debug() level scheme):
- `lib.sh` comment updated to range-based scheme (1-9, 10-19, 20-29...)

`test/lib/helpers.bash`: `debug()` now checks `$TESTDEBUG` instead of `$DEBUG`,
so test infrastructure verbosity and pgxntool script verbosity are independently
controlled. Use `TESTDEBUG=N` for test runs, `DEBUG=N` for pgxntool scripts.

`.claude/skills/commit/SKILL.md`: Added Step 2b — advisory scan of debug level
distribution in changed pgxntool `.sh` files at commit time. Flags scripts with
loops but only single-digit levels, or 5+ calls all at the same level.

`.claude/agents/test.md`, `.claude/settings.json`: Updated all `DEBUG=` references
to `TESTDEBUG=`; corrected stale debug level descriptions to match helpers.bash.

`.claude/skills/test/scripts/run-tests.sh`: Derive `PGPORT` from `PGCLUSTER` at
startup so pg_regress and raw PostgreSQL binaries use the correct cluster port.

Co-Authored-By: Claude <noreply@anthropic.com>
@jnasbyupgrade
Copy link
Copy Markdown
Contributor Author

Merged into PR #19 (fix-pr69-issues).

@jnasbyupgrade jnasbyupgrade deleted the debug-levels branch May 15, 2026 20:16
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