Skip to content

[#327] Honor BUILD_TESTING for test tooling and targets - #1742

Open
manishpatel00 wants to merge 1 commit into
pgmoneta:mainfrom
manishpatel00:issue327_windows_native
Open

manishpatel00 wants to merge 1 commit into
pgmoneta:mainfrom
manishpatel00:issue327_windows_native

Conversation

@manishpatel00

@manishpatel00 manishpatel00 commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Related to #327; this preparation change does not implement native Windows support or close that issue.

Description

BUILD_TESTING=OFF still discovers test dependencies and includes the test directory. Honor CTest's existing option so builds can omit test tooling and targets, while preserving the default test-enabled behavior and the existing fallback when Check is unavailable.

Validation

Focused remote validation:

  • Tests OFF: verified that Check, Docker and Podman discovery is skipped, the test executable is absent, and the production build succeeds.
  • Default configuration: built the test executable and ran the deque test module.
  • Check unavailable: verified that the test executable is omitted.
  • Diff whitespace check passed.

The Windows workflow and platform-specific changes have been removed. Native Windows support remains unfinished. Full upstream CI for this updated commit has not been verified.

Use CTest's existing option to skip test dependency discovery and the
test directory when testing is disabled. Preserve default behavior and
the fallback when Check is unavailable.

Remove the premature Windows workflow and platform changes. This is
preparation only; native Windows support remains outstanding.

Signed-off-by: Manish Kumar <[email protected]>
@manishpatel00
manishpatel00 marked this pull request as ready for review November 29, 2026 08:39
@manishpatel00
manishpatel00 force-pushed the issue327_windows_native branch 2 times, most recently from 88127f4 to 2096c60 Compare November 29, 2026 20:39
@ecleon26
ecleon26 self-requested a review December 2, 2026 19:40

@ecleon26 ecleon26 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build fails and continue-on-error just hides it. Remove it, and get the build green before adding the workflow

Comment thread src/include/pgmoneta.h Resolved
@manishpatel00 manishpatel00 changed the title [#327] Add Windows MinGW build baseline [#327] Honor BUILD_TESTING for test tooling and targets Dec 2, 2026
@manishpatel00
manishpatel00 force-pushed the issue327_windows_native branch from 2096c60 to 623158f Compare December 2, 2026 21:09
@manishpatel00

Copy link
Copy Markdown
Contributor Author

@ecleon26 The Windows build failures are real, so I removed the premature workflow (including continue-on-error), Windows linker configuration and MAX_PATH override. I narrowed this PR to honoring BUILD_TESTING and removed the claim that it fixes #327. Tests-disabled production build, default test build/deque tests, missing-Check behavior and whitespace checks passed in the focused validation run. Rebased as one signed-off commit, 623158f. Native Windows support remains outstanding.

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