mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why The SQLite message board can queue native agent mail through app-server. In-memory boards previously relied on the host's notification callback for delivery. ## What changed Add `launch_in_memory_with_app_server` so runners can opt into the same bounded, queue-only delivery as SQLite via `thread/inject_items`. The host still resolves agent membership, and the shared notification client queues post previews without starting a turn. ## Testing Extend the app-server integration test to check that, after an app-server restart, a post from each backend reaches an idle worker exactly once on its next turn. The test also checks that app-server delivery bypasses the in-memory host's notification callback. GitOrigin-RevId: fc01b5e3f43dcfca5f43366f0b184c41dc07f9eb
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
load("//:defs.bzl", "codex_rust_crate")
|
|
load("//bazel/rules:runtime_package.bzl", "release_binary")
|
|
|
|
codex_rust_crate(
|
|
name = "app-server",
|
|
crate_name = "codex_app_server",
|
|
extra_binaries = [
|
|
"//codex-rs/bwrap:bwrap",
|
|
"//codex-rs/cli:codex",
|
|
"//codex-rs/code-mode-host:codex-code-mode-host",
|
|
"//codex-rs/message-board-mcp:codex-message-board-mcp",
|
|
"//codex-rs/rmcp-client:test_stdio_server",
|
|
],
|
|
integration_compile_data_extra = ["//codex-rs/message-board:tests/common/mod.rs"],
|
|
integration_test_timeout = "long",
|
|
run_tests_with_wine_exec = True,
|
|
test_shard_counts = {
|
|
# Note app-server-all-test has a large number of integration tests, so
|
|
# even a single shard can be quite slow. When there is a legitimate
|
|
# test failure in a shard, it will still get run 3x in total, which
|
|
# can cause us to exhaust our CI timeout if the shard happens to run
|
|
# long. Using a higher shard count for app-server-all-test should help
|
|
# mitigate this risk.
|
|
"app-server-all-test": 16,
|
|
"app-server-unit-tests": 8,
|
|
},
|
|
test_tags = ["no-sandbox"],
|
|
test_threads = select({
|
|
"@platforms//os:macos": 1,
|
|
"//conditions:default": 0,
|
|
}),
|
|
)
|
|
|
|
release_binary(
|
|
binary = ":codex-app-server",
|
|
)
|