Skip to content

fix(protocol): make local image test Bazel-friendly - #11799

Merged
joshka-oai merged 1 commit into
mainfrom
joshka/fix-bazel-protocol-test
Feb 14, 2026
Merged

joshka-oai merged 1 commit into
mainfrom
joshka/fix-bazel-protocol-test

Conversation

@joshka-oai

Copy link
Copy Markdown
Contributor

Fixes Bazel build failure in //codex-rs/protocol:protocol-unit-tests.

The test used include_bytes! to read a PNG from codex-core assets; Cargo can read it,
but Bazel sandboxing can't, so the crate fails to compile.

This change inlines a tiny valid PNG in the test to keep it hermetic.

Related regression: #10590 (cc: @charley-oai)

The protocol unit test used include_bytes! with a path into codex-core assets.
That works under Cargo but fails to compile under Bazel sandboxing.

Inline a tiny valid PNG so the test is hermetic across build systems.
@joshka-oai
joshka-oai enabled auto-merge (squash) February 14, 2026 00:41
@joshka-oai
joshka-oai merged commit 067f8b1 into main Feb 14, 2026
53 of 55 checks passed
@joshka-oai
joshka-oai deleted the joshka/fix-bazel-protocol-test branch February 14, 2026 00:53
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants