Skip to content

Conversation

@vvuk
Copy link
Contributor

@vvuk vvuk commented Apr 17, 2025

CI builds were running tests by building a single docker image. This was both slow and very difficult to understand what failed. This PR does the following:

  • CI builds no longer build a docker image; they use the latest danger-klippers image, but override /klipper (so we get all the build tools)
  • Firmware build tests are done by running them one at a time, with
    github actions showing the grouping in the output to make it easy
    to see what failed.
  • Python tests are done using a matrix

I had a variant of this that split every config test into its own job, but that meant that every job had to pull the docker image which took too much time. This is good enough IMO:

image

./scripts/ci-build.sh can also be improved to allow running e.g. ./scripts/ci-build.sh compile rp2040 locally to make it easier to reproduce things; right now it makes some assumptions about running on ci, but would be an easy fix (for later, I think). ... and as I typed that out, that could basically be the start of a user-visible "compile for this board" command?

- CI builds no longer build a docker image
- They use the latest danger-klippers image, but override /klipper
- Firmware build tests are done by running them one at a time, with
  github actions showing the grouping in the output to make it easy
  to see what failed.
- Python tests are done using a matrix
@vvuk vvuk changed the title WIP: expand github test action Make GitHub actions report config + python tests better Apr 17, 2025
@vvuk vvuk marked this pull request as ready for review April 17, 2025 04:46
@vvuk vvuk requested a review from a team as a code owner April 17, 2025 04:46
@vvuk vvuk marked this pull request as draft April 24, 2025 02:42
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