Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/scripts/check-production-line-limit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ 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
# The 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"
# serve.rs and directory.rs moved again in that restructure - to
# pkgs/id/crates/id-cli/ and pkgs/id/crates/id-directory/ - and
# their keys were re-pointed in the #9526 fix; same rule.
["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"
Expand Down
12 changes: 6 additions & 6 deletions .github/scripts/check-production-line-limit.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ 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
# key names its current path (#8894): directory.rs moved again from
# id-worlds to pkgs/id/crates/id-directory/src/; with a stale 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
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"
Expand Down