Skip to content

CI: install only the KiCad packages the sync check needs - #6

Merged
thePunderWoman merged 1 commit into
mainfrom
ci-kicad-minimal-install
Nov 17, 2026
Merged

thePunderWoman merged 1 commit into
mainfrom
ci-kicad-minimal-install

Conversation

@thePunderWoman

Copy link
Copy Markdown
Member

Summary

The Stackup + PCB Sync job's Install KiCad 10 step keeps timing out. The cause is the download size, not a broken mirror.

  • apt-get install --install-recommends kicad fetched about 581 MB, mostly from Launchpad's KiCad PPA at about 0.5 MB/s. That includes the 3D models (280 MB), demos and docs.
  • The step took 7–10 minutes when it worked, and the 3D-model download timed out every few runs.

The change:

  • Install only kicad (pcbnew and its Python module) and kicad-footprints, with --no-install-recommends. The plugin's sync reports a missing 3D model as "No 3D body" and doesn't count it as a change, so check_pcb_sync.py doesn't need the models.
  • -o Acquire::Retries=5 retries a dropped download.
  • A timeout-minutes of 15 on the step and 30 on the job, so a hung download fails fast instead of holding the job for GitHub's default 6 hours.

The same change in VocalizerCAN (PunderWorks/VocalizerCAN#5) cut the step from 7–10 minutes to 35 s: 163 MB downloaded at 57 MB/s. The workflow is in this PR's change filter, so this PR runs the new install.

Test plan

  • CI: the install step is much shorter and the PCB sync check passes on main's board

🤖 Generated with Claude Code

The KiCad step installed `kicad` with --install-recommends: 581 MB,
mostly from Launchpad's KiCad PPA at about 0.5 MB/s, including the 3D
models (280 MB), demos and docs. The step took 7-10 minutes when it
worked, and the 3D-model download timed out every few runs
("Connection timed out" from ppa.launchpadcontent.net).

Install `kicad` and `kicad-footprints` with --no-install-recommends
instead. The sync check reports a missing 3D model without counting it
as a change, so the models aren't needed. apt retries each download up
to 5 times, the step times out at 15 minutes and the job at 30. The
same change in VocalizerCAN cut the step from 7-10 minutes to 35 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thePunderWoman
thePunderWoman merged commit 6cae72a into main Nov 17, 2026
3 checks passed
@thePunderWoman
thePunderWoman deleted the ci-kicad-minimal-install branch November 17, 2026 22:53
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