fix(ci): Disable sparse-checkout cone mode for Claude context files#17713
Closed
pratikpugalia wants to merge 1 commit into
Closed
fix(ci): Disable sparse-checkout cone mode for Claude context files#17713pratikpugalia wants to merge 1 commit into
pratikpugalia wants to merge 1 commit into
Conversation
The "Checkout for Claude context and prompt" step lists three files in its sparse-checkout (CLAUDE.md, .claude/CLAUDE.md, .claude/skills/ci-failure-analysis/SKILL.md). actions/checkout enables cone mode by default, and git 2.54 (now on ubuntu-latest runners since ~May 20) hard-rejects non-directory entries in cone mode with: fatal: '.claude/CLAUDE.md' is not a directory Disable cone mode on this step so file paths are accepted. The earlier sparse-checkout of .github/scripts stays in cone mode — it is a directory and works. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
✅ Deploy Preview for meta-velox canceled.
|
Build Impact AnalysisNo build targets affected by this change. Fast path • Graph from main@67f7deaf023e581bef67301d0c143a7725888b79 |
Contributor
Author
kgpai
approved these changes
Jun 3, 2026
Contributor
|
Thanks @pratikpugalia ! |
|
@kgpai has imported this pull request. If you are a Meta employee, you can view this in D107456949. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
CI Failure Commentworkflow has been failing on every run since git 2.54 landed onubuntu-latestrunners (around May 20). TheCheckout for Claude context and promptstep passes file paths to sparse-checkout:actions/checkoutenables cone mode by default, and git 2.54 hard-rejects non-directory entries in cone mode:Earlier git versions on the runner (e.g. 2.53.0 on May 15 runs) accepted file paths in cone mode, which is why the same YAML used to work.
This change sets
sparse-checkout-cone-mode: falseon the affected step so file paths are accepted. The earlier.github/scriptscheckout stays in cone mode — it is a directory and works fine.