Skip to content

Add Bzlmod and exported CMake targets with independent consumer tests - #1

Merged
jhurliman merged 3 commits into
mainfrom
modernization/bazel-cmake
Sep 10, 2026
Merged

jhurliman merged 3 commits into
mainfrom
modernization/bazel-cmake

Conversation

@jhurliman

@jhurliman jhurliman commented Sep 10, 2026 •

Copy link
Copy Markdown
Owner

Make kdtreepp consumable by a Bazel monorepo through Bzlmod and a public header-only @kdtreepp//:kdtreepp target with an explicit Eigen dependency. A separate example module verifies consumption with a renamed repository, so integration does not depend on the checkout's repository name or root configuration. BCR registration remains a release step; the README documents local and pinned-commit overrides.

Replace automatic Conan invocation and global compiler settings in CMake with an exported kdtreepp::kdtreepp interface target. Tests/benchmarks are opt-in, and installed consumers use find_package. Add direct standard-library includes and deterministic nearest-neighbor/empty/singleton/duplicate-point regression checks. No algorithm or performance change is claimed.

Validation on macOS arm64: Bazel 9.2.0 with Eigen 3.4.1 passes both the library regression and the separate renamed-repository consumer. CMake with Eigen 5.0.1 passes ASan/UBSan regression and installed consumer checks; the original Catch2 2.13.10 suite passes 210 assertions in three cases with sanitizers. CI adds Ubuntu Bazel and CMake checks. The legacy Conan 1 recipe is not validated and CMake no longer invokes it automatically; this build-workflow change is documented. No release or BCR submission has been made.

Stacked release follow-up: #2 replaces the legacy Conan recipe with a tested Conan 2 consumer, restores Make/coverage/benchmark commands, and adds checksum-based BCR registry-consumer validation and 2.0.0 release preparation.

@jhurliman
jhurliman marked this pull request as ready for review September 10, 2026 07:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-10T07:35:19.190202Z c06d78f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c06d78f2a4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CMakeLists.txt Resolved
@jhurliman
jhurliman added this pull request to stack #4 September 10, 2026 23:26
@jhurliman
jhurliman merged commit 023f6f0 into main Sep 10, 2026
4 checks passed
@jhurliman
jhurliman deleted the modernization/bazel-cmake branch September 10, 2026 23:27
jhurliman added a commit that referenced this pull request Sep 10, 2026
Stacked on #1 (`modernization/bazel-cmake`). Complete the previously
unvalidated Conan path, restore checked-in Make commands, and prepare
the 2.0.0 release and BCR submission files.

Replace the Conan 1 recipe with a Conan 2 header-library recipe with a
transitive Eigen dependency and a compiled/running consumer test.
Restore test/benchmark/coverage targets, update the Google Benchmark API
and compiler coverage paths, and remove obsolete Travis configuration.
Version metadata is synchronized across C++, CMake, Conan and Bzlmod.

Add a BCR metadata generator that reads the release archive's
MODULE.bazel and computes its source integrity. A separate test consumes
that checksum-verified archive through a generated registry with only
bazel_dep, without local_path_override. RELEASING.md documents the
actual tag-archive download and registry submission steps.

Validation: Conan 2.32 create/test_package passes locally; Make
regression, Google Benchmark smoke and LLVM coverage runs pass; the
generated-registry Bazel 9.2 consumer passes. CI adds Conan,
Make/coverage, and registry consumption alongside the parent Bazel/CMake
checks. Review #1's broken-Make-target finding is addressed here. No
tag, package upload, or external BCR PR is created before the reviewed
source is merged and released; those are the remaining publication
actions, not missing implementation.
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