Skip to content

fix(fleet): resolve the pm-metadata conformance fixture in the derivation layout (#13617) - #13626

Merged
dezren39 merged 1 commit into
mainfrom
lane-au26-13617
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-au26-13617

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

For #13617 — the fleet-smoke Build the four fleet variant outputs step failing on main (runs 45230909797, 45233191304).

Root cause (verified first-hand): pm_metadata_version_conformance_fixtures built the fixture path as CARGO_MANIFEST_DIR + /../../../../doc/…, which resolves only in a full checkout (pkgs/fleet/crates/fleet → repo root). In the derivation the crate sits at fleet/crates/fleet under a source whose fleetSrc fileset (pkgs/fleet/default.nix) carries no doc/ at all — the path overshoots to /build/doc/… and the fixture is absent twice over. Distinct from #11834 (different test, different error), as the issue notes.

Fix (narrow, fixture stays enforced):

  • The test resolves the fixture via a PM_METADATA_V1_FIXTURE override, else the nearest ancestor of the crate dir carrying doc/…/pm-metadata-v1.json. When neither finds it, it panics with an explicit not-found message — absence is still a loud failure, never a skip.
  • pkgs/fleet/default.nix sets PM_METADATA_V1_FIXTURE in the build env (envAttrs, all variants) to a store copy of the fixture file.

Verification (focused test, laptop runs):

  • Real checkout layout: pass (122 other tests in the binary filtered, matching the CI count).
  • Simulated derivation layout (source = exactly the fleetSrc fileset: fleet/ + atlas-search bits, no doc/), no override: fails with the explicit conformance fixture set not found … PM_METADATA_V1_FIXTURE is unset panic — enforcement intact.
  • Same simulated layout with PM_METADATA_V1_FIXTURE set (what the derivation now does): pass.
  • Simulated layout with doc/ as a sibling of fleet/: pass via ancestor search.
  • The added code is rustfmt-clean (the three remaining cargo fmt --check diffs in the file are pre-existing drift in untouched code); default.nix parses.

The post-merge fleet-smoke run on main is the final verification; its result will be recorded on #13617 before the issue is closed.


Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…tion layout (#13617)

The gh_metadata conformance test built the fixture path as
CARGO_MANIFEST_DIR + /../../../../doc/..., which only resolves in a
full checkout (pkgs/fleet/crates/fleet -> repo root). In the
fleet-smoke derivation the crate sits at fleet/crates/fleet under a
source whose fleetSrc fileset carries no doc/ at all, so the test
panicked on a missing fixture and the fleet variant build step
failed on main.

The test now resolves the fixture by the PM_METADATA_V1_FIXTURE
override, else by the nearest ancestor of the crate dir carrying
doc/.../pm-metadata-v1.json, and still panics loudly when neither
finds it — the fixture set stays the enforced conformance oracle.
pkgs/fleet/default.nix sets PM_METADATA_V1_FIXTURE in the build env
to a store copy of the fixture.

Verified: the focused test passes in a real checkout, in a simulated
derivation layout with the override set, and in the simulated layout
with doc/ as a sibling; without either it fails with the explicit
not-found panic.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ee13e4b4-684a-448c-ad50-40496141569e
Commits

Reviewing files that changed from the base of the PR and between e42c545 and 626dfa1.

Files selected for processing: 2

  • pkgs/fleet/crates/fleet/src/gh_metadata.rs
  • pkgs/fleet/default.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit ad14746 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-au26-13617 branch November 23, 2026 18:48
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant