-
Notifications
You must be signed in to change notification settings - Fork 4.4k
build: bump ZIG_COMMIT_PARALLEL to 445fc0cbba #29097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 The PR was merged before the autobuild release for
445fc0cbba4eea579e5c846f2b8be7c9bdc4e1ccwas published on oven-sh/zig, causing all bootstrap asset URLs to return HTTP 404. Every macOS and Linux developer pulling main will fail at the zig compiler fetch step; the fix is to either wait for the autobuild workflow to complete and publish the release, or revert and re-merge once it is available.Extended reasoning...
What the bug is:
ZIG_COMMIT_PARALLELinscripts/build/zig.ts(line 42) was bumped to445fc0cbba4eea579e5c846f2b8be7c9bdc4e1cc, but the autobuild release tagautobuild-445fc0cbba4eea579e5c846f2b8be7c9bdc4e1ccdoes not yet exist on the oven-sh/zig GitHub repository. This means any URL constructed byzigDownloadUrl()pointing at that release will return HTTP 404. The PR description itself contained an explicit guard: "Don't merge until autobuild for445fc0cbbafinishes on oven-sh/zig" — this gate was not respected at merge time (commitd85cf23).Specific code path that triggers it:
defaultZigCommit(ci=false, hostOs)returnsZIG_COMMIT_PARALLELfor all non-CI, non-Windows platforms (i.e., macOS and Linux local dev builds). This value flows intocfg.zigCommit, which is used byzigDownloadUrl()to construct the URL:https://github.com/oven-sh/zig/releases/download/autobuild-${cfg.zigCommit}/${zipName}.fetchZig()then callsdownloadWithRetry(url, ...)against this 404-returning URL.Why existing code does not prevent it: There is no runtime check verifying the release exists before building the download URL. The process gate was entirely manual (the NOTE in the PR description), and it was bypassed at merge time.
downloadWithRetry()will simply receive HTTP 404 responses and ultimately fail, halting the build.Impact: Any macOS or Linux developer who runs a local Bun build after pulling
mainwill see a fatal error during the zig compiler fetch step. The stableZIG_COMMIT(used by CI and Windows) is unaffected; this only impactsZIG_COMMIT_PARALLELwhich is the path taken for all non-CI, non-Windows builds.Step-by-step proof:
d85cf23settingZIG_COMMIT_PARALLEL = "445fc0cbba4eea579e5c846f2b8be7c9bdc4e1cc".defaultZigCommit(false, "darwin")returnsZIG_COMMIT_PARALLEL.zigDownloadUrl()constructshttps://github.com/oven-sh/zig/releases/download/autobuild-445fc0cbba4eea579e5c846f2b8be7c9bdc4e1cc/bootstrap-aarch64-macos-none.zip.bootstrap-x86_64-linux-musl.zip,bootstrap-aarch64-macos-none.zip,bootstrap-x86_64-macos-none.zip(and aarch64-linux-musl).git ls-remote --tagsshows noautobuild-445fc0cbba...tag on oven-sh/zig.downloadWithRetry()fails; local build aborts.Addressing the refutation: The refutation claims the autobuild was "presumably complete at merge time" since the PR was merged. However, four independent verifiers each performed live curl checks specifically against
445fc0cbba4eea579e5c846f2b8be7c9bdc4e1cc(not the prior intermediate hashc38724a979checked by CodeRabbit) and all received HTTP 404. The refutation assertion is contradicted by direct empirical evidence. The issue will self-resolve once the autobuild workflow completes, but the premature merge has created a broken state for all local macOS/Linux developers in the interim.How to fix: Wait for the
autobuild-445fc0cbba4eea579e5c846f2b8be7c9bdc4e1ccrelease to be published on oven-sh/zig (verify with curl), or revert commitd85cf23until the release is available.