Repository navigation
Conversation
Member
|
Closing since Nix now uses the right channel directory automatically. |
edolstra
referenced
this pull request
in DeterminateSystems/nix-src
Mar 5, 2025
…48-ecd9-43e3-a256-95eba397ad1e Release v0.38.1
ConnorBaker
pushed a commit
to ConnorBaker/nix
that referenced
this pull request
Jul 25, 2025
…ystem-builderror Make platform checks throw BuildError like other failures
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 23, 2026
CmdRun (run.cc), CmdBundle (bundle.cc, with literal "// FIXME: cut&paste from CmdRun." comment), and the develop family's Common base each hand-rolled the same shape: build a Strings of system-qualified attr paths, then append SourceExprCommand::getDefaultFlakeAttrPaths() (and the prefixes equivalent) to fall back to the base flake outputs. Lift the append-base boilerplate into prependFlakeAttrPaths / prependFlakeAttrPathPrefixes free helpers in flake-attr-paths.hh. The two other override sites (CmdSearch, MixFormatter) deliberately replace the base list rather than augment it, so they keep their direct overrides; the helpers' header documents the asymmetry. Free helpers (rather than a Mix* base class) because the concrete classes inherit SourceExprCommand non-virtually via InstallableCommand / InstallableValueCommand; a virtual-base mixin would create ambiguous member access on every `getEvalState` / `lockFlags` call inside the command bodies. For develop.cc::getDefaultFlakeAttrPathPrefixes the original code used `emplace_front` against a copy of the base; the helper produces the same `[devShells.SYS., base...]` ordering. Refs candidate NixOS#72. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 23, 2026
…batch Records candidates that landed in this session across four shards; the libexpr shard already shipped its own doc commit in 43ebd1d. libfetchers: - NixOS#51 -- delete-and-trim github.cc tree-hash scaffolding; trim scope expanded past the two #if 0 blocks to also drop RefInfo::treeHash, the upstreamTreeHash helper, and the treeHash slot in GitArchiveInputScheme::allowedAttrs. - NixOS#70 -- close as resolved-by-upstream; commit de6b5f6 (Eelco Dolstra, 2025-12-10) extracted makeSourcePathToHashCacheKey ahead of the catalog snapshot. libflake: - NixOS#78 -- forEachReachableNode helper covers two of three DFS sites (isUnlocked, getAllInputs); doFind excluded as structurally different (name-based path-walk via follows, InputAttrPath-keyed visited set, throws cycle path on revisit). libutil: - NixOS#37 -- fso::descendPath<V> helper covers NarAccessorImpl::find only; MemorySourceAccessor::open and NarIndexer::createMember excluded after Rule-6 walks (one's symlink-rejection policy, the other's amortized O(1) parent-stack). - NixOS#163 -- additive PipeOptions overload alongside the asymmetric originals; replacing the originals would be a source-compat break in a shipped header. nix-cli: - NixOS#25 -- reclassify as effectively unimplementable; the preprocessor rejects #include directives inside macro argument lists, so NIX_COMMAND_DOC("name") with embedded #include cannot work. Effort bumped from trivial to medium pending a different mechanism. - NixOS#72 -- prependFlakeAttrPaths free helpers; mixin form failed on diamond inheritance (SourceExprCommand non-virtually inherited via InstallableCommand/InstallableValueCommand). Three sites converted; CmdSearch and MixFormatter intentionally retain direct overrides. - NixOS#74 -- runWholeStoreGC header-only helper across three sites, preserving the print-roots branch and the action-aware printer. - NixOS#75 -- runNarDump header-only template across three sites, preserving the legacy "no TTY check" path via a checkTTY parameter. - NixOS#93 -- three of four NixMultiCommand parents converted to getCommandsFor + per-child NIX_REGISTER_COMMAND; CmdHash deferred per the candidate. - NixOS#141 -- per-command static-ify subset only (deleteOlderThan, dryRun in nix-collect-garbage.cc); the candidate's nix-instantiate.cc gcRoot/rootNr targets had already been folded into a static GcRootNamer. STATUS.md "Cleanup branches (live)" updated for all five shards (including libexpr) with new addresses and Local-only tip notes. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 24, 2026
CmdRun (run.cc), CmdBundle (bundle.cc, with literal "// FIXME: cut&paste from CmdRun." comment), and the develop family's Common base each hand-rolled the same shape: build a Strings of system-qualified attr paths, then append SourceExprCommand::getDefaultFlakeAttrPaths() (and the prefixes equivalent) to fall back to the base flake outputs. Lift the append-base boilerplate into prependFlakeAttrPaths / prependFlakeAttrPathPrefixes free helpers in flake-attr-paths.hh. The two other override sites (CmdSearch, MixFormatter) deliberately replace the base list rather than augment it, so they keep their direct overrides; the helpers' header documents the asymmetry. Free helpers (rather than a Mix* base class) because the concrete classes inherit SourceExprCommand non-virtually via InstallableCommand / InstallableValueCommand; a virtual-base mixin would create ambiguous member access on every `getEvalState` / `lockFlags` call inside the command bodies. For develop.cc::getDefaultFlakeAttrPathPrefixes the original code used `emplace_front` against a copy of the base; the helper produces the same `[devShells.SYS., base...]` ordering. Refs candidate NixOS#72. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
Adds TracingDecisionGraph::getRequestsWithFrom — linear scan over the Requests pool filtering by params.from. TracingReplayEvaluator::apply calls it when attaching an ApplyContext to an apply-result TracingReplayObject, populating ctx->observations from the trie's recorded (req, resp) pairs about the cb-arg seed. This brings the walker's observation set in line with what the recorder accumulated on the same seed, so the walker can evolve cdi toward the same trie position the recorder wrote at. Caveat: the current schema collapses sibling cb-applies' observations under one seed cdi (Requests are content-addressed, Responses are keyed by requestHash → first-write-wins). The pre-populate scan returns only one response per request, so it mismatches any sibling apply whose response differs. Until the schema separates sibling applies (= multi-edge Asks walks at flush, or Responses keyed by responseHash per task NixOS#72), evolvedQueryFrom on the walker side keeps its finalized gate — pre-populated observations exist but aren't used yet. Recorder-side evolution remains correct because it sees exactly one apply's observations at a time via the live inner. This is the infrastructure piece. The gate will lift once siblings can be disambiguated structurally rather than via the response pool. Suite: 140/3 (= same as the recorder-evolution commit; the 3 regressions are the sibling-collision cases that still need per-apply edge isolation at flush). Assisted-by: Claude Code (Claude Opus 4.7)
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
Task NixOS#72 was filed assuming `Responses(requestHash)` was a soundness bug — that two recordings observing the same upstream request with different responses could collide on the PK and serve the wrong payload back. That can't actually happen under the via-Asks design. The depth-2 reqHash is `SHA-256(query{from = cidasks-evolved cdi})` — a pure function of (subject, scope, prior chain facts). Two recordings reaching the same reqHash necessarily observed the same history; a deterministic env then produces the same response, so the (request → response) mapping is a function. First-writer-wins under PK = requestHash can't surface the wrong payload. Depth-1 doesn't read this pool at all — the walker dispatches against the live environment and validates structurally via factSet evolution through Asks/Terminals. Changes: - Schema comment on `Responses` spells out the functional-dependence reason the key is requestHash and not responseHash. - New unit test `ResponsesKeyedByRequestHash_FunctionAtDepth2` pins the contract. - Walker `readResponse` gets a brief comment pointing at the same reasoning, so the next reader who notices "wait, isn't this first-wins-could-be-wrong?" finds the answer immediately. - Minor cleanup: drop unused `probeOnSubject` helper that was leftover from an earlier iteration. Task NixOS#72 is therefore not needed — closing as won't-fix. Assisted-by: Claude Code (Claude Opus 4.7)
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
Task NixOS#72 followup. Adding regression tests for the three sites I "fixed" in NixOS#68 uncovered that I couldn't find any test that exercises those paths with a DerivedSubject subject in the first place. Instrumented builds and manual reproductions (nested-attr apply, arg-with-derived pass, cb-higher-order cold/warm/outer- change) never trigger the code path with a Derived subj — the `live->getSubject()` gate returns nullptr or Arg in every case observed. My NixOS#68 commit message claimed "reachable, bug shape" but the reachability was a code-reading inference, not a triggered observation. The fixes were defensive against a hypothetical class of bug I couldn't demonstrate. Honest position: revert the three poly-dispatch swaps and the stateHashConverged guard, restore the strict stateHashAt, and add an assert on the Derived precondition so if my assumption ever breaks — a new proxy type registers a Derived-subject liveObject at an ArgCell, some future callback shape reaches this loop — we get a clear signal to add the fix back with a real repro to justify it. Kept: task NixOS#64's tracing-evaluator.cc and replay-callback-arg.cc fixes, since those DO have a live reproducer (cb-attr-apply.sh `g.foo 10` pattern triggers the nix::unreachable() without the poly dispatch). Also drops the "nested attr" regression test I added under NixOS#68 — it doesn't exercise the code path it was supposed to. The cb-attr-apply single-level test that ships with NixOS#64 is the real regression coverage. Tests green (325/0/7 unit + builtins-cache functional). Assisted-by: Claude Code (Claude Opus 4.6-4.7)
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.
Based on troubleshooting session with user petar in irc (2012/12/11, 18:18-19:40 EST).