Skip to content

ci(checks): trim matrix, ccache tests, modernize python_checks#27035

Merged
mrpollo merged 1 commit intomainfrom
mrpollo/ci-checks-ccache-python
Apr 9, 2026
Merged

ci(checks): trim matrix, ccache tests, modernize python_checks#27035
mrpollo merged 1 commit intomainfrom
mrpollo/ci-checks-ccache-python

Conversation

@mrpollo
Copy link
Copy Markdown
Contributor

@mrpollo mrpollo commented Apr 9, 2026

Stacks on #27032. Ports the checks.yml and python_checks.yml improvements from the CI orchestrator branch (mrpollo/ci_orchestration, #26257) without doing the full T1/T2 split. Every change here matches a decision that was already made and validated on that branch.

On checks.yml the matrix loses five entries the orchestrator dropped: tests_coverage, px4_fmu-v2_default stack_check, NO_NINJA_BUILD=1 px4_fmu-v5_default, NO_NINJA_BUILD=1 px4_sitl_default, and px4_sitl_allyes. The codecov/codecov-action@v1 step goes with them (deprecated action, and it only ever ran for the dropped tests_coverage entry). What's left is the linter/lint-adjacent set plus make tests and module_documentation. Of those, make tests is the only compile-heavy entry, so it gets the setup-ccache / save-ccache composite actions wired around it (cache-key-prefix: ccache-sitl, max-size: 300M) — same config the orchestrator's basic-tests job uses.

On python_checks.yml the old apt-get install python3 + pip install --break-system-packages + hardcoded $HOME/.local/bin/mypy / $HOME/.local/bin/flake8 pattern is replaced with actions/setup-python@v5 pinned to 3.10. The linters run from PATH, no more break-system-packages workaround.

Marking as a stacked PR so it picks up fail-fast: true, fetch-depth: 1, and the Configure Git Safe Directory step extraction from #27032.

Base automatically changed from mrpollo/ci-checkout-hygiene to main April 9, 2026 21:57
Port the checks.yml and python_checks.yml improvements from the CI
orchestrator branch (mrpollo/ci_orchestration, PR #26257) without
doing the full T1/T2 split.

checks.yml:
- Drop 5 matrix entries the orchestrator removed:
  tests_coverage, px4_fmu-v2_default stack_check,
  NO_NINJA_BUILD=1 px4_fmu-v5_default,
  NO_NINJA_BUILD=1 px4_sitl_default, px4_sitl_allyes.
- Remove the codecov/codecov-action@v1 step (deprecated, only ran
  for the dropped tests_coverage entry).
- Wire the setup-ccache / save-ccache composite actions around
  make tests (cache-key-prefix ccache-sitl, max-size 300M) so
  repeat runs reuse the SITL build tree. Matches the orchestrator
  basic-tests job 1:1.

python_checks.yml:
- Replace the apt-get install python3 + pip install
  --break-system-packages + hardcoded $HOME/.local/bin paths with
  actions/setup-python@v5 pinned to 3.10 and plain pip install.
- Linters now run from PATH instead of $HOME/.local/bin.

Stacks on top of mrpollo/ci-checkout-hygiene (#27032) which shipped
fail-fast: true, fetch-depth: 1, and the safe.directory step
extraction.

Signed-off-by: Ramon Roche <mrpollo@gmail.com>
@mrpollo mrpollo force-pushed the mrpollo/ci-checks-ccache-python branch from b1dc0eb to 7b7e17d Compare April 9, 2026 22:06
@mrpollo mrpollo merged commit a49cffb into main Apr 9, 2026
71 checks passed
@mrpollo mrpollo deleted the mrpollo/ci-checks-ccache-python branch April 9, 2026 22:46
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