Skip to content

Conversation

@palfrey
Copy link
Member

@palfrey palfrey commented Oct 13, 2025

Description

Builds the examples in toolchain-examples so we don't accidentally break them.

Type of change

Please delete options that aren't relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Mostly via the test step added in this PR, which tests everything in https://nativelink.com/docs/rbe/remote-execution-examples (with the exception of abseil-cpp and the rust target, both of which have errors with remote execution, as documented)

Checklist

  • Updated documentation if needed
  • Tests added/amended
  • bazel test //... passes locally
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

@@ -1,6 +1,3 @@
# Don't use the host's default PATH and LD_LIBRARY_PATH.
build --incompatible_strict_action_env

Copy link
Member Author

@palfrey palfrey Oct 13, 2025

Choose a reason for hiding this comment

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

This causes env: 'bash': No such file or directory in the Java, Go and Python examples, even with bazel-contrib/rules_go#4465 to improve bash paths.

@@ -7,10 +7,10 @@ module(
compatibility_level = 0,
)

bazel_dep(name = "platforms", version = "0.0.11")
bazel_dep(name = "platforms", version = "1.0.0")
Copy link
Member Author

Choose a reason for hiding this comment

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

Various upgrades were done for improved Nix compatibility, plus things that transitively depended on those.

@palfrey palfrey marked this pull request as ready for review October 13, 2025 13:45
@palfrey palfrey force-pushed the toolchain-examples-ci branch from 7a01bc0 to 7ca1bb8 Compare October 14, 2025 11:10
@amankrx
Copy link
Collaborator

amankrx commented Oct 14, 2025

I tested these examples out as specified in the docs for the toolchain examples. It works fine on my machine with the basic_cas example. There is just one modification that we can do here is to include the --remote_instance_name=main flag in the examples, otherwise we get this error:

 Testing //python:python failed: Failed to query remote execution capabilities: Remote execution is not supported by the remote server, or the current account is not authorized to use remote execution

@palfrey palfrey marked this pull request as draft October 14, 2025 14:47
@palfrey palfrey force-pushed the toolchain-examples-ci branch from 7ca1bb8 to eedad85 Compare October 14, 2025 15:35
@palfrey palfrey force-pushed the toolchain-examples-ci branch from eedad85 to 777b506 Compare October 14, 2025 15:37
@palfrey palfrey force-pushed the toolchain-examples-ci branch from 777b506 to 29b44b9 Compare October 14, 2025 20:04
Copy link
Collaborator

@amankrx amankrx left a comment

Choose a reason for hiding this comment

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

Tested locally on a Mac machine. Works as expected.

@palfrey palfrey merged commit 2d08aba into TraceMachina:main Oct 16, 2025
31 checks passed
@palfrey palfrey deleted the toolchain-examples-ci branch October 17, 2025 08:24
MarcusSorealheis pushed a commit to MarcusSorealheis/nativelink that referenced this pull request Nov 3, 2025
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.

3 participants