Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append buck2 toolchain with additional packages #1264

Conversation

adam-singer
Copy link
Member

@adam-singer adam-singer commented Aug 14, 2024

Description

Append buck2 toolchain with additional packages

A toolchain for buck2 depends on more than llvm and rust,
appending more packages for compiling buck2 using remote
execution on nativelink. This mirrors similar to what is
used in buck2/flake.nix

create-worker-experimental.nix now flattens out the container
image layout to a standard unix filesystem layout. Using the
nix store layout requires client knowledge of toolchains and
a similar setup as rbe gen/local remote execution which isn't
available at the moment.

Fixes #1263

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Build with nix and copy to local docker daemon.
Run a docker shell and inspected environment.

nix run .#nativelink-worker-buck2-toolchain.copyToDockerDaemon
docker run --rm -it --entrypoint bash nativelink-worker-buck2-toolchain:<generated label>

This change is Reviewable

A toolchain for buck2 depends on more than llvm and rust,
appending more packages for compiling buck2 using remote
execution on nativelink. This mirrors similar to what is
used in [buck2/flake.nix](https://github.com/facebook/buck2/blob/main/flake.nix)

`create-worker-experimental.nix` now flattens out the container
image layout to a standard unix filesystem layout. Using the
nix store layout requires client knowledge of toolchains and
a similar setup as rbe gen/local remote execution which isn't
available at the moment.
Copy link
Member

@aaronmondal aaronmondal left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained, and all files reviewed, and pending CI: Installation / macos-13, Remote / large-ubuntu-22.04 (waiting on @allada)

@adam-singer adam-singer merged commit 042f4a5 into TraceMachina:main Aug 15, 2024
27 checks passed
@adam-singer adam-singer deleted the adams/flatten-out-nix-experimental-buck2 branch August 15, 2024 17:08
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.

Flatten out create-worker-experimental.nix
3 participants