Skip to content

Commit

Permalink
Revert "Update entry point to new worker bundle locale"
Browse files Browse the repository at this point in the history
This reverts commit 7c970c3.
  • Loading branch information
Ekrekr committed Aug 11, 2023
1 parent a3b4071 commit 6fdb5f6
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 189 deletions.
28 changes: 10 additions & 18 deletions sandbox/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,22 @@ cc_binary(
srcs = ["compile_executor.cc"],
args = [
"$(execpath @nodejs_linux_amd64//:node_bin)",
"$(execpath :copy_worker_bundle)",
"$(locations //api:vm/compile)",
# "$(locations //packages/@dataform/cli:worker_bundle)",
],
copts = sapi_platform_copts(),
data = [
":copy_worker_bundle",
"@nodejs_linux_amd64//:node_bin",
"//api:vm/compile",
# "//packages/@dataform/cli:worker_bundle",
],
deps = [
"@bazel_tools//tools/cpp/runfiles",
"@com_google_absl//absl/base:core_headers",
"@com_google_sandboxed_api//sandboxed_api/sandbox2",
"@com_google_sandboxed_api//sandboxed_api/sandbox2:comms",
"@com_google_sandboxed_api//sandboxed_api/sandbox2/util:bpf_helper",
"@com_google_sandboxed_api//sandboxed_api/util:runfiles",
"@com_google_absl//absl/base:core_headers",
"@bazel_tools//tools/cpp/runfiles",
],
)

Expand All @@ -29,24 +31,14 @@ load("//testing:index.bzl", "ts_test_suite")
ts_test_suite(
name = "test",
srcs = glob(["*.spec.ts"]),
args = ["$(execpath :compile_executor)"],
data = [":compile_executor"],
args = ["$(execpath :compile_executor)"],
deps = [
"//common/errors",
"//testing:testing",
"//protos:ts",
"//testing",
"//common/errors",
"@npm//@types/chai",
"@npm//@types/node",
"@npm//chai",
],
)

# Worker bundle needs to be copied over into packages, as deps files are only
# included in the root directory of package folders.
genrule(
name = "copy_worker_bundle",
srcs = ["//sandbox/vm:worker_bundle"],
outs = ["worker_bundle.js"],
cmd = "cp $< $@",
output_to_bindir = 1,
)
)
Loading

0 comments on commit 6fdb5f6

Please sign in to comment.