Files
codex/codex-rs/plugin-archive-verification/BUILD.bazel
T
Alex Ionescu 7670578418 Report remote plugin archive verification in install telemetry (#65330)
## Why

Remote plugin install telemetry needs enough detail to distinguish archive
verification failures from other bundle errors and associate those failures
with a specific release when its ID is available.

## What changed

- Include the archive verification outcome in successful app-server install
  events. Classify verification failures by reason and attach the
  `plugin_release_id` when available. Use the catalog plugin ID for bundle
  events when it is available.
- Export `codex.plugins.archive_verification` through the configured
  OpenTelemetry logger during standalone CLI installs.

## Testing

App-server tests check successful and failed install analytics. A CLI
integration test checks that an archive verification failure exports the
expected event fields and leaves the plugin uninstalled.

GitOrigin-RevId: ea6cab1d04467d63f43fbd17e3d0a122fad15435
2026-12-02 20:34:56 +00:00

24 lines
781 B
Python

load("//:defs.bzl", "codex_rust_crate")
exports_files(
["testdata/plugin_archive_signing_v1.json"],
visibility = ["//codex-rs/core-plugins:__pkg__"],
)
codex_rust_crate(
name = "plugin-archive-verification",
compile_data = ["testdata/plugin_archive_signing_v1.json"],
crate_name = "codex_plugin_archive_verification",
extra_binaries = [
"//codex-rs/app-server:codex-app-server",
"//codex-rs/app-server:exec-server",
"//codex-rs/bwrap:bwrap",
"//codex-rs/cli:codex",
"//codex-rs/code-mode-host:codex-code-mode-host",
],
integration_compile_data_extra = ["testdata/plugin_archive_signing_v1.json"],
integration_test_timeout = "long",
run_tests_with_wine_exec = True,
test_tags = ["no-sandbox"],
)