Repository navigation
Conversation
`git submodule update --init` fetches from the URL a submodule was first initialized with, so a submodule the repository moved to another remote looked for its new pins in the old one and failed with "not our ref" on every pass. Both checkout paths now call compiler_tier.update_submodules, which runs a local `git submodule sync --recursive` first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…it in the hold test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…pass Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
This branch has not been deployed
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
A C++ compiler tier no longer stops at a submodule the repository moved to another remote: each pass syncs the submodule URLs from the commit's
.gitmodulesbefore it fetches their pins.Why
The C++ tier keeps one checkout per entry and moves it from commit to commit.
git submodule update --initfetches from the URL a submodule was first initialized with, not from the URL in the current.gitmodules. When a repository moves a submodule to another remote (for example, to its own fork) and pins a commit that only the new remote has, every pass fails withupload-pack: not our ref <sha>. The failure is classifiedpin_missing, and its fix tells the operator to repin, which the operator cannot do because the pin exists upstream. A deployment indexing a large C++ repository hit this when the repository moved one dependency to a fork. Its checkouts all still pointed at the old remote, and the tier stayed thousands of commits behind.git submodule synccopies each URL from the checked-out.gitmodulesinto the checkout's config. Both tier paths that move a checkout (scip_full.move_checkoutand thecode_scip_deltaworker) now call one helper,compiler_tier.update_submodules. It syncs and updates the top level, then syncs recursively, so each nested URL comes from its parent's new tree, and then updates recursively.Scope and risk
Compatibility, rollout and rollback
.git/config. They are the URLs the repository names, so nothing needs cleaning up.Tests
tests/unit/test_submodule_url_sync.py(new) builds a repository whose submodule moves to a fork, with the new pin only on the fork, and runsupdate_submoduleswith plain git. Without the sync it fails withfatal: remote error: upload-pack: not our ref …/Fetched in submodule path 'sub', but it did not contain …, the same error as the deployment. With the sync it passes.Fetched in submodule path 'mid/leaf', but it did not contain …. With the current order it passes.test_code_scip_delta_worker.pyandtest_repo_job_sandbox.pynow assert that the sync runs before the update and that only the update is networked and authenticated.test_code_scip_full_worker.pypass (86 tests). The repo-wide ratchet, census, snapshot, public-copy and doc-link files pass.make formatis clean. The lint--checksteps pass, except the Go and Rust SDK generators, which needgofmtandrustfmt, neither installed on this host.make typecheckreports only errors in files this PR does not touch (server/llm/vertex_auth.py,server/observability/otel*.py), from the shared environment's installed packages.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. The failing case was reproduced from the deployment's checkouts: their submodule config named the old remote, while the commit was present on the new one.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.main; no merged migration is edited (none).frontend/changed (unchanged).docs/describe the system as it now is (no doc describes the update step).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code
Note
Medium Risk
Changes git checkout behavior on every C++ tier pass (extra sync/update steps and network submodule fetches); limited to compiler-tier paths, not auth or data stores.
Overview
Fixes C++ compiler-tier checkouts that stall when a repository moves a submodule to another remote and pins a commit only on the new URL. Long-lived checkouts still had the submodule’s original remote in local config, so
git submodule updatefailed with missing-pin errors even though the pin was valid upstream.The diff adds
compiler_tier.update_submodules, which runssubmodule syncfrom the target’s.gitmodules(local, no token), thensubmodule update --init(networked with existing auth), first at the top level and again recursively so nested.gitmodulescome from parents already at their pins.scip_full.move_checkoutand thescip_deltaworker call this helper instead of a single recursive update. Tests now expect sync-then-update ordering and addtest_submodule_url_sync.pyfor moved top-level and nested submodules.Reviewed by Cursor Bugbot for commit a9c94ce. Bugbot is set up for automated code reviews on this repo. Configure here.