Skip to content

Tolerate Cache Fails During GitHub Action Runs#497

Merged
dchansen06 merged 7 commits into
mainfrom
LessFaily
May 27, 2026
Merged

Tolerate Cache Fails During GitHub Action Runs#497
dchansen06 merged 7 commits into
mainfrom
LessFaily

Conversation

@dchansen06
Copy link
Copy Markdown
Contributor

Cache Fails Fine

Problem and Scope

Cache is not perfect and occasionally dies, but it is not key just really nice

Description

Treat sccache like ccache and ensure the CI/CD jobs are not dependent on it passing

Gotchas and Limitations

Manually must check in and ensure GitHub Action cache is working still

Testing

  • HOOTL testing
  • HITL testing
  • Human tested

Testing Details

Ran with ccache, sccache, and neither locally

Larger Impact

Less intrusive CI/CD jobs

Additional Context and Ticket

Resolves #496

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06 dchansen06 self-assigned this May 26, 2026
@dchansen06 dchansen06 added Enhancement New feature or request GitHub Meta, anything related to or dealing with GitHub CMake Anything related to or dealing with CMake HOOTL Testing Having to do with or interacting with HOOTL testing Small Fry Something that is small, could include bug fixes or smaller changes Pipe Dream Would be amazing... but realistically... it might be dubious to get it on the car 3 NORMAL Important but not really a priority Bug Something is doing a thing but doing it wrong or otherwise incorrectly labels May 26, 2026
@dchansen06 dchansen06 modified the milestones: GR26, Monorepo Niceties May 26, 2026
@dchansen06 dchansen06 marked this pull request as ready for review May 26, 2026 20:14
@dchansen06 dchansen06 requested a review from Copilot May 26, 2026 20:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to make CI runs resilient to intermittent GitHub Actions cache / sccache issues (Issue #496) by making cache-related steps non-fatal and moving sccache enablement into CMake so builds can proceed even when caching infrastructure flakes.

Changes:

  • Add automatic sccache compiler launcher configuration in CMakeLists.txt (similar structure to existing ccache setup).
  • Ignore the local sccache/ directory in .gitignore.
  • Update the UnitTests HOOTL workflow to tolerate failures in cache and sccache setup/start steps and stop forcing -DCMAKE_C_COMPILER_LAUNCHER=sccache in CI.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
CMakeLists.txt Auto-detects and configures sccache as a compiler launcher (and sets SCCACHE_DIR).
.gitignore Adds sccache/ to ignored build/cache artifacts.
.github/workflows/UnitTestsHOOTL.yml Makes cache and sccache setup steps non-fatal and removes hard-forcing sccache via a CMake CLI flag.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CMakeLists.txt
Comment thread CMakeLists.txt Outdated
@dchansen06 dchansen06 merged commit e1d5a73 into main May 27, 2026
86 checks passed
@dchansen06 dchansen06 deleted the LessFaily branch May 27, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 NORMAL Important but not really a priority Bug Something is doing a thing but doing it wrong or otherwise incorrectly CMake Anything related to or dealing with CMake Enhancement New feature or request GitHub Meta, anything related to or dealing with GitHub HOOTL Testing Having to do with or interacting with HOOTL testing Pipe Dream Would be amazing... but realistically... it might be dubious to get it on the car Small Fry Something that is small, could include bug fixes or smaller changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shared Compiler Cache Intermittent Failure

2 participants