Repository navigation
switch OBS operations from osc to geectl - #135
Merged
Merged
Conversation
scarabeusiv
force-pushed
the
skill/geectl-switchover
branch
6 times, most recently
from
November 23, 2026 22:40
217a956 to
2ef7402
Compare
This was referenced Nov 25, 2026
scarabeusiv
force-pushed
the
skill/geectl-switchover
branch
from
November 26, 2026 01:59
2ef7402 to
28a9ea3
Compare
scarabeusiv
marked this pull request as ready for review
November 27, 2026 11:49
scarabeusiv
force-pushed
the
skill/geectl-switchover
branch
from
November 27, 2026 13:07
3c921e3 to
a6505a6
Compare
Collaborator
|
will merge it once https://build.opensuse.org/request/show/1400954 is published in snapshot |
scarabeusiv
force-pushed
the
skill/geectl-switchover
branch
from
November 27, 2026 17:44
dcbe146 to
45adb68
Compare
This was referenced Nov 28, 2026
This was referenced Dec 1, 2026
scarabeusiv
force-pushed
the
skill/geectl-switchover
branch
from
December 1, 2026 14:49
9940197 to
c584ab6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ready for review. geectl 0.2.3 is released, so the merged-basis pin in this PR is now real. Do not merge until the osc removal is complete — the merge bar is osc fully removed, with every replacement done.
Closes #147
Closes #148
Closes #149
Closes #150
Closes #151
Closes #152
Closes #154
Closes #156
Closes #157
Closes #158
Closes #162
Closes #163
Closes #164
Closes #167
Closes #168
Closes #169
Closes #170
Closes #171
Addresses #153
Addresses #155
Addresses #159
Addresses #160
Addresses #165
Addresses #166
Status
Rebased onto upstream main
a6b1841(2026-11-26); this PR's branchskill/geectl-switchoveris at28a9ea3and is mergeable. The full stack is pushed to the fork (see Stack below); this PR is the base.Verified on the surface head:
check-geectl.pypasses against geectl 0.2.1 (735 citations, rc 0);tests/test-check-geectl.shpasses 32/32; the guard suite is 0 FAILs / 1965 PASS; SKILL.md body 38,866 B (limit 40,000). Against real geectl main3fb0858(0.2.2, merged — see below) the checker reports the same 38 findings, all stale target-state manifest rows, zero citation findings: every cited leaf and flag exists there.tests/test-check-geectl.shagainst the same binary passes 1/33 (onlygeectl-missing); the other 32 cases fail on the same 38 stale rows — byte-identical to the run against the scratch tree, so the suite goes green only with the manifest clear-out that waits on the 0.2.2 release.The surface is no longer provisional: the 13 geectl PRs (#374, #389–#395, #397–#399, #402, #403) merged 23:19–00:21 GMT 25–26 Nov 2026, plus four more the same night — #411 (service-run
--modevalidated at parse time), #413 (gitea raw-file,gitea commit-statuses,repo-getpermissions), #415 (--projectonlocal-build service-run/precommit), #412 (:Updatefallback named on permission-denied). Re-verified 2026-11-26 against a fresh clone of real main3fb0858(binary 0.2.2): the recursive--helpdiff vs the scratch integration tree (head951b231, now discarded) shows only those four PRs' surface, none of it cited by the skill, so no citation changes; the #390/#391/#395/#397/#402 conflict resolutions and both integration fixups landed identically on real main — samePerson.email: Optionshape (Ondřej's rebase fixupf4d5157carries the same two test adaptations), same accept-cleanup clause in the #402 dry-run expectation. The 0.2.2 release carrying them is not published yet.Stack (2026-11-26)
All branches pushed to
scarabeusiv/openSUSE-packaging-skill, stacked on this PR's branch:skill/geectl-switchover(28a9ea3) — this PR: geectl-usage reference + citation check, SKILL.md, agents/, references/ reshapes, geectl pin, devel-SR-forward doc, crates.io switch, plus CI Script suites fails at head 2ef7402: test-check-geectl.sh missing from pr-guard asks_ok #171 (test-check-geectl.sh eval-dynamic ask).skill/geectl-switch-scripts(2df1528) — scripts layer:_incoming.py/preflight.shto typed leaves,target-gate.shto geectl (pool-gate protected — see below),build-summary.shgeectl cache layout,obs_uservia geectl,update-build.mdbuildinfo as JSON,check-geectl.pypositional-arity check.skill/geectl-switch-stubs(8e3217d) — test stubs: the suites run from a fakegeectlinstead of a fakeosc.skill/geectl-switch-contrib(d0cfe8f) — contrib layer: Dockerfile pinned 0.2.1 release tarball (verified againstSHA256SUMS), container docsgeectl-names,skill-containerdefault-instance geectl login, evals/SECURITY/README residue, test-harness codex probe fix.skill/geectl-switch-guard(456db85) — guard layer: pr-guard deny lists rewritten for geectl shapes, typed batch reads, harness geectl deny rules + probes, doc-lint geectl rules. Guard suite: 28 failures at the old baseline → 7 after the layers → 0 after fixups (1965 PASS).skill/geectl-switch-surface(9774d2f) — surface: the forward end-state (accept forwards by default), install/auth/wipe forms current, the pull-request review leaves +request change-review-state+gitea maintainers, the four newly merged leaves (branch create,pull-request build-comment,gitea cleanup-forks,config import-oscrc), the install paragraph naming them merged, and the prose-flags fix that makescheck-geectl.pyclean.New geectl gap filed from this work: geckonia/geectl#416 —
pull-request showis metadata only, no diff leaf;pull-request approvehas no--commitpin (workflow is show-then-approve viasource.commit).What remains (not in this stack): the osc deletion (entry 23) is blocked on geckonia/geectl#404 — the git-obs api call sites in
sr-status.py,incoming-review.sh,preflight.sh,target-gate.sh,leap-sync.sh,pool-pr.sh,autoforward-gate.shhave no typed geectl leaf yet; the manifest clear-out waits on the 0.2.2 release;gate.sh's stamp waits on working-copy leaves; dropping osc from the Dockerfile is blocked on the git-obs citations; the skill-container aliased emission waits onconfig import-oscrc; needs-Tom: geckonia/geectl#405, geckonia/geectl#406, geckonia/geectl#407.Mac-only test failures (recorded, not chased here):
test-target-gate.sh(bash 3.2:declare -A, BSDpaste, GNUrealpath -m— remote path green),test-skill-container.sh(bash 3.2exec {diefd}),test-doc-lint.sh(2 BSD-paste self-tests),test-build-summary.sh(bash 3.2mapfile),test-preflight.sh(2 failures).SKILL.md
Reshaped around what geectl allows, not a transliteration of osc: procedures start from a dry run and take
--liveonly for mutations; reads use the typed leaves, never a genericapi; submit requests go through the unifiedpull-requestsurface; the working copy replaces osc checkout/update/commit semantics;.changesentries usechangelog validate/changelog generate(with--write --author AUTHOR); local builds uselocal-build; credentials are per-instance named instances, not oscrc. SKILL.md body 38,866 B (limit 40,000), frontmatter 495 B (limit 500).Prerequisites in the same commit: the reference gains the
pull-request merge/decline/withdrawact lines and the--authordefinition onchangelog generate; the target-state manifest gains thechangelog generate --authorflag. No new geectl gap issue from this reshape: Gitea PR filing waits for the working-copy layer (geckonia/geectl#112, step 6), and the author identity is the open question on geckonia/geectl#153.agents/
Reshaped around what geectl allows: the five agents/ files (triage, incoming-review, submit-watch, update-build, changes-review) follow the same model as SKILL.md — dry-run by default with
--liveonly for mutations, typed reads, the unifiedpull-requestsurface, the git-based working copy,changelog generatefor.changesauthorship,local-buildas the one building vertical. Frontmatter names are nowgeectl-triage,geectl-update-build,geectl-submit-watch;osc-usage.mdread pointers are nowgeectl-usage.md. Verified:check-geectl.pypasses against geectlb22368d(184 citations);test-check-geectl.shpasses 26/26.The citation checker gains a tightening in the same commit: a prose flag passes as a bundled script's option only when its owning script is named on the same line, so a geectl typo that merely collides with a script flag (
--reposfor--repo) still fails. Two new mutation cases pin it.New geectl gaps this reshape exposes:
request filerefuses a Factory target and no forward operation exists. The agents/ text files to the devel project and describes the forward without a form until this lands.build buildinfodrops the project each dep resolves from and--trust-all-projectsis accepted but never read, so the trust prompt is written against the build's own pre-start refusal instead of an enumeration.Known follow-ups (not blockers for this layer): the checker does not verify required-flag completeness (a cited call missing a required flag still passes — every current citation was hand-audited);
request refilecitations stay abbreviated with…, the full form living inreferences/geectl-usage.md.references/
Reshaped around what geectl allows: 29 reference files (plus 3 agents/ pointer lines for a renamed section) — dry-run by default with
--liveonly for mutations, typed reads, the unifiedpull-requestsurface, the git-based working copy,changelog validate/changelog generatefor.changesentries,local-buildas the one building vertical. Section titles that named osc forms now name the geectl form (git-workflow.md"Submitting changes — PR, notgeectl request file",update-build.md"Local builds (geectl local-build build)"). The build-root model is geectl's, not osc's: roots live under~/.cache/geectl/build-roots/<project>/<package>/<repo>-<arch>[-<flavor>]/, namespaced per project and per package, with a per-root flock.osc-usage.mdandscript-usage.mdare untouched (deleted last; scripts' file). Verified:check-geectl.pypasses against geectlb22368d(646 citations on the stacked tree);test-check-geectl.shpasses 26/26.New geectl gaps this reshape exposes:
build build-loghas no multibuild/flavor selector, no--strip-time, no pasted-URL form._maintainership.json).remote ownersrequires the project).request change-statecovers the request, not its reviews).remote count-scmsync-projectscounts only).Not gaps (verified live against the binary while reshaping): querying a staging project's combined state (
remote staging-project/list-staging-projects, requests and status included by default); by-package maintainership search (remote search-packages-by-person, geckonia/geectl#175 — the binary has only the projects-only leaf); a top-level working-copylog(covered byremote package-log/request log).Known follow-up: SKILL.md:48 still promises each item ends at its Factory SR while references/ reports the devel SR as ready to forward (no executable forward form until geckonia/geectl#195 lands) — reconciled by the next commit in this stack.
Subcommand mapping
sr/submitrequestrequest file(cleanup default;--changes-entryand--descriptionrequired; filing supersedes every open request for the package)request supersedeaccept a declined old idbuildlocal-build buildservicelocal-build service-run(run,manualrun,precommit,localrun,disabledrun; noremoterun, norunall)resultsbuild results/build wait-for-resultswhoisremote whois LOGINrq/requestrequest show/log/search/diff/list-comments/accept/decline/revoke/change-state/add-review/add-comment--reviewer: geckonia/geectl#165rbl/buildlog/blt/buildlogtailbuild build-log--strip-time, no pasted-URL form)ci/commitcommitco/checkoutcheckoutcatremote cat/remote downloadvcchangelog validate/changelog generatemetaremote project-meta/package-meta;set-project-meta/set-package-meta;remote create-packagemaintainer(read)remote maintainersmaintainer -amaintainer -Udiffdiff;remote diff-packages/project-diff/request diffdevelprojectremote devel-project PKGls/listremote list-packages/list-filesreposbuild list-repositoriesrdeleteremote delete-package/delete-projectchrootstatus/ststatuscommentrequest list-comments/add-commentmr/maintenancerequestrequest file-maintenance-incident/refile-maintenance-incidenttokenrm/add/addremoverm/add/addremovebranchbranch branch-packagebuildinfobuild buildinfogetbinariesbuild list-binaries+build download-binaryupupdatecopypacbranch copy-packagembranchmaintenance maintenance-branchforkgitea repo-forklogremote package-log/request logwipesearch/seremote search-packages/search-projectsrdiffremote diff-packages/project-diff/request diffmkpacremote create-packagemaintained/smmaintenance maintained-instanceswhatdependsonbuild whatdependsonupdatepacmetafromspecremote update-package-meta-from-specdeletereqrequest file-deletepullpulllblrepairwclinkpacbranch link-packagerepairlinkbranch repair-linkcreq/changedevelrequestrequest file-change-develbuildconfigbugownerreviewrequest search --reviewerapiconfig/submitreq/submitpac/createrequestosc apipath mapping/source/{p}/{k}?expand=1remote list-files/source/{p}/{k}?rev=&expand=1remote list-files(no--rev)/source/{p}/{k}/_metaremote package-meta/source/{p}/_metaremote project-meta/source/{p}/{k}/_scmsync.obsinforemote cat {p} {k} _scmsync.obsinfo/source/{p}/{k}/_history?limit=1remote package-log(no--limit)/source/{p}/{k}/{name}?rev=remote cat --rev/source/{p}/{k}?deleted=1/source/{p}/{k}/_linkremote link-target/search/request?match=...request search--since/--limit: geckonia/geectl#156 (open PR)/search/package?match=person[...]/search/package/id?match=devel/@project=/search/owner?package=/search/project/id?match=starts-with(scmsync,…)/comments/request/{id}request list-comments/request?view=collection&roles=creatorrequest search --creator/request?view=collection&roles=maintainer,reviewer/request/{id}request showapi changereviewstate/build/{p}/{r}/{a}/_jobhistory?package=&limit=1build job-history/build/{p}/_result?repository=&arch=build results/build/{p}/{r}/{a}/_builddepinfobuild whatdependsonapi -X POST ...?cmd=runserviceInstall story
cargo install geectl(version 0.2.3 or later) is the install path. GitHub release tarballs are the other form:geectl-<version>-x86_64-unknown-linux-gnu.tar.gzandgeectl-<version>-aarch64-unknown-linux-gnu.tar.gz, each with.sha256, a detached.asc, and a combinedSHA256SUMS, fromvX.Y.Ztags. Linux only — no macOS or Windows asset (open question: the skill's platforms include macOS). 0.2.3 is published (2026-11-27); CI installs it. The post-merge leaves (branch create,pull-request build-comment,gitea cleanup-forks,config import-oscrc, the forward-m/--forward-message) are in 0.2.3.Pool-gate protected files
This stack changes pool-gate files, and this PR is the approval request for those changes:
skills/opensuse-packaging/scripts/target-gate.sh— converted to geectl (scripts layer,2df1528): project/package meta, package-log srcmd5,remote cat, build results/job-history/buildconfig/buildinfo as JSON,remote delete-package,local-build buildproof build, geectl cache roots.--jobsis refused (no geectl equivalent — geectl gap, recorded in the commit). Thegapi()git-obs pulls loop stays (blocked on Gitea typed reads for the skill's scripts: raw file, commit statuses, repo-get permissions geckonia/geectl#404).skills/opensuse-packaging/scripts/pr-guard.pyand_pr_guard.py— the guard deny-list rewrite (guard layer,456db85): typed geectl batch reads,obs_userviageectl config show, retired-osc rules, harness/doc-lint geectl rules. Guard suite green (0 FAILs / 1965 PASS).skills/opensuse-packaging/scripts/pool-pr.shandleap-sync.sh— not converted (their git-obs api reads are the Gitea typed reads for the skill's scripts: raw file, commit statuses, repo-get permissions geckonia/geectl#404 paths); only thetarget-gate.shsection ofscripts/README.mdchanged for the conversion.