feat: build standalone CLI binaries with PyInstaller + clean-room smoketest#318
Draft
BartoszBlizniak wants to merge 4 commits into
Conversation
…ketest Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Drop the linux-x86_64-gnu-only narrowing on PR events so every push exercises the full build + clean-room test matrix across all targets. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds standalone, no-Python-required CLI binaries built with PyInstaller, plus a clean-room smoketest workflow that builds and tests them across all target platforms.
What this PR adds:
packaging/pyinstaller/cloudsmith.spec+entry.py— PyInstaller onedir build (faster cold start than onefile; distributed as tar.gz / zip).entry.pyadds a frozen self-import sweep (CLOUDSMITH_SELFTEST) and UTF-8 stdout/stderr handling for legacy Windows consoles.packaging/constraints.txt— pinned, locked constraint set (exported fromuv.lock,--group binary --extra all) used to install the build environment reproducibly. Thebinariesworkflow verifies it matches the lockfile.packaging/smoketest.sh— offline + online (read-only) smoketests: import sweep,--version, per-command--helpsweep, keyring/auth path, AWS OIDC dep load, credential-helper docker offline + frozen-launcher self-reference, frozenmcp configure, and online whoami / list repos /mcp list_tools/ check service..github/workflows/binaries.yml— two-stage build → clean-room test matrix forlinux-{x86_64,aarch64}-{gnu,musl},macos-{arm64,x86_64},windows-x86_64. Builds in glibc (almalinux:8, glibc floor enforced <= 2.28) / musl (alpine) containers and native mac/Windows; tests download the artifact and run on clean runners that assert no Python is present. Includes a GitHub-OIDC online auth job.mcp.py_get_server_configandcredential_helpers/docker/installer.pynow detect a frozen (sys.frozen) binary and point the MCP/credential-helper launchers at the absolutesys.executableinstead of a barecloudsmithonPATH. Tests updated accordingly..github/workflows/zizmor.yml,.typos.toml— lint coverage for the new workflow.Type of Change
Additional Notes
Stacks on eng-12825 (uv + pyproject.toml packaging migration). Base:
eng-12825-migrate-cli-packaging-to-uv-pyprojecttomlat tip2e9e498.