Repository navigation
Conversation
|
Warning Review limit reachedYou'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 5 seconds. View limit details
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. |
|
Not merging: main already fixed this failure via #13626 (#13617, merge ad14746), which keeps the fixture in doc/ and passes it to the Nix build with PM_METADATA_V1_FIXTURE. This branch moves the fixture into the crate and conflicts with main's gh_metadata.rs (git merge-tree shows a content conflict in pkgs/fleet/crates/fleet/src/gh_metadata.rs). Recommend closing this PR as superseded by #13626. Tested head b676107 passed fleet-smoke dispatch run 45251338858 but is redundant. Reopen only if main's fix regresses. |
Closes #13618
Root cause
fleet-smokerun 45230909797 failed ongh_metadata::tests::pm_metadata_version_conformance_fixtureswith "conformance fixture set unreadable ... No such file or directory".The fixture existed on main; it was not deleted or renamed. The path was valid in a plain checkout, but
pkgs/fleet/default.nixbuildsfleetSrcwithlib.fileset.toSource { root = ./..; fileset = ./. + ../atlas-search/... }— i.e. only thepkgs/subtree. The test resolved its oracle atdoc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/pm-metadata-v1.json, which is outside that packaged source, so the Nix build'scargo testcould not see it.Change
pm-metadata-v1.jsoninto the fleet crate (pkgs/fleet/crates/fleet/src/testdata/), which is insidefleetSrc, and point the test atCARGO_MANIFEST_DIR/src/testdata/.panic!("conformance fixture set unreadable at {path}: {e}")guard so a missing/renamed fixture fails fast with path and OS error instead of a vaguer assertion.Verification
cd pkgs/fleet && cargo test -p fleet --bin fleet gh_metadata::tests::pm_metadata_version_conformance_fixtures→ 1 passed.git diff --checkclean; rename recorded by git (100% similarity).fleet-smokeon this PR (the failing job).{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T19:36:20Z", "session_id": "ses_e5df6486a9bffefUXT7rby8s7f", "lane": null, "host": "amd", "worktree": "/home/user/git/code-13618", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/code-13618", "repo": "developing-today/code", "branch": "fix/13618-pm-metadata-fixture", "sha": "b6761072ea2ba2df9704bfb0e429e4993d309d55" }, "auth_subject": "oc-code-01", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.