Skip to content

switch OBS operations from osc to geectl - #135

Merged
plusky merged 21 commits into
openSUSE:mainfrom
scarabeusiv:skill/geectl-switchover
Dec 1, 2026
Merged

plusky merged 21 commits into
openSUSE:mainfrom
scarabeusiv:skill/geectl-switchover

Conversation

@scarabeusiv

@scarabeusiv scarabeusiv commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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 branch skill/geectl-switchover is at 28a9ea3 and 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.py passes against geectl 0.2.1 (735 citations, rc 0); tests/test-check-geectl.sh passes 32/32; the guard suite is 0 FAILs / 1965 PASS; SKILL.md body 38,866 B (limit 40,000). Against real geectl main 3fb0858 (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.sh against the same binary passes 1/33 (only geectl-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 --mode validated at parse time), #413 (gitea raw-file, gitea commit-statuses, repo-get permissions), #415 (--project on local-build service-run/precommit), #412 (:Update fallback named on permission-denied). Re-verified 2026-11-26 against a fresh clone of real main 3fb0858 (binary 0.2.2): the recursive --help diff vs the scratch integration tree (head 951b231, 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 — same Person.email: Option shape (Ondřej's rebase fixup f4d5157 carries 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.sh to typed leaves, target-gate.sh to geectl (pool-gate protected — see below), build-summary.sh geectl cache layout, obs_user via geectl, update-build.md buildinfo as JSON, check-geectl.py positional-arity check.
  • skill/geectl-switch-stubs (8e3217d) — test stubs: the suites run from a fake geectl instead of a fake osc.
  • skill/geectl-switch-contrib (d0cfe8f) — contrib layer: Dockerfile pinned 0.2.1 release tarball (verified against SHA256SUMS), container docs geectl- names, skill-container default-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 makes check-geectl.py clean.

New geectl gap filed from this work: geckonia/geectl#416 — pull-request show is metadata only, no diff leaf; pull-request approve has no --commit pin (workflow is show-then-approve via source.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.sh have 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 on config 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, BSD paste, GNU realpath -m — remote path green), test-skill-container.sh (bash 3.2 exec {diefd}), test-doc-lint.sh (2 BSD-paste self-tests), test-build-summary.sh (bash 3.2 mapfile), 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 --live only for mutations; reads use the typed leaves, never a generic api; submit requests go through the unified pull-request surface; the working copy replaces osc checkout/update/commit semantics; .changes entries use changelog validate / changelog generate (with --write --author AUTHOR); local builds use local-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 / withdraw act lines and the --author definition on changelog generate; the target-state manifest gains the changelog generate --author flag. 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 --live only for mutations, typed reads, the unified pull-request surface, the git-based working copy, changelog generate for .changes authorship, local-build as the one building vertical. Frontmatter names are now geectl-triage, geectl-update-build, geectl-submit-watch; osc-usage.md read pointers are now geectl-usage.md. Verified: check-geectl.py passes against geectl b22368d (184 citations); test-check-geectl.sh passes 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 (--repos for --repo) still fails. Two new mutation cases pin it.

New geectl gaps this reshape exposes:

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 refile citations stay abbreviated with …, the full form living in references/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 --live only for mutations, typed reads, the unified pull-request surface, the git-based working copy, changelog validate / changelog generate for .changes entries, local-build as the one building vertical. Section titles that named osc forms now name the geectl form (git-workflow.md "Submitting changes — PR, not geectl 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.md and script-usage.md are untouched (deleted last; scripts' file). Verified: check-geectl.py passes against geectl b22368d (646 citations on the stacked tree); test-check-geectl.sh passes 26/26.

New geectl gaps this reshape exposes:

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-copy log (covered by remote 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

osc geectl (target state) Status
sr / submitrequest request file (cleanup default; --changes-entry and --description required; filing supersedes every open request for the package) ok; open question: does request supersede accept a declined old id
build local-build build geckonia/geectl#173
service local-build service-run (run, manualrun, precommit, localrun, disabledrun; no remoterun, no runall) ok
results build results / build wait-for-results ok
whois remote whois LOGIN geckonia/geectl#171
rq / request request show / log / search / diff / list-comments / accept / decline / revoke / change-state / add-review / add-comment ok except --reviewer: geckonia/geectl#165
rbl / buildlog / blt / buildlogtail build build-log geckonia/geectl#206 (no multibuild/flavor selector, no --strip-time, no pasted-URL form)
ci / commit commit geckonia/geectl#17 (working copy)
co / checkout checkout geckonia/geectl#17
cat remote cat / remote download ok
vc changelog validate / changelog generate geckonia/geectl#153 and geckonia/geectl#164
meta remote project-meta / package-meta; set-project-meta / set-package-meta; remote create-package geckonia/geectl#180 (whole-file write)
maintainer (read) remote maintainers ok
maintainer -a none at the CLI; library operations exist geckonia/geectl#172
maintainer -U none geckonia/geectl#207
diff diff; remote diff-packages / project-diff / request diff geckonia/geectl#17 (local diff)
develproject remote devel-project PKG geckonia/geectl#174
ls / list remote list-packages / list-files ok
repos build list-repositories ok
rdelete remote delete-package / delete-project geckonia/geectl#168
chroot none geckonia/geectl#177
status / st status geckonia/geectl#17
comment request list-comments / add-comment ok
mr / maintenancerequest request file-maintenance-incident / refile-maintenance-incident ok
token none geckonia/geectl#179
rm / add / addremove rm / add / addremove geckonia/geectl#17
branch branch branch-package ok
buildinfo build buildinfo geckonia/geectl#173
getbinaries build list-binaries + build download-binary geckonia/geectl#183
up update geckonia/geectl#17
copypac branch copy-package ok
mbranch maintenance maintenance-branch ok
fork gitea repo-fork ok
log remote package-log / request log geckonia/geectl#167
wipe none geckonia/geectl#170
search / se remote search-packages / search-projects ok
rdiff remote diff-packages / project-diff / request diff ok
mkpac remote create-package ok
maintained / sm maintenance maintained-instances ok
whatdependson build whatdependson ok
updatepacmetafromspec remote update-package-meta-from-spec ok
deletereq request file-delete ok
pull pull geckonia/geectl#17
lbl none geckonia/geectl#178
repairwc none — dropped; a fresh checkout is faster no issue
linkpac branch link-package ok
repairlink branch repair-link ok
creq / changedevelrequest request file-change-devel ok
buildconfig none at the CLI; library exists geckonia/geectl#169
bugowner guidance only ok
review request search --reviewer geckonia/geectl#165
api per-path, see below issue per uncovered path
config / submitreq / submitpac / createrequest guard deny patterns, not invocations guard deny-list rewrite (pool-gate protected)

osc api path mapping

osc api path geectl equivalent Status
/source/{p}/{k}?expand=1 remote list-files ok
/source/{p}/{k}?rev=&expand=1 remote list-files (no --rev) geckonia/geectl#166
/source/{p}/{k}/_meta remote package-meta ok
/source/{p}/_meta remote project-meta ok
/source/{p}/{k}/_scmsync.obsinfo remote cat {p} {k} _scmsync.obsinfo ok
/source/{p}/{k}/_history?limit=1 remote package-log (no --limit) geckonia/geectl#167
/source/{p}/{k}/{name}?rev= remote cat --rev ok
/source/{p}/{k}?deleted=1 none geckonia/geectl#181
/source/{p}/{k}/_link remote link-target ok
/search/request?match=... request search ok except --since/--limit: geckonia/geectl#156 (open PR)
/search/package?match=person[...] none geckonia/geectl#175
/search/package/id?match=devel/@project= none geckonia/geectl#176
/search/owner?package= none geckonia/geectl#208
/search/project/id?match=starts-with(scmsync,…) none geckonia/geectl#210
/comments/request/{id} request list-comments ok
/request?view=collection&roles=creator request search --creator ok
/request?view=collection&roles=maintainer,reviewer none geckonia/geectl#165
/request/{id} request show ok
api changereviewstate none geckonia/geectl#209
/build/{p}/{r}/{a}/_jobhistory?package=&limit=1 build job-history ok
/build/{p}/_result?repository=&arch= build results ok
/build/{p}/{r}/{a}/_builddepinfo build whatdependson ok
api -X POST ...?cmd=runservice none geckonia/geectl#182

Install 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.gz and geectl-<version>-aarch64-unknown-linux-gnu.tar.gz, each with .sha256, a detached .asc, and a combined SHA256SUMS, from vX.Y.Z tags. 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 build proof build, geectl cache roots. --jobs is refused (no geectl equivalent — geectl gap, recorded in the commit). The gapi() 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.py and _pr_guard.py — the guard deny-list rewrite (guard layer, 456db85): typed geectl batch reads, obs_user via geectl config show, retired-osc rules, harness/doc-lint geectl rules. Guard suite green (0 FAILs / 1965 PASS).
  • skills/opensuse-packaging/scripts/pool-pr.sh and leap-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 the target-gate.sh section of scripts/README.md changed for the conversion.

@scarabeusiv
scarabeusiv force-pushed the skill/geectl-switchover branch 6 times, most recently from 217a956 to 2ef7402 Compare November 23, 2026 22:40
@scarabeusiv
scarabeusiv force-pushed the skill/geectl-switchover branch from 2ef7402 to 28a9ea3 Compare November 26, 2026 01:59
@scarabeusiv
scarabeusiv marked this pull request as ready for review November 27, 2026 11:49
@scarabeusiv
scarabeusiv requested a review from plusky November 27, 2026 11:50
@scarabeusiv scarabeusiv changed the title DO NOT MERGE: switch OBS operations from osc to geectl switch OBS operations from osc to geectl Nov 27, 2026
@scarabeusiv
scarabeusiv force-pushed the skill/geectl-switchover branch from 3c921e3 to a6505a6 Compare November 27, 2026 13:07
@plusky

plusky commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

will merge it once https://build.opensuse.org/request/show/1400954 is published in snapshot

@plusky
plusky merged commit ed1bbad into openSUSE:main Dec 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment