-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bazelrc
More file actions
77 lines (59 loc) · 2.73 KB
/
.bazelrc
File metadata and controls
77 lines (59 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# .bazelrc
#
# test strategy
# https://github.com/bazelbuild/bazel/blob/master/tools/test/test-setup.sh
common --enable_bzlmod=true
# Disable WORKSPACE file
common --noenable_workspace
# go test race detection needs cgo
# Disable C++ toolchain detection, or you get a weird error even with go and cgo disabled.
# ERROR: /home/das/Downloads/go_nix_simple/cmd/go_nix_simple/BUILD.bazel:34:8: Testing //cmd/go_nix_simple:go_nix_simple_test failed: (Exit 34): Remote Execution Failure:
# Invalid Argument: Failed to run command: Failed to start process: fork/exec external/bazel_tools/tools/test/test-setup.sh: no such file or directory
#common --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
# LLVM toolchain configuration
#common --incompatible_enable_cc_toolchain_resolution
#common --extra_toolchains=@llvm_toolchain//:all
# Remove any system C++ toolchain detection
# common --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
# Configuration for using Buildbarn on hp4.home
# Use 'build:hp4' to apply these flags to the build command when --config=hp4 is used
build:hp4 --remote_executor=grpc://hp4.home:8980
#build:hp4 --remote_cache=grpc://hp4.home:8980
# Worker {"datacenter":"amsterdam","hostname":"ubuntu-worker.example.com","rack":"3","slot":"10","thread":"4"}
build:hp4 --remote_instance_name=fuse
build:hp4 --remote_default_exec_properties=OSFamily=linux
build:hp4 --remote_default_exec_properties=container-image=docker://ghcr.io/catthehacker/ubuntu:act-22.04@sha256:5f9c35c25db1d51a8ddaae5c0ba8d3c163c5e9a4a6cc97acd409ac7eae239448
build:hp4 --remote_timeout=3600
# Shell toolchain configuration
build:hp4 --shell_executable=/bin/bash
#build:hp4 --incompatible_strict_action_env
# Force remote execution
build:hp4 --spawn_strategy=remote
# Configure specific strategies for remote execution
build:hp4 --strategy=GoCompile=remote
build:hp4 --strategy=GoLink=remote
build:hp4 --strategy=GoPackage=remote
build:hp4 --strategy=Genrule=remote
# Test strategy configuration - run tests locally without remote execution
build:hp4 --test_strategy=standalone
build:hp4 --strategy=TestRunner=local
build:hp4 --remote_download_outputs=all
# Remote execution settings
build:hp4 --noremote_local_fallback
build:hp4 --jobs=8
# Only keep OCI operations local
build:hp4 --strategy=OciImage=local
build:hp4 --strategy=OciPush=local
# # Python toolchain settings
# build:hp4 --incompatible_use_python_toolchains=true
# build:hp4 --extra_toolchains=//tools/python:python_toolchain
# Debug settings
build:hp4 --verbose_failures
build:hp4 --worker_verbose
build:hp4 --show_progress_rate_limit=0.5
# Optional: Download all remote outputs (useful for debugging)
# build:hp4 --remote_download_outputs=all
# Optional: Set concurrency (adjust based on hp4's resources)
# build:hp4 --jobs=16
# end