Skip to content

CI: fix ccache cache effectiveness in basic.yml - #108

Merged
thetic merged 1 commit into
mainfrom
ci/fix-ccache-ordering-and-keys
Sep 10, 2026
Merged

thetic merged 1 commit into
mainfrom
ci/fix-ccache-ordering-and-keys

Conversation

@thetic

@thetic thetic commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Description

The build matrix job ran ccache-action before actions/checkout, so checkout's directory-cleanup logic (no .git exists yet at that point) wiped the just-restored .ccache directory before any compilation happened. This forced a near-total cache miss on every run in every leg of the matrix (GNU, Clang, MSVC, sanitizers, etc.), regardless of what source actually changed. Moved checkout to run first, matching every other job in this file.

Also gave the test_report, tap_validate, and source_archive jobs distinct ccache keys — they previously fell back to the shared default "ccache" key and thrashed each other's cache despite building different configs (defaults + MUTINY_JUNIT_REPORT, plain defaults, and GNU).

Related Issues

Fixes # (issue number)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Manual Verification (Optional)

If you have verified this change on hardware or a simulator not covered by CI (e.g., a specific ARM target), please describe it here:

  • Target:
  • Result:

Checklist

  • I have written/updated documentation in docs/ for any user-facing changes.
  • My code follows the project's naming conventions (mu::tiny namespace, INCLUDED_MU_TINY_ guards, mutiny_ C-prefix).
  • For new features, I have considered if a C-interface adapter (.h and .c.cpp) is required for parity.
  • I have reviewed the CONTRIBUTING.md file to ensure compliance with architectural guidelines.

@coveralls

coveralls commented Sep 10, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 98.947%. remained the same — ci/fix-ccache-ordering-and-keys into main

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor
TestsPassed ✅Skipped ⚠️Failed
JUnit Tests1083 ran1074 passed9 skipped0 failed

The build matrix job ran ccache-action before actions/checkout, so
checkout's directory-cleanup wiped the just-restored .ccache before
any compilation, forcing a near-total cache miss on every run
regardless of what changed. Move checkout first, matching every other
job in this file.

Also give the test_report, tap_validate, and source_archive jobs
distinct ccache keys — they previously shared the default "ccache"
key and thrashed each other's cache despite building different
configs.
@thetic
thetic force-pushed the ci/fix-ccache-ordering-and-keys branch from 096d062 to 14826ae Compare September 10, 2026 05:19
@thetic
thetic merged commit 0acffdb into main Sep 10, 2026
42 checks passed
@thetic
thetic deleted the ci/fix-ccache-ordering-and-keys branch September 10, 2026 05:23
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