Repository navigation
Open
Labels
app/fleetpkgs/fleet multicall binary + platform cratespkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)Ordinary priority (the default)queue/queuedHas a queued task in the Supabase agent queueHas a queued task in the Supabase agent queuestatus/needs-triageNot yet triaged; needs a first lookNot yet triaged; needs a first looktask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted teststask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Description
Problem
nix build .#fleet (and therefore nix build .#nixosConfigurations.amd.config.system.build.toplevel, which includes the fleet package) fails on current main (df0e415c91, verified 2026-11-08 in a clean worktree by task 13007):
error: couldn't read `/build/source/atlas-search/crates/atlas-core/src/../../../schema/atlas_stage_v1.sql`: No such file or directory (os error 2)
error: couldn't read `/build/source/atlas-search/crates/atlas-core/src/../../../schema/stage_registry_v1.sql`: No such file or directory (os error 2)
error: could not compile `atlas-core` (lib) due to 2 previous errors
error: Cannot build '...-fleet-0.1.0.drv': builder failed with exit code 101
Root cause
pkgs/atlas-search/crates/atlas-core/src/stage.rs:45doesinclude_str!("../../../schema/atlas_stage_v1.sql")and line 49 does the same forstage_registry_v1.sql. Both files exist atpkgs/atlas-search/schema/.pkgs/fleet/default.nixbuilds the fleet binary from alib.fileset.toSourceunion (fleetSrc) containing onlypkgs/fleet,../atlas-search/Cargo.toml, and../atlas-search/crates—../atlas-search/schemais NOT in the fileset, so the.sqlfiles are absent from the Nix build source. Local cargo builds from the full tree pass; only the Nix build fails.
Fix
Add ../atlas-search/schema to the fleetSrc fileset union in pkgs/fleet/default.nix.
Acceptance
nix build .#fleetsucceeds on main.nix build .#nixosConfigurations.amd.config.system.build.toplevelgets past the fleet-0.1.0 dependency (green, or any remaining failure is a different, separately filed defect).- Found by: task 13007 (chore(deps): remove the nodejs_24 override once nixpkgs-unstable's repack passes installCheck #2727 verification) — the toplevel failure is pre-existing on clean main and unrelated to chore(deps): remove the nodejs_24 override once nixpkgs-unstable's repack passes installCheck #2727 (its nodejs_24 build passes).
Acceptance criteria
- nix build .#fleet succeeds on current main (and the toplevel build that includes the fleet package gets past the atlas-core compile).
- The fleetSrc fileset in pkgs/fleet/default.nix includes pkgs/atlas-search/schema, so both include_str! .sql files are present in the build source.
- No other include_str! path in the fleet build's dependency set is missing from the fileset (checked, not assumed).
Metadata
Metadata
Assignees
Labels
app/fleetpkgs/fleet multicall binary + platform cratespkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)Ordinary priority (the default)queue/queuedHas a queued task in the Supabase agent queueHas a queued task in the Supabase agent queuestatus/needs-triageNot yet triaged; needs a first lookNot yet triaged; needs a first looktask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted teststask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Activity
developing-today commentedon Nov 8, 2026
Intake review
Related: Root cause is in the body: pkgs/atlas-search/crates/atlas-core/src/stage.rs:45/49 include_str! vs the fleetSrc union in pkgs/fleet/default.nix. Verified failing at main df0e415 by task 13007 this morning. Intake search: the one merged-PR hit is an unrelated atlas-search PR (number collision) - still live.
Notes: A one-line-class fileset fix with a build-level verification; effort/s rather than xs only because the confirming nix build is the slow part.
Risks: Fixing only the two named .sql files while another fileset gap hides behind the first compile error; the third criterion guards that.
Suggested approach: Add ../atlas-search/schema to the fleetSrc union, rebuild .#fleet in CI, and grep the compiled crates' include_str! targets against the fileset.
Labels normalized at intake: status/needs-triage, effort/s, app/fleet, task/small-fix, meta/enriched added (existing labels preserved). Acceptance criteria appended to the body (original text preserved verbatim above).
— fleet monitor, intake pass 2026-11-08 (06:12 CST run)