fix(ci): check out shallowly #272
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/agent-foundry!272
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ci-shallow-checkout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The Maintenance workflow has failed on most runs since #269. In each failed run the checkout step gives up at "Fetching the repository" after about 3m40s, so no check runs and
publishis skipped. After the merge of #271,codex-pluginwas never created andclaude-pluginstill holds an older build.Both jobs check out with
fetch-depth: 0. The forge serves the whole history slowly. Measured from outside, a full fetch of this 1.9 MB repository takes 61 to 94 s, while a depth-1 clone ofmaintakes 4 s. The checkout's three attempts each fail at about a minute.What changed
checkschecks out at depth 1. When the checkout leaves no localmain, as on a pull request, its step "Name the main branch" fetchesmain's tip at depth 1 instead of branching fromorigin/main.git diff --check mainneeds nothing more.publishchecks out at depth 1, and a new step, "Fetch the tip of main", fetchesmainat depth 50. The rollback check inscripts/publish-form.shneeds a later commit that has already been published, and a push's checkout holds only the pushed commit and its ancestors.How to verify
Base
mainat7d92842, branch tipd2e20ab.Emulate the
checksjob:Then run the steps of
docs/MAINTENANCE.md. All pass: 427 agent-configuration tests, 46 work-folder tests, ShellCheck, prettier, the static validator, andgit diff --check main.Emulate
publishon a late run:codex-pluginholds the build of7d92842, start a repository holding onlyef93d38, fetched at depth 1;scripts/publish-form.sh codex ef93d38 <bare repository>.It prints "a later commit … nothing published". Without the fetch step,
7d92842is missing and the guard would let the older build through.This pull request's own Maintenance run passes its checkout in seconds. The run after the merge publishes
claude-pluginand createscodex-plugin.Considerations
https://claude.ai/code/session_012wUN2eKSj9s2vRHJdFPNk3
Command failed
The agent did not complete this command, so nothing came of it. A person should look at this thread.
The run failed at step "aoe_purge". The operator reads the job logs in the Windmill editor, or finds the run with:
wmill job list --path f/agents/bot_commands