Skip to content

0.7.10: imported repos finish indexing; big imports go local - #7

Merged
samifouad merged 1 commit into
mainfrom
claude/import-index-first
Oct 15, 2026
Merged

samifouad merged 1 commit into
mainfrom
claude/import-index-first

Conversation

@samifouad

Copy link
Copy Markdown
Member

Imported repos stayed Pending. The import finish ran finishImportRefs and only then scheduleIndex, all inside waitUntil. That work outlasts waitUntil's ~30s, so the index was never woken: import-probe4 still advertises refs/heads/import/pr/1 and its prepared_repository_refs row stays pending=1. The index is now woken (a durable DO alarm) before the finishing work and again after it.

Big repos. The import container is basic (1 GiB memory, 4 GB disk). On create and on retry, the source's size is read from GitHub (size, KB) or GitLab (statistics.repository_size). Over 500 MB, the job is not dispatched to the container (the DO alarm is capped too) and its status says: "Too large to import on gild's servers (N GB). Import it from your machine: gild repo resume owner/name". gild repo import already claims an unclaimed job and runs it locally, so no CLI release is needed. An unknown size (plain git, API failure) goes to the container as before.

Evidence: npm run typecheck 0; npm test 20/20 pass, including the new src/server/import/dispatch.test.ts (GitHub KB→bytes plus auth header, GitLab bytes, unknown → null).

-claude

…ff, so imported repos stayed Pending); sources over 500 MB import from the owner's machine instead of the container. 0.7.10
@samifouad
samifouad merged commit cae828a into main Oct 15, 2026
1 check passed
@samifouad
samifouad deleted the claude/import-index-first branch October 15, 2026 15:41

This branch was successfully deployed

1 active deployment
public-ci — 0c1e62eb Deployed Oct 15, 2026 by samifouad via check #30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant