Skip to content

Add script to validate KiCad autocomplete footprints against platform loader#2128

Merged
seveibar merged 1 commit intomainfrom
codex/add-script-to-load-and-parse-kicad-footprints
Feb 28, 2026
Merged

Add script to validate KiCad autocomplete footprints against platform loader#2128
seveibar merged 1 commit intomainfrom
codex/add-script-to-load-and-parse-kicad-footprints

Conversation

@seveibar
Copy link
Contributor

Motivation

  • Provide an automated way to verify every KiCad footprint string from the generated autocomplete file can be loaded and parsed by the platform kicad loader.
  • Surface missing cache/loader issues early by running a single script that exercises the loader against the whole KicadPath union.

Description

  • Add scripts/test-loading-all-kicad-footprints.ts which reads node_modules/@tscircuit/props/lib/generated/kicad-autocomplete.ts, parses the KicadPath union, and filters out .md entries.
  • The script loads each footprint via getPlatformConfig().footprintLibraryMap.kicad with configurable concurrency and accumulates failures while printing progress.
  • The script prints the first 20 failures and exits non-zero when any footprint fails to load or returns an empty footprintCircuitJson.

Testing

  • Ran bunx tsc --noEmit and it completed successfully.
  • Ran bun run scripts/test-loading-all-kicad-footprints.ts which executed against KicadPath entries and reported Done. Successes: 13370, Failures: 379 for 13749 checked entries and exited non-zero due to failures.
  • Ran bun run format which formatted files successfully.

Codex Task

@seveibar seveibar merged commit b321d9d into main Feb 28, 2026
12 checks passed
@seveibar seveibar deleted the codex/add-script-to-load-and-parse-kicad-footprints branch February 28, 2026 01:13
@tscircuitbot
Copy link
Contributor


Thank you for your contribution! 🎉

PR Rating:
Impact: Tiny

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants