Skip to content

refactor: runtime asset installs around prefix libexec layout#132

Open
lox wants to merge 8 commits intomainfrom
codex/prefix-libexec-install-layout
Open

refactor: runtime asset installs around prefix libexec layout#132
lox wants to merge 8 commits intomainfrom
codex/prefix-libexec-install-layout

Conversation

@lox
Copy link
Copy Markdown
Contributor

@lox lox commented Mar 21, 2026

Summary

  • stage build artifacts under dist/<os>-<arch>/bin and dist/<os>-<arch>/libexec/cleanroom
  • install and release runtime assets under ${prefix}/libexec/cleanroom, keeping cleanroom as the only public CLI in ${prefix}/bin
  • centralize runtime asset lookup and update docs, CI, and helper paths to match the new layout

Testing

  • bash -n scripts/benchmark-sandbox-workloads.sh scripts/benchmark-tti.sh scripts/bootstrap-buildkite-agent.sh scripts/bootstrap-cleanroom-host.sh scripts/build-darwin-vz-helper.sh scripts/build-go.sh scripts/ci-cleanroom-e2e.sh scripts/ci-darwin-vz-e2e.sh scripts/ci-darwin-vz-vmnet-e2e.sh scripts/cleanroom-root-helper.sh scripts/install-global.sh scripts/install-go.sh scripts/install.sh scripts/prepare-firecracker-image.sh scripts/dist-layout.sh
  • go test ./internal/runtimeassets ./internal/backend/darwinvz ./internal/backend/firecracker ./scripts
  • go test ./...

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe402efc9f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lox lox changed the title Refactor runtime asset installs around prefix libexec layout refactor: runtime asset installs around prefix libexec layout Mar 21, 2026
@lox lox force-pushed the codex/prefix-libexec-install-layout branch from e32b065 to 97eec4e Compare March 21, 2026 23:30
@lox
Copy link
Copy Markdown
Contributor Author

lox commented Mar 21, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 36c250640d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


if helper_supports_capability_probe "$candidate"; then
if [[ -n "${PREFERRED_PRIVILEGED_HELPER_PATH:-}" && "$candidate" != "$PREFERRED_PRIVILEGED_HELPER_PATH" ]]; then
echo "falling back from $PREFERRED_PRIVILEGED_HELPER_PATH to $candidate for non-interactive helper access"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Send helper fallback log to stderr

resolve_privileged_helper_path is used via command substitution (PRIVILEGED_HELPER_PATH="$(resolve_privileged_helper_path)"), but in the fallback case it writes both a status message and the selected path to stdout. When CLEANROOM_PRIVILEGED_HELPER_PATH is set but unusable and the script falls back to another helper, PRIVILEGED_HELPER_PATH becomes a multi-line string containing the log message, so subsequent sudo -n "$PRIVILEGED_HELPER_PATH" capabilities calls fail even though a valid fallback helper exists.

Useful? React with 👍 / 👎.

@lox lox force-pushed the codex/prefix-libexec-install-layout branch from 36c2506 to b5244a4 Compare March 22, 2026 06:25
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.

1 participant