Skip to content

Handle missing PGXS gracefully when running tests#59

Merged
seanwevans merged 1 commit into
mainfrom
codex/fix-failing-tests
May 20, 2026
Merged

Handle missing PGXS gracefully when running tests#59
seanwevans merged 1 commit into
mainfrom
codex/fix-failing-tests

Conversation

@seanwevans
Copy link
Copy Markdown
Owner

Motivation

  • Avoid hard make failures when pg_config --pgxs points to a non-existent pgxs.mk so test targets and other non-build flows can still be evaluated.

Description

  • Add HAVE_PGXS := $(if $(wildcard $(PGXS)),1,0) and conditionally include $(PGXS) with a clear warning in makefile when PGXS is missing, allowing make to continue.

Testing

  • Ran make test-core, which now emits the PGXS warning and proceeds to invoke pg_prove but the run failed because pg_prove is not installed (Error 127).
  • Ran pytest -q earlier which reported "no tests ran" since there are no Python tests in this repository.

Codex Task

@seanwevans seanwevans merged commit a6ac27d into main May 20, 2026
1 check failed
@seanwevans seanwevans deleted the codex/fix-failing-tests branch May 20, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant