feat(toolchain): build args support for remote builds#2583
Closed
abcxff wants to merge 1 commit intographite-base/2583from
Closed
feat(toolchain): build args support for remote builds#2583abcxff wants to merge 1 commit intographite-base/2583from
abcxff wants to merge 1 commit intographite-base/2583from
Conversation
Contributor
Author
NathanFlurry
requested changes
Jun 11, 2025
Member
NathanFlurry
left a comment
There was a problem hiding this comment.
- serialize args on rust side
- implement target
There was a problem hiding this comment.
PR Summary
Adds Docker build argument support for remote builds in Rivet's CI system, enabling dynamic configuration during build time through multiple components.
- Added new
cloud/packages/ci-manager/src/common.tswith utility functions for handling build argument escaping and conversion - Introduced
cloud/packages/ci-runner/entry.shto safely process build arguments using UNIT_SEP_CHAR (0x1F) delimiter - Modified
cloud/packages/ci-manager/src/types.tsto add requiredbuildArgs: Record<string, string>to BuildInfo interface - Enhanced
/buildsendpoint incloud/packages/ci-manager/src/server.tswith validation for build argument format and sanitization - Updated Kaniko execution in Docker and Rivet executors to properly handle space-containing build arguments
9 files reviewed, 7 comments
Edit PR Review Bot Settings | Greptile
55281e5 to
c2676b7
Compare
NathanFlurry
requested changes
Jun 12, 2025
8675015 to
fbbfba0
Compare
NathanFlurry
approved these changes
Jun 12, 2025
This was referenced Jun 13, 2025
This was referenced Jun 17, 2025
| `--destination=${args.destination}`, | ||
| `--upload-tar=${args.outputUrl}`, | ||
| `--dockerfile=${args.dockerfilePath}`, | ||
| ...(args.buildTarget ? [`--target='${args.buildTarget}'`] : []), |
Contributor
There was a problem hiding this comment.
The --target argument should not include single quotes around the value. This will cause the quotes to be passed literally to the Docker build process, which will fail to find the target.
Change:
...(args.buildTarget ? [`--target='${args.buildTarget}'`] : []),To:
...(args.buildTarget ? [`--target=${args.buildTarget}`] : []),
Suggested change
| ...(args.buildTarget ? [`--target='${args.buildTarget}'`] : []), | |
| ...(args.buildTarget ? [`--target=${args.buildTarget}`] : []), |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
This was referenced Jun 19, 2025
This was referenced Jun 20, 2025
Contributor
Merge activity
|
graphite-app Bot
pushed a commit
that referenced
this pull request
Jun 20, 2025
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes RVT-4787 <!-- If there are frontend changes, please include screenshots. -->
This was referenced Jun 20, 2025
Closed
This was referenced Jun 28, 2025
Closed
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.

Changes
RVT-4787