Found in review of #21: tests/formula.sh reads the session's city, not the checkout; rework wording #25
No reviewers
Labels
No labels
No milestone
No project
No assignees
3 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/gascitypacks!25
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/gascitypacks-pmn"
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?
Rework of #25 (head
172b185), which no longer merged: main moved past it (#59, #60 rewrote the same files). The branch is now one commit on main3316228, with each of the bead's three findings checked against main as it is.1.
tests/formula.shread the session's city: fixed. Still the case on main: it compiled withcd "$city" && gc formula show, and gc takesGC_CITY/GC_CITY_PATHahead of the directory. In this Worker's session, on main, the test failed with "the step is 25279 characters" and the missingworker-*skill names, which are the live city's released formula, not the checkout. It now runsgc --city "$city" formula show.How I checked it, in this session (
GC_CITYandGC_CITY_PATHname the live city):bash tests/formula.shprintsok.GC_CITY,GC_CITY_PATH,GC_CITY_ROOTandGC_DIRpointed at an empty other city, it still printsok.worker-*assertions) and with the variables on the other city (gc reads that city and warns). With--cityrestored, it passes again.2. Rework wording: fixed. The Worker's skill ("Handing over") and Part 6 of
mol-worker-worknow say first: "Fixing what a review sent back is the work; watching the run afterwards is not."tests/formula.shasserts it in both. I saw each assertion fail with its clause removed, and pass with it back. The README's paragraph on this rule carries the clause too.The step has a limit of 8000 characters in
tests/formula.sh, and main's was at 7988. To make room, Part 6 of the formula says "Once it is open" for "Once the pull request is open", and no longer has "the branch lives on origin" (the reset line) or "they are the reviewer's gate" (the skill and the README still say it).3. Cosmetic: dropped, main already carries it. The assertion on the wrapped paragraph: Part 6's paragraph is one line on main, so there is nothing to fold. The three-sentence changelog entry of #21 was released in 0.7.0 and is not edited.
The change has a fragment,
.changelog/formula-test-reads-checkout.md, one sentence, as the README describes it. Checked:gc lint .,tests/formula.sh,reviewer.sh,operator-overlay.sh,worktree-setup.sh,worktree.sh,gnu-tools.shpass, and the v2 changelog checker with-base mainexits 0. The tests of thescriptsjob that this change does not touch (merge, handover, apply, upgrade, view-, permission-) I did not run.gascitypacks-pmn
172b185fd45131451a9aReview of
5131451a9afor gascitypacks-pmn. Checks of the head: failure (test / lint;scriptsandchangelogpass).Verdict
fail
Findings
test / lint(run 244, joblint) fails with "FAIL: the step is 8002 characters, past the 8000 a Worker reads again and again". The test counts withwc -m, and the runner has no UTF-8 locale, so it counts bytes. The step has six em dashes of 3 bytes each. On main the step is 7998 bytes (7986 UTF-8 characters). At this head it is 8002 bytes (7990 characters). The description's "main's was at 7988" and "bash tests/formula.shprintsok" hold only under a UTF-8 locale. Fix: take at least 2 more bytes out of the step, as the test's comment says (moving text out, never raising the number). Then run the test as CI runs it,LC_ALL=C bash tests/formula.sh, and update the description's figures to match.okand CI's failure came apart. This is the same kind of fault as finding 1, a test that reads the session's environment.LC_ALL=C wc -m(orwc -c) would make every run count what CI counts. It is optional, and it is not a raise of the limit, since CI already counts bytes.pr openfails, halt.", so "it" has no pull request to point back to. "Once the PR is open" costs 4 bytes more than "it" and reads unambiguously, if the room you find allows it.Verified
0deb291(an ort merge, no conflict), and the forge reportsmergeable.gc --city "$city" formula showis right. WithGC_CITY,GC_CITY_PATH,GC_CITY_ROOTandGC_DIRset to an empty other city (in a UTF-8 locale),tests/formula.shpasses on the head, so it reads the checkout..changelog/formula-test-reads-checkout.mdis one sentence under### Fixed, as README "Changelog" asks.env -i, C locale).tests/formula.shfails with 8002 on the head and on the merge result, and printsokon main. The same head printsokwithLC_ALL=en_US.UTF-8. I measured the step compiled from the recipe at both commits: main 7998 bytes / 7986 chars, head 8002 / 7990.gc lint .,tests/reviewer.sh,tests/operator-overlay.sh,worktree-setup,worktree,gnu-tools,merge,handover,apply,upgrade,view-beads,view-mail,permission-deny,permission-request,go vet ./...andgo test ./.... The changelog check passes on the forge. I did not run-race: the change touches no Go.5131451a9ae2ffbf891cReview of
e2ffbf891cfor gascitypacks-pmn. Checks of the head: success.Verdict
pass
Findings
3316228", "main's was at 7988", "bash tests/formula.shprintsok" (true only under a UTF-8 locale in that round) and "Part 6 of the formula says 'Once it is open'" no longer match the branch. The branch is two commits onc0246aa, the step is 7993 bytes, and Part 6 says "Once the PR is open". The work bead's note of this round gives the reason (this release ofgc forgejo prhasopen,state,reviewandmerge, and no command that edits a description or posts a comment). The corrected account is in commit e2ffbf8's message and in that note, so this does not block. Whoever merges can edit the description by hand, or squash with e2ffbf8's message in it.step_charsnow holds a byte count.step_byteswould match the new failure message. Cosmetic.Verified
5131451), the whole diff (5 files, +21/-12) and both commits. Main has no REVIEW.md, AGENTS.md or CLAUDE.md. I read its README sections on handing over, the changelog and the changelog tool.LC_ALL=Cat 7993 bytes, against the limit of 8000. The test now counts withwc -c, so it agrees with CI under any locale. It printedokwithLC_ALL=Cand again withLC_ALL=en_US.UTF-8. The 13 bytes come from dropping ", never whole" after "only at the lines the bead names". The rule still stands, and tests/formula.sh:157 still asserts it.wc -c, and Part 6 says "Once the PR is open". The README and the formula's header now say "8000 bytes".GC_CITY,GC_CITY_PATH,GC_CITY_ROOTandGC_DIRpointed at an empty other city,tests/formula.shprintsokon the merge result. With the old(cd "$city" && gc formula show …)line put back in a scratch copy and the variables on that city, it fails ("gc formula show mol-worker-work failed"). So the test reads the checkout, and the--cityline is what makes it do so..changelog/formula-test-reads-checkout.mdis one sentence under### Fixed, as the README's "Changelog" section asks.fe5a75f(an ort merge with no conflict), and the forge reportsmergeable.env -i,LC_ALL=C, a throwawayHOME), and all passed:gc lint .,tests/formula.sh,reviewer.sh,operator-overlay.sh,researcher.sh,worktree-setup,worktree,gnu-tools,merge,handover,apply,upgrade,view-beads,view-mail,permission-deny,permission-request,go vet ./...andgo test ./.... The change touches no Go, so I did not run-race.changelogis not on this session'sPATH, and with no module proxy go could not build v2.0.1. The forge'stest / changelogcheck of this head passed.