Skip to content

Fix validation with a relative report directory - #91

Open
aviraj1805 wants to merge 1 commit into
CopperPilot:mainfrom
aviraj1805:fix/relative-validation-output
Open

aviraj1805 wants to merge 1 commit into
CopperPilot:mainfrom
aviraj1805:fix/relative-validation-output

Conversation

@aviraj1805

Copy link
Copy Markdown

Summary

Running validation with a relative report directory can stop project intake before ERC runs. I hit this while checking a TMP117 daughterboard and reproduced it on the ESP32 example.

From the checkout root with KiCad on PATH:

copper-pilot validate examples/001_esp32/esp32 --only sch.erc --no-cache --out reports

The runner builds a relative path to the netlist artifact, but the KiCad subprocess runs from the schematic directory. Intake then reports that it cannot find the exported netlist. An absolute output directory works.

Resolve the report directory once before deriving run and cache paths. The CLI docs now specify how relative output paths are interpreted.

Test plan

  • Added a regression test for a caller working directory different from the board directory. It failed before the fix and passes with it.
  • Replayed the relative-path command on the TMP117 board with KiCad 10.0.8 on Windows. Project intake and ERC both passed. The overall exit code was 3 as expected for a partial check selection.
  • On the 1.0.5 base, the patched non-live suite had 1,125 passes, 4 skips and 5 live tests deselected. Ruff format, Ruff lint and ty passed.
  • After rebasing onto 1.0.6, reran the targeted regression test successfully.

Copilot AI balanced review requested due to automatic review settings November 30, 2026 10:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.

2 participants