From dfef2c74066c4a8eab9171d655635a0d209fb026 Mon Sep 17 00:00:00 2001 From: repo-worker-tmp-code-b Date: Fri, 13 Nov 2026 05:54:29 -0600 Subject: [PATCH] fix(guard): re-key production-line grandfather entries to current paths (#9526) serve.rs and directory.rs moved into crates/id-cli and crates/id-directory, so their stale keys silently stopped matching and main's production-line guard went red. Re-key both to the current paths (split issues #8590, #8591 unchanged). The id-worlds/src/directory.rs key named a file that no longer exists and is removed; the contract fixture now exercises the moved id-directory path. Threshold stays at 2500. --- .github/scripts/check-production-line-limit.sh | 14 ++++++++------ .../scripts/check-production-line-limit.test.sh | 15 ++++++++------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/scripts/check-production-line-limit.sh b/.github/scripts/check-production-line-limit.sh index 4183756912..28f12e0d32 100755 --- a/.github/scripts/check-production-line-limit.sh +++ b/.github/scripts/check-production-line-limit.sh @@ -38,13 +38,15 @@ declare -A GRANDFATHERED=( # PR that lands the split. ["pkgs/fleet/crates/fleet-queue/src/client.rs"]="#8588" ["pkgs/fleet/crates/fleet-queue/src/turso_queue.rs"]="#8589" - ["pkgs/id/src/commands/serve.rs"]="#8590" + ["pkgs/id/crates/id-cli/src/commands/serve.rs"]="#8590" ["pkgs/id/src/boards.rs"]="#8891" - # The four id-worlds files below moved from pkgs/id/src/ to - # pkgs/id/crates/id-worlds/src/ in the id crate restructure; a key - # must name the file's CURRENT path or the entry silently stops - # matching (#8894). The contract tests assert every key exists. - ["pkgs/id/crates/id-worlds/src/directory.rs"]="#8591" + # The id-worlds files below moved from pkgs/id/src/ to + # pkgs/id/crates/id-worlds/src/ in the id crate restructure, and + # serve.rs and directory.rs moved into crates/id-cli and + # crates/id-directory; a key must name the file's CURRENT path or + # the entry silently stops matching (#8894, #9526). The contract + # tests assert every key exists. + ["pkgs/id/crates/id-directory/src/directory.rs"]="#8591" ["pkgs/id/crates/id-worlds/src/world/actor.rs"]="#8592" ["pkgs/id/crates/id-worlds/src/world/core.rs"]="#8593" ["pkgs/id/crates/id-worlds/src/world_session/mod.rs"]="#8594" diff --git a/.github/scripts/check-production-line-limit.test.sh b/.github/scripts/check-production-line-limit.test.sh index e3583c0b2a..1c46cf3ccd 100755 --- a/.github/scripts/check-production-line-limit.test.sh +++ b/.github/scripts/check-production-line-limit.test.sh @@ -38,15 +38,16 @@ grep -q "GRANDFATHERED pkgs/id/src/boards.rs: 3000 production lines (limit 2500) echo "pass: grandfathered file passes with a warning naming its split issue" # A grandfathered file that MOVED keeps its exemption only when the -# key names its current path (#8894): the id-worlds files live under -# pkgs/id/crates/id-worlds/src/; with the pre-move pkgs/id/src/ key -# this fixture would report OVER LIMIT instead of GRANDFATHERED. -mkdir -p "$TMP/moved/pkgs/id/crates/id-worlds/src" -gen "$TMP/moved/pkgs/id/crates/id-worlds/src/directory.rs" 3000 +# key names its current path (#8894, #9526): directory.rs lives under +# pkgs/id/crates/id-directory/src/; with the pre-move pkgs/id/src/ or +# id-worlds key this fixture would report OVER LIMIT instead of +# GRANDFATHERED. +mkdir -p "$TMP/moved/pkgs/id/crates/id-directory/src" +gen "$TMP/moved/pkgs/id/crates/id-directory/src/directory.rs" 3000 bash "$SCRIPT" "$TMP/moved" >"$TMP/moved.out" grep -q "production-line-guard: OK" "$TMP/moved.out" -grep -q "GRANDFATHERED pkgs/id/crates/id-worlds/src/directory.rs: 3000 production lines (limit 2500) - split tracked by #8591" "$TMP/moved.out" -echo "pass: grandfather entry matches the file at its moved (crates/id-worlds) path" +grep -q "GRANDFATHERED pkgs/id/crates/id-directory/src/directory.rs: 3000 production lines (limit 2500) - split tracked by #8591" "$TMP/moved.out" +echo "pass: grandfather entry matches the file at its moved (crates/id-directory) path" # Violating tree: one synthetic over-limit production file. mkdir -p "$TMP/bad/pkgs/id/src"