Skip to content

fix(fleet): nix build fails — atlas-search/schema missing from fleetSrc fileset (atlas-core include_str! .sql files absent) #7641

Open

Description

@developing-today

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:45 does include_str!("../../../schema/atlas_stage_v1.sql") and line 49 does the same for stage_registry_v1.sql. Both files exist at pkgs/atlas-search/schema/.
  • pkgs/fleet/default.nix builds the fleet binary from a lib.fileset.toSource union (fleetSrc) containing only pkgs/fleet, ../atlas-search/Cargo.toml, and ../atlas-search/crates — ../atlas-search/schema is NOT in the fileset, so the .sql files 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

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).

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    on Nov 8, 2026
  2. added
    queue/queuedHas a queued task in the Supabase agent queue
    task/triageQueue packet kind: verify, reproduce, and route this item
    app/fleetpkgs/fleet multicall binary + platform crates
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    on Nov 8, 2026
  3. developing-today commented on Nov 8, 2026

    @developing-today
    ContributorAuthor

    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/queuedHas a queued task in the Supabase agent queuestatus/needs-triageNot yet triaged; needs a first looktask/small-fixQueue packet kind: bounded fix with reproduction and targeted teststask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions