Skip to content

Install: stop pulling every submodule when a required one is missing - #24523

Open
JakeStevens wants to merge 1 commit into
pytorch:mainfrom
JakeStevens:minimal-submodule-update
Open

JakeStevens wants to merge 1 commit into
pytorch:mainfrom
JakeStevens:minimal-submodule-update

Conversation

@JakeStevens

Copy link
Copy Markdown
Contributor

`install_executorch.py` runs a bare `git submodule update --init --recursive` whenever a required submodule is missing, which fetches all ~24 submodules, including llama.cpp and mlx. The default build uses neither (`EXECUTORCH_BUILD_NATIVE_GGML` defaults to OFF).

This updates only the missing required paths, and marks llama.cpp `shallow = true` (as mlx already is) so it is no longer cloned with full history. The shallow setting also helps anyone who clones with `--recursive` before the install script runs.

Not tested end to end: I haven't run the installer from a clean checkout, and haven't confirmed that a depth-1 fetch of the pinned llama.cpp commit works when it isn't a branch tip. lintrunner wasn't available locally.

Authored with Claude Code.

check_and_update_submodules() ran a bare `git submodule update --init
--recursive` whenever a required submodule was absent, which fetched all
~24 submodules including llama.cpp and mlx, even though the default build
uses neither. Update only the missing required paths instead, and mark
llama.cpp shallow like mlx so it is no longer cloned with full history.

This PR was authored with the assistance of Claude Code.
@pytorch-bot

pytorch-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24523

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures, 3 Cancelled Jobs, 2 Pending, 1 Unrelated Failure

As of commit 309f6cc with merge base 4628b2b (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

This branch has not been deployed

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant