fix(native): Incorrect release build and make errors#26997
Merged
czentgr merged 1 commit intoprestodb:masterfrom Jan 21, 2026
Merged
fix(native): Incorrect release build and make errors#26997czentgr merged 1 commit intoprestodb:masterfrom
czentgr merged 1 commit intoprestodb:masterfrom
Conversation
The recent runtime images published did not build with the correct CMake options as intended. This PR fixes two issues: 1. Ensure the cmake flags are passed correctly in the publish step 2. Ensure that make fails if an error is encountered in one of the sub-commands.
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts native execution build and release pipeline so that CMake flags are correctly propagated during Docker image builds and make targets fail fast when sub-commands fail. Sequence diagram for release publish job with corrected CMake flagssequenceDiagram
participant GitHubActions
participant DockerCompose
participant CMake
participant Make
participant RuntimeImage
GitHubActions->>DockerCompose: docker compose build --build-arg EXTRA_CMAKE_FLAGS
DockerCompose->>CMake: Invoke cmake with EXTRA_CMAKE_FLAGS
CMake->>Make: Configure build system with flags
Make->>Make: Build native binaries with configured flags
Make-->>DockerCompose: Build result (native binaries)
DockerCompose-->>RuntimeImage: Embed binaries into runtime image
RuntimeImage-->>GitHubActions: Publishable native runtime image
Flow diagram for updated native Make targets and failure propagationflowchart TD
A[Start make target] --> B{Target}
B -->|velox-submodule| C[git submodule sync --recursive]
C -->|on success| D[git submodule update --init --recursive]
C -->|on failure| Z[Make fails]
B -->|debug| E[Invoke make cmake BUILD_DIR=debug BUILD_TYPE=Debug]
E -->|on success| F[Invoke make build BUILD_DIR=debug]
E -->|on failure| Z
B -->|release| G[Invoke make cmake BUILD_DIR=release BUILD_TYPE=Release]
G --> H[Invoke make build BUILD_DIR=release]
B -->|cmake-and-build| I[cmake -B build_dir with CMAKE_FLAGS and EXTRA_CMAKE_FLAGS]
I -->|on success| J[cmake --build build_dir -j NUM_THREADS]
I -->|on failure| Z
F --> K[Debug binaries built]
H --> L[Release binaries built]
J --> M[Configured and built without submodule update]
K --> Y[End]
L --> Y
M --> Y
Z --> Y[End with failure]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
majetideepak
approved these changes
Jan 21, 2026
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- For
cmake-and-build, consider reusing the existingcmakeandbuildtargets (e.g., via$(MAKE) cmake ...and$(MAKE) build ...) to avoid duplicating the configure/build logic and reduce the risk of these paths drifting apart.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- For `cmake-and-build`, consider reusing the existing `cmake` and `build` targets (e.g., via `$(MAKE) cmake ...` and `$(MAKE) build ...`) to avoid duplicating the configure/build logic and reduce the risk of these paths drifting apart.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This was referenced Mar 31, 2026
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The recent runtime images published did not build
with the correct CMake options as intended.
This PR fixes two issues:
Fixes: #26996
Description
Motivation and Context
Impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.