forked from NixOS/nix
-
Notifications
You must be signed in to change notification settings - Fork 8
Upstream tracking #165
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
Draft
grahamc
wants to merge
2,208
commits into
2.33-maintenance
Choose a base branch
from
main
base: 2.33-maintenance
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Upstream tracking #165
Conversation
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
This allows it to be used by primops defined outside of primops.cc.
This reverts commit 3aa4799. macOS doesn't have endian.h.
Wasm support
builtins.wasm: Check against values with ID 0
A queue size of 0 will cause hanging in the file transfer process.
This inadvertently caused file transfers to hang when used in conjunction with `http-connections = 0`: the worker checks if the in-progress items and items we've added to the incoming queue are larger than the max queue size, which was previously defined to be 5x the value of `http-connections. Well, as you can probably tell, 5*0=0, and unless the `.size()` of any of these containers became negative, we would always wait another 100ms instead of processing the incoming queue. Because `http-connections = 0` is a special value to signal, roughly, "as much possible" (mostly depends on how cURL handles it, but this is probably approximately right), we default to `std::thread::hardware_concurrency()` (as is done in a couple other places; specifically, this is what the ThreadPool constructor does for a value of `0`). There may be a better fix, but this works for now, and is approximately right.
…s-limit-the-number-of-active-curl-handles-breaks-http filetransfer: don't allow the queue size to be 0
Tagging release 2.33.2
This reverts commit 09884e2. It breaks `buildPathsWithResults` returning cancelled builds, which is needed by `nix flake check` and `nix build` to report cancelled builds.
Sync with upstream 2.33.2
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Motivation
Not intended to be merged directly. This PR is a convenience to show the diff between upstream Nix and Determinate Nix (the
mainbranch).Continuation of #4.