Skip to content

Fix arm64 Codex enclave image build - #11757

Merged
lpcox merged 1 commit into
mainfrom
lpcox-fix-arm64-codex-image
Nov 18, 2026
Merged

lpcox merged 1 commit into
mainfrom
lpcox-fix-arm64-codex-image

Conversation

@lpcox

@lpcox lpcox commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • select the native Codex package from Docker's TARGETARCH
  • map release amd64 builds to Codex x64 and arm64 builds to Codex arm64
  • fail closed for unsupported architectures
  • add regression coverage tied to the enclave-agent release architecture matrix

Validation

  • npx jest --config jest.config.js src/enclave/image-layout.test.ts --runInBand
  • npx eslint src/enclave/image-layout.test.ts --quiet
  • npm view @openai/[email protected] version os cpu --json --registry=https://packagefeedproxy.microsoft.io/npm/
  • commit hooks: full TypeScript build passed; lint completed with existing warnings and no errors

Fixes the Build Enclave Agent Image (arm64) failure in workflow run 44198392968.

Use Docker TARGETARCH so arm64 release builds install the matching native Codex payload.

Co-authored-by: Copilot App <[email protected]>
Copilot AI adaptive review requested due to automatic review settings November 17, 2026 23:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the change to select Codex’s native package by target architecture.

No open issues 🎉

What changed in this PR

Fixes the arm64 enclave-agent image build by selecting Codex’s native package for the Docker target architecture.

Changes:

  • Maps TARGETARCH=amd64 to Codex x64 and TARGETARCH=arm64 to Codex arm64.
  • Rejects unsupported architectures with an explicit error.
  • Adds regression checks tied to the enclave-agent release architecture matrix.
File Description
src/​enclave/​image-layout.test.ts Checks architecture mappings, unsupported-architecture handling, and alignment with the release matrix.
containers/​enclave/​Dockerfile Selects the native Codex package using TARGETARCH instead of hardcoding x64.

Review effort: Balanced (adaptive)

@lpcox
lpcox merged commit cad79b4 into main Nov 18, 2026
47 of 49 checks passed
@lpcox
lpcox deleted the lpcox-fix-arm64-codex-image branch November 18, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants