Skip to content

Fix: Simplify cache clearing/reset behaviour and do NOT exit with error#125

Merged
ModeSevenIndustrialSolutions merged 1 commit intolfreleng-actions:mainfrom
modeseven-lfreleng-actions:fix/cache-clear-matrix-race-condition
Dec 31, 2025
Merged

Fix: Simplify cache clearing/reset behaviour and do NOT exit with error#125
ModeSevenIndustrialSolutions merged 1 commit intolfreleng-actions:mainfrom
modeseven-lfreleng-actions:fix/cache-clear-matrix-race-condition

Conversation

@ModeSevenIndustrialSolutions
Copy link
Contributor

The previous cache clearing logic was too complex and caused sequencing issues in matrix jobs. The first cache clearing build would succeed, then all subsequent matrix jobs would fail. Failing to clear the Python build cache should not cause the workflow to stop/exit.

Copilot AI review requested due to automatic review settings December 24, 2025 08:30
@github-actions github-actions bot added the bug Something isn't working label Dec 24, 2025
@ModeSevenIndustrialSolutions
Copy link
Contributor Author

Fixes:

image

Copy link

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 simplifies the cache clearing logic in the GitHub Action workflow to prevent matrix job failures. The previous implementation was too complex and caused sequencing issues where the first cache clearing build would succeed but subsequent matrix jobs would fail.

Key changes:

  • Removed complex error handling that was causing workflows to exit on cache clearing failures
  • Made cache clearing non-fatal to prevent workflow interruptions
  • Simplified the cache deletion command and error messaging

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

The previous cache clearing logic was too complex and caused sequencing
issues in matrix jobs. The first cache clearing build would succeed, then all
subsequent matrix jobs would fail. Failing to clear the Python build cache
should not cause the workflow to stop/exit.

Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions force-pushed the fix/cache-clear-matrix-race-condition branch from 8a74ced to f79b8d9 Compare December 24, 2025 09:16
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions merged commit 8f56739 into lfreleng-actions:main Dec 31, 2025
5 checks passed
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions deleted the fix/cache-clear-matrix-race-condition branch December 31, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants