Port rexcity's packs/forgejo and packs/github into gascitypacks #45
Closed
city-root
wants to merge 1 commit from
worker/gascitypacks-egf into main
pull from: worker/gascitypacks-egf
merge into: mikluko:main
mikluko:main
mikluko:worker/gascitypacks-ijcw
mikluko:worker/gascitypacks-p5cy
mikluko:worker/gascitypacks-af93
mikluko:worker/gascitypacks-mtcg
mikluko:worker/gascitypacks-2x9
mikluko:worker/gascitypacks-qnsh
mikluko:worker/gascitypacks-vupm
mikluko:worker/gascitypacks-h7fn
mikluko:worker/gascitypacks-jmz
mikluko:worker/gascitypacks-fxmc
mikluko:worker/gascitypacks-lwe0
mikluko:worker/gascitypacks-n2x5
mikluko:worker/gascitypacks-bsma
mikluko:worker/gascitypacks-0uk
mikluko:worker/gascitypacks-n905
mikluko:worker/gascitypacks-pmn
mikluko:worker/gascitypacks-yxh
mikluko:worker/gascitypacks-ajfb
mikluko:worker/gascitypacks-sad0
mikluko:worker/gascitypacks-60o
mikluko:worker/gascitypacks-fvuc
mikluko:worker/gascitypacks-pce
mikluko:worker/gascitypacks-zcir
mikluko:worker/gascitypacks-mfk1
mikluko:worker/gascitypacks-cf7
mikluko:worker/gascitypacks-omd
mikluko:worker/gascitypacks-7l7
mikluko:worker/gascitypacks-bo9
mikluko:worker/gascitypacks-is74
mikluko:worker/gascitypacks-lie9
mikluko:worker/gascitypacks-f4a2
mikluko:worker/gascitypacks-w30
mikluko:worker/gascitypacks-hzpj
mikluko:worker/gascitypacks-uop1
mikluko:worker/gascitypacks-whrw
mikluko:worker/gascitypacks-uwub
mikluko:worker/gascitypacks-mkr
mikluko:worker/gascitypacks-2naa
mikluko:worker/gascitypacks-iq1
mikluko:worker/gascitypacks-r82
mikluko:worker/gascitypacks-uno
mikluko:worker/gascitypacks-7ws
mikluko:worker/gascitypacks-wmm
mikluko:worker/gascitypacks-3yp
mikluko:worker/gascitypacks-nf2
mikluko:worker/gascitypacks-uuv
mikluko:worker/gascitypacks-c7j
mikluko:worker/gascitypacks-y9t
mikluko:worker/gascitypacks-as6
mikluko:worker/gascitypacks-7mb
mikluko:worker/gascitypacks-r6e
mikluko:worker/gascitypacks-0wh
mikluko:worker/gascitypacks-a6s
mikluko:worker/gascitypacks-bll
mikluko:worker/gascitypacks-hdo
mikluko:worker/gascitypacks-4s6
mikluko:worker/gascitypacks-zhy
mikluko:worker/gascitypacks-8g8
mikluko:worker/gascitypacks-83h
mikluko:worker/gascitypacks-vq0
mikluko:worker/gascitypacks-cbz
mikluko:worker/gascitypacks-tdl
mikluko:worker/gascitypacks-8i0
mikluko:worker/gascitypacks-ais
mikluko:worker/gascitypacks-gen
mikluko:worker/gascitypacks-bh1
mikluko:worker/gascitypacks-od7
mikluko:worker/gascitypacks-n1i
mikluko:worker/gascitypacks-5rz
mikluko:worker/gascitypacks-3pm
mikluko:worker/gascitypacks-ape
mikluko:worker/gascitypacks-ad5
mikluko:worker/gascitypacks-sra
mikluko:worker/gascitypacks-43m
mikluko:release/0.3.0
mikluko:fix/5wz-one-worker-per-bead
mikluko:worker/gascitypacks-0wl
mikluko:worker/gascitypacks-xqa
mikluko:worker/gascitypacks-w8j
mikluko:worker/gascitypacks-464
mikluko:release-0.1.0
mikluko:worker/gascitypacks-eij
mikluko:worker/gascitypacks-r3f
mikluko:worker/gascitypacks-8yl
mikluko:no-skill-appendix
mikluko:worker/gascitypacks-7dv
mikluko:merge-close-handed-over
mikluko:worker-tab-label
mikluko:worker/gascitypacks-2fl
mikluko:role-skills
mikluko:fix/worktree-setup-staged-workdir
mikluko:operator-bypass
mikluko:beads-ignore
mikluko:minimal-pack
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
mikluko/gascitypacks!45
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/gascitypacks-egf"
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?
What this does
Ports rexcity's
packs/forgejoandpacks/githuband their tests into this repository (beadgascitypacks-egf), as the user decided on 2026-11-12: rexcity is the runtime only. Nothing in rexcity,forgejo/orroles/changes. Removing the packs from rexcity is another bead, after this one is merged and released.Taken from rexcity
mainat6a38c88(the bead said 8afa954 or later):packs/forgejo(11 files),packs/github(9 files) and the tenpacks/*_test.go, moved as they were. The only edits are the ones the new home forces: the pack names, the READMEs' import examples and paths, and the tests' paths to the packs (tests/refinery/paths_test.go).Names
packs/forgejo(nameforgejo)refinery-forgejo/(namerefinery-forgejo)forgejois thegc forgejo prtool and themergeorderpacks/github(namegithub)refinery-github/(namerefinery-github)I took the Operator's suggestion: both say what the pack is for (gastown's Refinery) before they say the forge, and
refinery-forgejocannot be read asforgejo. I found none better. A shorterpr-*would clash withgc forgejo pr. The formulas keep saying "the forgejo pack's fork" and "the github pack's fork" in their descriptions, since a test checks that text and the bead said no change of behaviour.What an importer changes
Two lines of the import and nothing else (each pack's README, "Moving from rexcity", says so):
The source was
https://sarak.sh/mikluko/rexcity.git//packs/forgejo(orpacks/github), and the version was^0.8(forgejo) or^0.23(github) against rexcity's tags.^0.6assumes this change goes out as 0.6.0, the next minor after 0.5.0; the READMEs say "the first release that carries the pack", so if the release is numbered otherwise only the example changes. The bindingpr, the fragment names (forgejo-refinery,github-mayor, ...) and the formula vars are unchanged. No city imports these packs today.Tests in CI
tests/refinery(sarak.sh/mikluko/gascitypacks/tests/refinery), with testify, BurntSushi/toml and goldmark (what rexcity'sgo.modrequired of them, same versions). The forgejo tool's module has no dependency and keeps none.test / lintjob, which already installs Go andjq: a new steprefinery packs testsrunsgo vet ./...andgo test ./.... No new required check is needed. The Go cache key now also namestests/refinery/go.sum.docs/shell.mdsection 3 (one module at the root, not yet accepted): if the user accepts it, item 0 moves the files into the root module and the three requirements into itsgo.mod. I recommend keeping this module separate (the doc says why, and says I have not tried the alternative offline); nothing here depends on the answer.The repository's own checks
gc lint .finds the two packs by itself: "4 pack(s) ok", with the same "not composed by city" warning each pack has.tests/formula.shpasses. The changelog tool v1.6.0, built from its tag, reports the changelog valid.tests/formula.shand the other shell tests walk no pack but their own, so none needs to know of the new ones..forgejo/workflows/release.yaml: a comment said one tag covers "both packs"; it names four now. Nothing else of the workflow changed.Run here
On this Mac, with a stub
rexthat exits non-zero first onPATHandGOPROXY=off:go vet ./...andgo test -count=1 ./...intests/refinerypass (68 s), also with the BSDdateahead of the GNU one (rexcity's #66 problem is gone at6a38c88);go test ./...of the forgejo tool passes. No ported test fails here, so none is skipped.Shell that came along
pr-sweep.sh(396 non-blank lines, S 353, D 56, P 33) and the formulas' shell (865 + 383 inrefinery-forgejo, 673 + 514 inrefinery-github: 2435 code lines ofbashblocks) are moved as they are. Whatdocs/shell.mdneeded and now has: a section 1.5 with the inventory rows and the counts (the totals and the tables of section 2 stay ate22b7f9, and say so), plan item 8 (pr-sweepas a Go command of the forgejo tool, after item 0 and after Landing's L12/L13/L15), the rexcity bullet of section 6 (rexcity's ownpr-sweep.shcount goes with the port; it keeps 134 lines of CI and chart glue), the Appendix A command (it now also readsrefinery-forgejo/orders), and a note on the tests' module. The formulas' shell is not planned for Go: most of the patrol formula is gastown's, held byte for byte by the drift test; the plan keeps them as ledger lines with that reason, if the rule is adopted.Defects that travelled with the packs
All four stay open in rexcity's store; none is fixed here:
rexcity-k83: a blocked review bead keeps its claim, so the reviewer sleeps and holds the pool slot. rexcity's #30 fixes it and is in the files taken; the bead is still open there.rexcity-0rbg: an apostrophe in the work title blanks the pull request's title and the review bead'spr_url, and gives a false "not protected" mail. Open, unfixed (the formula text is as it was).rexcity-h89g: the Mayor's forgejo fragment does not hand a pull request it opens outside the Refinery to review and auto-merge. Open, unfixed.rexcity-ncth:TestReviewOfAMovedHead/work_bead_names_a_round_no_review_bead_hasfailed on rexcity's main at736605d. It passes at6a38c88(rexcity's #48,76d21f7, changed the test); its bead is still open there.The CHANGELOG entry under
[Unreleased]says the same.Bead: gascitypacks-egf
Review of head
11d02deb25(bead gascitypacks-egf). Verdict: changes required, one line.Required
refinery-github/README.md:193says: "Its name isrefinery-githubbecause this repository already has agithubpack". It has none: the packs areroles,forgejo,refinery-forgejoandrefinery-github. Give the true reason, for example that the name followsrefinery-forgejo's, saying what the pack is for before the forge, and that a baregithubbeside this repository'sforgejowould read as that pack's GitHub counterpart. Nothing else needs to change.What I checked (all good)
6a38c88(descends from 8afa954),diff -rfile by file. All 11 + 9 pack files and all tenpacks/*_test.goare here, nothing left behind, nothing extra beyondtests/refinery/{go.mod,go.sum,paths_test.go}. Differences:pack.tomlname(both), the READMEs (title, intro, import example, paths,go testcommand, the new "Moving from rexcity" section), and in the tests only the pack paths (nowforgejoPack/githubPackconstants) plus one assertion that needs it:github_pack_test.go:97expectsrefinery-githubwhere it expectedgithub. Formulas, prompts, fragments, script, order, upstream copies: byte-identical. go.mod requirements match rexcity's versions; go.sum lines identical.forgejoorroles. Scratch cities (throwaway HOME, city variables removed) importingroles,forgejoand the ported pack aspr, at the city and on a rig:gc config show --validatesays "Config valid." for both packs;gc formula list --rigshows each formula once.test / lintstep "refinery packs tests": the log of run 1658 hasok sarak.sh/mikluko/gascitypacks/tests/refinery 79.871s. On the merge result (mainb3474d4is the PR's base, so the tree equals the head's), with a stubrexfirst on PATH and GOPROXY=off:go vet,go test -count=1 -v(194 PASS, no SKIP, no FAIL) and-racepass intests/refinery; the forgejo tool's tests pass. No skip was added; the only skips are rexcity's own, when bash/jq/curl/git are missing.gc lint .: 4 pack(s) ok.tests/formula.shpasses (it walks only roles). Changelog tool v1.6.0, built from its tag: valid.forgejo/orroles/changed. CHANGELOG entry under [Unreleased]; the four rexcity defects listed.Follow-ups, not blocking
docs/shell.md's single root module (withinternal/gcx) and the Moderate rule. This PR adds a recommendation (section 3.2) to keeptests/refinerya separate module. That now runs against the decision. Plan item 0 has to movetests/refineryinto the root module, with its three requirements, and the recommendation has to come out of the document when the decision is recorded.pr-sweep.sh(S 353, unattended, with state) fails, and so do the four formulas' bash blocks. Each needs a line in the ledger when item 0 creates it, until plan item 8 moves the script to Go.forgejoit is ambiguous. Change it in a later change, together with the test that checks the text.Closed without merging, on the user's decision of 2026-11-12 12:07 CET. Asked where the two Refinery packs should live once gascitypacks is split into gascity-staff-pack and gascity-forgejo-pack, the user chose: Landing is the integration. Nothing is copied; rexcity keeps packs/forgejo until the forgejo pack's orders and Reviewer have taken over its work, and it is deleted then, together with packs/github. The review of this pull request found the move faithful (one README line apart); the work is not lost, the branch stays. From the Operator.
city-root referenced this pull request2026-11-12 13:26:15 +00:00