Skip to content

chore(ci): cmake 4 - #807

Merged
stepmikhaylov merged 1 commit into
developfrom
chore/cmake4
May 13, 2026
Merged

stepmikhaylov merged 1 commit into
developfrom
chore/cmake4

Conversation

@stepmikhaylov

@stepmikhaylov stepmikhaylov commented May 11, 2026 •

Copy link
Copy Markdown
Collaborator

CMake 4

Removes the custom CMake tarball install in favor of standard package managers, and lifts the artificial CMake 4 version ceiling.

Changes

scripts/compiler-unix.sh

  • macOS/Linux: Replace manual wget/curl + tarball extraction + symlinking of CMake 3.30.1 with brew install/upgrade cmake and apt install cmake.
  • Remove the CMake 4+ downgrade guard — the script previously treated CMake ≥ 4 as "too new" and forced a downgrade to 3.30.1; that block is gone.
  • Remove the wget prerequisite check on Linux (no longer needed).

packages/server/engine-core/apLib/**/*.hpp

  • Fixed minor new compilation warnings introduced by the CMake 4 build.

Platform status

Platform CMake version How installed
macOS 4.x (latest via Homebrew) brew install cmake
Linux (Ubuntu 22.04 / 24.04) 3.x (apt ceiling) apt install cmake
Windows 3.x VS component VC.CMake.Project (unchanged)

Linux and Windows will continue using CMake 3.x until their respective package sources ship a 4.x release; the build is confirmed compatible on macOS with CMake 4.

Summary by CodeRabbit

Release Notes

  • Style

    • Standardized formatting of internal literal operator declarations across multiple components for consistency.
  • Chores

    • Simplified CMake dependency checking in the build system for Linux and macOS, now only enforcing minimum version requirements instead of managing pinned versions.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 11, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This PR reformats user-defined literal operator declarations to remove spaces between operator"" and literal suffixes across six library headers, and simplifies CMake version enforcement in build scripts to establish a uniform 3.19 minimum via package managers.

Changes

User-Defined Literal Operator Formatting

Layer / File(s) Summary
Remove spacing in user-defined literal operator declarations
packages/server/engine-core/apLib/file/pathLiterals.hpp, packages/server/engine-core/apLib/json/toJson.hpp, packages/server/engine-core/apLib/literals.hpp, packages/server/engine-core/apLib/memory/literals.hpp, packages/server/engine-core/apLib/string/literals.hpp
All user-defined literal operators are reformatted from operator"" _suffix to operator""_suffix across path (_pth), JSON (_json), size (_tb, _gb, _mb, _kb, _b), URL (_url), memory view (_dv), and string/text literals (_t, _utf8, _utf16, _utf32, _txtos, _tv, _itv), conforming to C++ standard syntax while preserving all signatures and overload sets.

CMake Version Management

Layer / File(s) Summary
Enforce CMake 3.19 minimum on Linux and macOS
scripts/compiler-unix.sh
Linux and macOS CMake detection functions are simplified to verify minimum version 3.19 and schedule package manager upgrades (sudo apt install on Linux; brew install/brew upgrade on macOS) when needed, removing prior pinned release downloads and downgrade logic.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

A rabbit hops through spaces,
operator"" now clean,
CMake finds its place—
3.19 builds lean. 🐰✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 17.14% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore(ci): cmake 4' directly refers to the main objective of the PR—updating CMake support to version 4 across the CI configuration.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/cmake4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the builder Node builder tooling and ./builder workflows label May 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the ci/cd CI/CD and build system label May 12, 2026
@github-actions github-actions Bot removed the ci/cd CI/CD and build system label May 12, 2026
@stepmikhaylov
stepmikhaylov marked this pull request as ready for review May 12, 2026 16:19

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/server/CMakeLists.txt`:
- Around line 12-14: The comment above cmake_minimum_required(VERSION 3.19
FATAL_ERROR) is misleading about vcpkg; update or remove it: either delete the
"to match vcpkg toolchain requirements" clause and state the real rationale for
requiring 3.19, or reword to clarify that this project intentionally requires a
CMake version (3.19) higher than vcpkg's minimum (3.7.2); ensure the comment
directly references the cmake_minimum_required line so future readers understand
why 3.19 is chosen.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4d5ab021-a22e-4fe5-be05-579eb97b830e

📥 Commits

Reviewing files that changed from the base of the PR and between 421a271 and 82bc400.

📒 Files selected for processing (7)
  • packages/server/CMakeLists.txt
  • packages/server/engine-core/apLib/file/pathLiterals.hpp
  • packages/server/engine-core/apLib/json/toJson.hpp
  • packages/server/engine-core/apLib/literals.hpp
  • packages/server/engine-core/apLib/memory/literals.hpp
  • packages/server/engine-core/apLib/string/literals.hpp
  • scripts/compiler-unix.sh

Comment thread packages/server/CMakeLists.txt Resolved
dsapandora
dsapandora previously approved these changes May 12, 2026

@dsapandora dsapandora 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.

+1

asclearuc
asclearuc previously approved these changes May 12, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@scripts/compiler-unix.sh`:
- Around line 224-239: The check_linux_cmake function currently enqueues a plain
"sudo apt install -y cmake" when the detected CMake (CMAKE_VERSION) is <3.19
which on Ubuntu 20.04 (focal) will install only 3.16; update check_linux_cmake
to detect focal/Ubuntu-20.04 (or more generally when apt CMake <3.19) and
instead add commands to configure Kitware's APT repository (add the Kitware apt
repository, add the repository key, run apt update) before installing cmake via
COMMANDS; alternatively, if you choose not to support focal, remove focal from
supported distributions list or append a clear notice to the script
output/documentation that Ubuntu 20.04 is unsupported—make the change near the
check_linux_cmake function and the use of COMMANDS/CMAKE_VERSION so the queued
commands will actually install CMake 3.19+.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: a75b075a-73c9-47ae-b69b-20153a1c5021

📥 Commits

Reviewing files that changed from the base of the PR and between 82bc400 and 9c9fbb5.

📒 Files selected for processing (6)
  • packages/server/engine-core/apLib/file/pathLiterals.hpp
  • packages/server/engine-core/apLib/json/toJson.hpp
  • packages/server/engine-core/apLib/literals.hpp
  • packages/server/engine-core/apLib/memory/literals.hpp
  • packages/server/engine-core/apLib/string/literals.hpp
  • scripts/compiler-unix.sh

Comment thread scripts/compiler-unix.sh Resolved
@stepmikhaylov
stepmikhaylov merged commit c89cdbc into develop May 13, 2026
28 of 29 checks passed
@stepmikhaylov
stepmikhaylov deleted the chore/cmake4 branch May 13, 2026 10:25
AviNormie pushed a commit to AviNormie/rocketride-server that referenced this pull request Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builder Node builder tooling and ./builder workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants