codex/codex-rs/exec-server/tests
felixxia-oai dbe2f6d528 Expose a stable executor build identity in environment metadata (#43513)
## Why

Executor compatibility checks need a build identity that distinguishes commits
and compiler targets independently of the package release version.

## What changed

- Add optional `providerId` to exec-server environment metadata, cached at startup
  and returned by initialization and `environment/info`.
- Derive the ID as SHA-256 of `git:<lowercase commit>:<target>`. It identifies a
  standard build configuration, not exact executable bytes, and is omitted when
  the commit stamp or target is unavailable or invalid.
- Embed the compiler target in `BuildInfo`, preserve compatibility with historical
  metadata without a target, and stamp Cargo release builds with `STABLE_GIT_COMMIT`.
- Group Bazel build-script argument files under one `--arg-file` flag to reduce
  Windows command-line length while preserving file order.

## Testing

Add deterministic build-ID vectors across targets, commit normalization and invalid
input coverage, and historical metadata compatibility tests. Extend exec-server
coverage for metadata caching and ensure runtime environment overrides cannot
replace the executor's build identity.

GitOrigin-RevId: 125a18c23de7ad006571940ba305836376c983f4
History 2026-09-07 16:55:06 +00:00
..
common Expose a stable executor build identity in environment metadata (#43513) 2026-09-07 16:55:06 +00:00
file_system Require filesystem backends to implement directory walks (#39749) 2026-08-20 17:16:52 +00:00
relay Retry confirmed remote registration conflicts (#41219) 2026-08-27 23:24:21 +00:00
support Move relay helpers into exec-server test support (#40712) 2026-08-25 21:31:40 +00:00
unit Recover deferred environments after provisioning failure (#42388) 2026-09-02 23:49:29 +00:00
accepted_websocket.rs Add direct SigV4 transport to exec-server (#42781) 2026-09-04 14:49:46 +00:00
capability_discovery.rs Batch sandboxed capability root discovery (#40443) 2026-08-24 17:39:16 +00:00
chatgpt_cloudflare_affinity.rs Add opt-in concurrent exec-server request dispatch (#36987) 2026-08-04 22:28:15 +00:00
deferred_environment.rs Expose the last accepted environment ready report (#42403) 2026-09-03 01:12:36 +00:00
environment.rs Recover capability discovery after executor disconnects (#38420) 2026-08-13 19:14:30 +00:00
environment_config.rs Propagate executor home directories into sandbox contexts (#41204) 2026-08-27 20:44:47 +00:00
exec_process.rs Allow trusted symlinks beneath CODEX_HOME on macOS (#42716) 2026-09-04 10:12:03 +00:00
file_stream.rs Harden unsandboxed patch filesystem access (#39659) 2026-08-20 08:10:08 +00:00
file_system_unix.rs Batch sandboxed capability root discovery (#40443) 2026-08-24 17:39:16 +00:00
file_system_windows.rs Improve no-follow filesystem behavior across platforms (#39666) 2026-08-20 08:32:11 +00:00
forward.rs Add attributed exec process lifecycle telemetry (#42373) 2026-09-02 21:58:58 +00:00
health.rs Expose a stable executor build identity in environment metadata (#43513) 2026-09-07 16:55:06 +00:00
http_client.rs Cache executor metadata from initialization (#40343) 2026-08-24 06:43:07 +00:00
http_request.rs Resolve HTTP MCP bearer tokens in executor environments (#39926) 2026-08-21 12:50:15 +00:00
http_request_logging.rs Decouple exec-server HTTP from reqwest types (#35059) 2026-07-24 00:53:05 +00:00
initialize.rs Expose a stable executor build identity in environment metadata (#43513) 2026-09-07 16:55:06 +00:00
process.rs Expose a stable executor build identity in environment metadata (#43513) 2026-09-07 16:55:06 +00:00
relay.rs Recover deferred environments after provisioning failure (#42388) 2026-09-02 23:49:29 +00:00
selected_capability_roots.rs Initialize execution environments with the final HTTP policy (#34995) 2026-07-23 19:24:41 +00:00
websocket.rs [codex] Trace exec-server JSON-RPC requests (#27466) 2026-06-24 12:50:18 -07:00