Skip to content

fix(fleet): include PM conformance fixture in nix source - #13639

Open
dezren39 wants to merge 2 commits into
mainfrom
lane-code-h-13617
Open

dezren39 wants to merge 2 commits into
mainfrom
lane-code-h-13617

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

 pkgs/fleet/crates/fleet/src/gh_metadata.rs
-  fixture path = CARGO_MANIFEST_DIR/../../../../doc/... (outside fleetSrc)
+  fixture path = CARGO_MANIFEST_DIR/tests/fixtures/pm-metadata-v1.json
+  assert byte-equal to the design copy when it exists (drift guard)
 pkgs/fleet/crates/fleet/tests/fixtures/pm-metadata-v1.json
+  vendored, byte-identical copy of the canonical fixture (in fleetSrc)
 doc/.../fixtures/README.md
+  note the vendored copy and the re-copy rule

The fleet Nix source closure (pkgs/fleet/default.nix fleetSrc) is rooted at pkgs/, so the test's four-levels-up walk to repo-root doc/ cannot resolve in the sandbox. The conformance assertions still run under the sandbox; only the cross-check against the canonical design copy is conditional, never the enforcement.

Evidence

  • Before: fleet-smoke run 45230909797 — gh_metadata::tests::pm_metadata_version_conformance_fixtures panicked: conformance fixture set unreadable at /build/source/fleet/crates/fleet/../../../../doc/.../pm-metadata-v1.json.
  • After (focused test, remote, clean checkout): https://github.com/dezren39/fleet/actions/runs/45247950850 — test gh_metadata::tests::pm_metadata_version_conformance_fixtures ... ok, 1 passed; 0 failed.
  • After (nix build check phase, the failing job's exact command): nix build --no-link --print-out-paths .#fleet dispatched at https://github.com/dezren39/fleet/actions/runs/45251531275.

Merge Danger

Door: two-way.

Blast Radius: low — one test fixture, its path resolution, and a README note.

@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 58 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: b759c304-aa6e-4f34-aaaa-3756dea41846
Commits

Reviewing files that changed from the base of the PR and between b6efed9 and 62fa634.

Files selected for processing: 3

  • doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/README.md
  • pkgs/fleet/crates/fleet/src/gh_metadata.rs
  • pkgs/fleet/crates/fleet/tests/fixtures/pm-metadata-v1.json
  • 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

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant