Skip to content

Commit

Permalink
chore: use aspect workflows RBE
Browse files Browse the repository at this point in the history
  • Loading branch information
kormide committed Aug 26, 2024
1 parent 6ab2008 commit d4dc724
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .aspect/workflows/bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ common --nobuild_runfile_links

# Allows tests to run bazelisk-in-bazel, since this is the cache folder used
common --test_env=XDG_CACHE_HOME

common:rbe --extra_execution_platforms=@aspect_bazel_lib//platforms:x86_64_linux_remote
common:rbe --host_platform=@aspect_bazel_lib//platforms:x86_64_linux_remote
common:rbe --remote_executor=unix:///mnt/ephemeral/buildbarn/.cache/bb_clientd/grpc
common:rbe --genrule_strategy=remote,local
common:rbe --jobs=32
common:rbe --remote_timeout=3600
5 changes: 5 additions & 0 deletions .aspect/workflows/config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# See https://docs.aspect.build/v/workflows/config
---
bazel:
flags:
- --config=rbe
tasks:
- format:
queue: aspect-small
- buildifier:
queue: aspect-small
- configure:
queue: aspect-small
bazel:
flags: [] # TODO: Aspect CLI does not support --config for configure cmd
- test:
hooks:
- type: before_task
Expand Down
12 changes: 12 additions & 0 deletions platforms/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
platform(
name = "x86_64_linux_remote",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
exec_properties = {
"OSFamily": "Linux",
"container-image": "docker://public.ecr.aws/docker/library/python@sha256:247105bbbe7f7afc7c12ac893be65b5a32951c1d0276392dc2bf09861ba288a6",
},
visibility = ["//visibility:public"],
)

0 comments on commit d4dc724

Please sign in to comment.