Skip to content

Conversation

@abcxff
Copy link
Contributor

@abcxff abcxff commented Jun 11, 2025

Changes

RVT-4787

Copy link
Contributor Author

abcxff commented Jun 11, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 11, 2025

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: b90675b
Status:🚫  Build failed.

View logs

@abcxff abcxff requested a review from NathanFlurry June 11, 2025 23:02
Copy link
Member

@NathanFlurry NathanFlurry left a comment

Choose a reason for hiding this comment

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

  • serialize args on rust side
  • implement target

@abcxff abcxff requested a review from NathanFlurry June 11, 2025 23:36
@abcxff abcxff marked this pull request as ready for review June 11, 2025 23:38
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

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.ts with utility functions for handling build argument escaping and conversion
  • Introduced cloud/packages/ci-runner/entry.sh to safely process build arguments using UNIT_SEP_CHAR (0x1F) delimiter
  • Modified cloud/packages/ci-manager/src/types.ts to add required buildArgs: Record<string, string> to BuildInfo interface
  • Enhanced /builds endpoint in cloud/packages/ci-manager/src/server.ts with 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

@abcxff abcxff force-pushed the 06-11-feat_toolchain_build_args_support_for_remote_builds branch from 55281e5 to c2676b7 Compare June 12, 2025 00:13
@abcxff abcxff force-pushed the 06-11-feat_toolchain_build_args_support_for_remote_builds branch 2 times, most recently from 8675015 to fbbfba0 Compare June 12, 2025 02:06
@abcxff abcxff requested a review from NathanFlurry June 12, 2025 02:07
@abcxff abcxff changed the base branch from 06-09-feat_toolchain_remote_build_method to graphite-base/2583 June 12, 2025 22:52
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 13, 2025

Deploying rivet-studio with  Cloudflare Pages  Cloudflare Pages

Latest commit: b90675b
Status:🚫  Build failed.

View logs

@abcxff abcxff changed the base branch from graphite-base/2583 to 06-09-feat_toolchain_remote_build_method June 13, 2025 17:13
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 13, 2025

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

Latest commit: b90675b
Status:🚫  Build failed.

View logs

`--destination=${args.destination}`,
`--upload-tar=${args.outputUrl}`,
`--dockerfile=${args.dockerfilePath}`,
...(args.buildTarget ? [`--target='${args.buildTarget}'`] : []),
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 20, 2025

Merge activity

  • Jun 20, 7:23 PM UTC: NathanFlurry added this pull request to the Graphite merge queue.
  • Jun 20, 7:24 PM UTC: CI is running for this pull request on a draft pull request (#2631) due to your merge queue CI optimization settings.
  • Jun 20, 7:24 PM UTC: Merged by the Graphite merge queue via draft PR: #2631.

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. -->
@graphite-app graphite-app bot closed this Jun 20, 2025
@graphite-app graphite-app bot deleted the 06-11-feat_toolchain_build_args_support_for_remote_builds branch June 20, 2025 19:24
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