Repository navigation
Conversation
buildPythonPackage does not leave easy_install.pth and site.py anymore. A python package that leaves these files is broken. An exception to this is setuptoolsSite which packages setuptools' site.py. To include it into a buildenv, this patch is even needed, not just cosmetic.
Member
|
Applied! |
zolodev
pushed a commit
to zolodev/nix
that referenced
this pull request
Jan 1, 2024
…ns/cla-assistant/github-action-2.1.3.pre.beta chore(deps): bump cla-assistant/github-action from 2.1.2.pre.beta to 2.1.3.pre.beta
ConnorBaker
pushed a commit
to ConnorBaker/nix
that referenced
this pull request
Jul 25, 2025
…8796ebd-ce7e-4551-a225-409806f242ea Release v3.8.2
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 22, 2026
Two adversarial-review and two pattern-discovery passes (Opus 4.7, 1M ctx, ~5,300 lines under doc/inventory/review/) walked the existing 217-entry catalog and found cross-shard patterns the per-shard catalogers couldn't see. This commit folds the four reports into the catalog. Catalog scope rewrite. The README's "Performance work without duplication or complexity to fix" exclusion was wrong: hot-path container choices, allocations in inner loops, cache-line alignment costs, and missed concurrency are all in scope on their own merits. Same for modernisation: shrinking the Boost dependency surface or migrating hand-rolled idioms to stdlib equivalents is a real simplification, even when no underlying duplication backs the change. The README "What this catalog targets" section adds an explicit "Performance" bullet and rewrites the modernisation bullet to be in scope; the anti-list now excludes only cosmetic changes and feature additions. Verdict-table corrections. NixOS#50 (resolved-by-design) and NixOS#148 (INVALID, windowSize destruction-order hazard) had verdict-table rows that contradicted their validation paragraphs; tables now match. NixOS#171 upgraded VALID per the scope rewrite. Section-17 header updated from "Five VALID; nine PARTIALLY VALID" to "Six VALID; eight PARTIALLY VALID" to track. Reclassifications and corrections from the deeper passes: - NixOS#140 reframed as dead code (zero callers anywhere; not a SIOF hazard as the original framing suggested). - NixOS#149 mechanism corrected: the `created = 123;` debug field is a guard against gcc bug 80431 miscompilation, not a use-after-free sentinel as pass-1 had stated. - NixOS#170 corrected to three Goal subclasses + Waker (not four Goal subclasses as the catalog body had said). - NixOS#147 demoted to PARTIALLY VALID; the singleton-leak path is load-bearing for legacy callers and must be retained alongside any per-Store ownership migration. - NixOS#122 expanded with two ABI hazards the prior reviewer missed: layout drift in `PrimOp::impl` (allocated by `nix_alloc_primop` C-API) and symbol-mangle break in `extern fun<...> stackOverflowHandler`. - NixOS#138 expanded: two C-API readers of `settings.readOnlyMode`, not one as pass-1 had stated. - NixOS#160 expanded with HALO-incompatibility hazard for any `boost::asio::awaitable<T>` migration that touches `final_awaiter`. - NixOS#129 expanded with destructor-throw caveat for the `MaintainCount` -> `Finally` replacement. - NixOS#143 expanded with TLS-fallback shutdown-ordering hazard. - NixOS#56 reframed as a real ODR fix: different TUs previously saw different definitions of the explicit specialisation; the values coincidentally matched so behaviour was preserved but the program was technically ill-formed. Count corrections (each verified independently via grep): NixOS#137 register sites = 16 (15 production + 1 test), NixOS#166 forward-decl headers = 9/21/12 (Store +2 over the catalog body), NixOS#167 buffer-size literals = 10 in libutil / 19 tree-wide, NixOS#169 friend declarations = 16 (one duplicate `ExprVar`), NixOS#172 `unreachable()` sites = 64-65, NixOS#173 pragma sites = 10, NixOS#176 daemon cases = 37 (35 distinct bodies), NixOS#178 trust-check sites = 11+1, NixOS#146 env vars = 14 in src/. Forty-four cross-shard candidates (N1-N44) folded into four new section files (22-25). The N-numbered range is intentionally separate from 1-217 to keep cross-references stable. Pattern clusters A-G, architectural debt themes A1-A7, C++23/Boost uplift series U1-U10 (with U7 split per pass-2's refinement), and ten redundant-abstraction pairs R1-R10 are documented in new README subsections. Eight follow-up agents (E1-E8) deferred for source-level investigation: verify `impureOutputHash` deletion path, audit C-API `*Settings` surface lockstep, write a Goal::Co property test pinning O(1) frame depth, build a daemon-client error-message preservation matrix, set up periodic branch verification, validate test-support consolidation, audit forward-decl source-compat, and choose the `vTrue`/`vFalse`/`vNull`/`vEmptyList` invariant. The four review reports plus the consolidation log live under doc/inventory/review/ and stay in-tree for traceability. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.
buildPythonPackage does not leave easy_install.pth and site.py
anymore. A python package that leaves these files is broken. An
exception to this is setuptoolsSite which packages setuptools'
site.py. To include it into a buildenv, this patch is even needed, not
just cosmetic.