Skip to content

Validate Altium projects with the server's native exports - #101

Draft
naveen-forkd wants to merge 1 commit into
mainfrom
feat/altium-validate
Draft

naveen-forkd wants to merge 1 commit into
mainfrom
feat/altium-validate

Conversation

@naveen-forkd

Copy link
Copy Markdown
Collaborator

What

copper-pilot validate on an Altium-only folder (.PrjPcb / .SchDoc / .PcbDoc) used to fail at intake with "kicad-cli was not found". Now it runs an Altium graph:

  • intake.tools passes without looking for kicad-cli.
  • intake.project (builtin altium_project) runs one hosted turn that calls the server's export_altium_netlist and export_altium_bom into .validate-scratch/altium-intake/. The CLI builds the parts/nets/sheets index from that JSON, so the result is deterministic. Unannotated parts, net-name conflicts and a missing BOM become findings.
  • Checks that read KiCad files are left out: sch.erc, pcb.drc, pcb.parity, pcb.rules, pcb.connector_edge, pcb.models_3d, release.outputs, release.repo. ERC and DRC run in Altium (run_altium_erc / run_altium_drc on Windows).
  • The agent reviewers run as before, with an Altium preamble that tells them to read the design with the Altium tools.

Folders that hold KiCad files, including mixed folders, keep the default graph unchanged.

Depends on

Server PR #215 (Feat/altium-parity-speed). It adds export_altium_netlist and export_altium_bom, which are not on server main yet. Until it merges, intake gets back an ERROR that quotes the turn's reply.

Tests

  • 4 new tests in tests/test_validate.py: the Altium graph, a mixed folder keeping the KiCad graph, intake indexing without kicad-cli, and a missing netlist giving ERROR.
  • pytest -m "not live": 1128 pass. The one failure, test_release_gates.py::test_version_file_is_source_of_truth, also fails on main.
  • ruff is clean; ty reports the same 15 diagnostics main has.

An Altium-only folder (.PrjPcb/.SchDoc/.PcbDoc) gets an Altium graph: intake runs
export_altium_netlist and export_altium_bom in one hosted turn and builds the index
from the JSON; checks that read KiCad files are left out (ERC/DRC run in Altium).
Mixed or KiCad folders keep the default graph.

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