From b46cd4b536a7c66658afb0a3f86522f5d03f8411 Mon Sep 17 00:00:00 2001 From: Simon Scatton Date: Mon, 3 Aug 2026 12:35:25 +0200 Subject: [PATCH 1/2] build(bazel): add OpenTelemetry crate targets Signed-off-by: Simon Scatton --- crates/openshell-otel/BUILD.bazel | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 crates/openshell-otel/BUILD.bazel diff --git a/crates/openshell-otel/BUILD.bazel b/crates/openshell-otel/BUILD.bazel new file mode 100644 index 0000000000..1a9ffae111 --- /dev/null +++ b/crates/openshell-otel/BUILD.bazel @@ -0,0 +1,17 @@ +load("@crates//:defs.bzl", "aliases", "all_crate_deps") +load("@rules_rs//rs:rust_library.bzl", "rust_library") +load("@rules_rs//rs:rust_test.bzl", "rust_test") + +rust_library( + name = "openshell-otel", + srcs = glob(["src/**/*.rs"]), + aliases = aliases(), + visibility = ["//visibility:public"], + deps = all_crate_deps(normal = True), +) + +rust_test( + name = "openshell-otel_test", + crate = ":openshell-otel", + deps = all_crate_deps(normal_dev = True), +) From cc82541439304fc67aa4dda6f525dbfa78db0139 Mon Sep 17 00:00:00 2001 From: Simon Scatton Date: Mon, 3 Aug 2026 12:35:52 +0200 Subject: [PATCH 2/2] fix(bazel): provide sandbox test policy input Signed-off-by: Simon Scatton --- crates/openshell-sandbox/BUILD.bazel | 1 + crates/openshell-supervisor-network/BUILD.bazel | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/crates/openshell-sandbox/BUILD.bazel b/crates/openshell-sandbox/BUILD.bazel index 94baee6a61..347dd5d595 100644 --- a/crates/openshell-sandbox/BUILD.bazel +++ b/crates/openshell-sandbox/BUILD.bazel @@ -30,6 +30,7 @@ rust_binary( rust_test( name = "openshell-sandbox_lib_test", + compile_data = ["//crates/openshell-supervisor-network:sandbox-policy-rego"], crate = ":openshell-sandbox", crate_features = ["telemetry"], deps = all_crate_deps(normal_dev = True), diff --git a/crates/openshell-supervisor-network/BUILD.bazel b/crates/openshell-supervisor-network/BUILD.bazel index 06bac49526..a36873cae7 100644 --- a/crates/openshell-supervisor-network/BUILD.bazel +++ b/crates/openshell-supervisor-network/BUILD.bazel @@ -2,6 +2,12 @@ load("@crates//:defs.bzl", "aliases", "all_crate_deps") load("@rules_rs//rs:rust_library.bzl", "rust_library") load("@rules_rs//rs:rust_test.bzl", "rust_test") +filegroup( + name = "sandbox-policy-rego", + srcs = ["data/sandbox-policy.rego"], + visibility = ["//crates/openshell-sandbox:__pkg__"], +) + rust_library( name = "openshell-supervisor-network", srcs = glob(["src/**/*.rs"]),