Skip to content

skip stats if setup-ccache did not run or failed#14542

Closed
mszeszko-meta wants to merge 1 commit intofacebook:mainfrom
mszeszko-meta:skip_stats_on_ccache_setup_failure
Closed

skip stats if setup-ccache did not run or failed#14542
mszeszko-meta wants to merge 1 commit intofacebook:mainfrom
mszeszko-meta:skip_stats_on_ccache_setup_failure

Conversation

@mszeszko-meta
Copy link
Copy Markdown
Contributor

teardown-ccache runs with if: always(), but in folly jobs setup-folly precedes setup-ccache. When setup-folly fails, setup-ccache is skipped, so CCACHE_DIR is unset and ccache is not on PATH. This is exactly what happened here. Fix guards teardown-ccache to exit gracefully when CCACHE_DIR is unset, and tolerate missing ccache binary for stats.

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 31, 2026

@mszeszko-meta has imported this pull request. If you are a Meta employee, you can view this in D98964757.

@github-actions
Copy link
Copy Markdown

✅ clang-tidy: No findings on changed lines

Completed in 0.0s.

Copy link
Copy Markdown
Contributor

@joshkang97 joshkang97 left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 31, 2026

@mszeszko-meta merged this pull request in 1e23ee0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants