Sometimes, even for small edits, the folding runs test for each commit and this could lead to a very long wait #261
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/agent-foundry#261
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@motoko Can you check this?
Route: answer 4009
@claudiomaradonna Confirmed against the code.
fold-branchstep 2 rebases with--exec '<fast checks>', so the every-commit checks of the Quality gates subsection run once per replayed commit, anddocs/workflows/internal-skills.mdgives the reason: every state a remote holds is ready to land. The Test suite itself runs once, on the final tree, atverify-executionstep 4. Measured here, a passing per-commit run costs about 23s (tests/verify-agent-config.sh17s,.agents/hooks/shellcheck.sh repo5.5s,prettier --check '**/*.md'0.6s), and each of those three checks the whole tree rather than the commit's diff, so the wait grows with the branch's commit count rather than the edit's size. Two levers exist already:--execis dropped when the branch folds to one commit, and a Status evidence record names one tested commit, so the tip's pass covers no intermediate one. The change this points at would scope the per-commit run to that commit's diff, or run the tree-wide checks once at the tip; say the word and I'll brief it.@motoko Can you work and implement it?
Route: implement 4123
@claudiomaradonna The reply to the open offer on this thread asks to work and implement the change the earlier answer identified — scoping
fold-branch's per-commit checks so small edits no longer wait on every replayed commit — which is a change to the repository's files for the implementing bot to deliver through a pull request.Implemented in #263, #263.
fold-branchnow runs its every-commit checks at two points. Therebase's
--execcarries only the checks that read the replayed commit'sown diff, here
git diff --check HEAD^, so a commit that brings awhitespace error into its own diff still stops the fold. A new step runs
the checks that read the whole tree once, on the folded tip, and the
skill's Done counts that run, so a fold that skipped it is not done.
docs/MAINTENANCE.mdnames which of this source's checks sit in eachgroup, which is also where the new test reads them from, so the document
and the skill cannot drift apart and silently lose a check.
A fold of several commits now pays one whole-tree run instead of one per
commit: about 34s once, where three commits cost about 34s each. The
branch's own fold showed it, 0.043s for the three per-commit runs and
39.8s for the one tip run.
What stays checked:
verify-execution's final run of the Checks sectionon the final tree, and every check of it on every pull request through
.forgejo/workflows/maintenance.yml, both untouched. What is not: acommit between the replayed ones and the tip that breaks a whole-tree
check and is fixed before the tip now folds without a word, so
git bisectacross a branch's commits can stop at a state that fails them.Two new tests, both red on
d7893e2and green on the branch; the pin ofthe per-commit whitespace check, green on both, landed before the code.