aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
52
akode-rs/exec-server/BUILD.bazel
Normal file
52
akode-rs/exec-server/BUILD.bazel
Normal file
@@ -0,0 +1,52 @@
|
||||
load("//:defs.bzl", "codex_rust_crate")
|
||||
load("//bazel/rules/testing/compat:exec_server_compat_test.bzl", "exec_server_compat_test")
|
||||
|
||||
exports_files(
|
||||
["src/proto/codex.exec_server.relay.v1.rs"],
|
||||
visibility = ["//akode-rs/exec-server/tests/support:__pkg__"],
|
||||
)
|
||||
|
||||
codex_rust_crate(
|
||||
name = "exec-server",
|
||||
crate_name = "akode_exec_server",
|
||||
crate_srcs = glob([
|
||||
"src/**/*.rs",
|
||||
"tests/unit/**/*.rs",
|
||||
]),
|
||||
deps_extra = [
|
||||
"@crates//:opentelemetry",
|
||||
"@crates//:opentelemetry_sdk",
|
||||
"@crates//:toml",
|
||||
],
|
||||
extra_binaries = [
|
||||
"//akode-rs/bwrap:bwrap",
|
||||
"//akode-rs/windows-sandbox-rs:akode-command-runner",
|
||||
"//akode-rs/windows-sandbox-rs:akode-windows-sandbox-setup",
|
||||
],
|
||||
integration_compile_data_extra = [
|
||||
"src/proto/codex.exec_server.relay.v1.rs",
|
||||
],
|
||||
# Keep the crate's tests single-threaded under Bazel because they install
|
||||
# process-global test-binary dispatch state, and the remote exec-server
|
||||
# cases already rely on serialization around the full CLI path.
|
||||
integration_test_args = ["--test-threads=1"],
|
||||
test_tags = ["no-sandbox"],
|
||||
unit_test_args = ["--test-threads=1"],
|
||||
)
|
||||
|
||||
exec_server_compat_test(
|
||||
name = "exec-server-current-version-test",
|
||||
comparison_binary = "//akode-rs/cli:codex",
|
||||
current_binary = "//akode-rs/cli:codex",
|
||||
)
|
||||
|
||||
# Preparation selects both releases; the normal Bazel test invocation runs them.
|
||||
exec_server_compat_test(
|
||||
name = "exec-server-stable-release-test",
|
||||
release = "@codex_release_latest_stable",
|
||||
)
|
||||
|
||||
exec_server_compat_test(
|
||||
name = "exec-server-historical-release-test",
|
||||
release = "@codex_release_historical_stable",
|
||||
)
|
||||
Reference in New Issue
Block a user