Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gitea-cli for openSUSE:Factory 
checked in at 2026-12-02 17:06:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gitea-cli (Old)
 and      /work/SRC/openSUSE:Factory/.gitea-cli.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gitea-cli"

Wed Dec  2 17:06:48 2026 rev:5 rq:1402381 version:2.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/gitea-cli/gitea-cli.changes      2026-11-27 
19:47:21.254791061 +0100
+++ /work/SRC/openSUSE:Factory/.gitea-cli.new.1340718/gitea-cli.changes 
2026-12-02 17:09:18.629593153 +0100
@@ -1,0 +2,95 @@
+Wed Dec  2 11:00:07 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add fix-release-command-tree-after-run.patch: release the
+  command tree after Execute so that cobra's global flag
+  completion map does not retain it (fixes the OOM kill of the
+  internal/app test binary in %check on s390x).
+
+-------------------------------------------------------------------
+Tue Dec  1 23:22:46 UTC 2026 - Matej Cepl <[email protected]>
+
+- update to 2.1.0:
+  gt 2.1.0 adds `gt skill` to install agent skills from
+  repositories, a persistent setting to turn off update
+  notifications and webhook names, and fixes many edge cases
+  found while testing against Gitea 28.
+  - Features
+    - `gt skill` (preview) installs agent skills (directories
+      with a `SKILL.md`) from a repository on any Gitea instance,
+      or a public repository on github.com, into the skills
+      directory of a coding agent such as GitHub Copilot,
+      Claude Code, Cursor or Codex. Like `gh skill`, it offers
+      `install`, `list`, `preview` and `update`, picks the agent
+      with `--agent` and the location with `--scope project|user`
+      or `--dir`. Installed skills record where they came from,
+      and `gt skill update` refuses a repository whose ID
+      changed, so a re-registered name is not trusted. As with
+      `gh skill`, the command is a preview and not covered by the
+      compatibility promise #59.
+    - `gt config set update_notifier disabled` turns the release
+      check off for good, without `GITEA_CLI_NO_UPDATE_NOTIFIER`
+      in the shell profile. The environment variable keeps
+      working and shows as the source in `gt config get
+      update_notifier --show-source` #134.
+    - `gt webhook create` and `gt webhook edit` take `--name`;
+      `--name=` clears it #136.
+  - Fixes
+    - `gt auth login` waits for the browser to receive the OAuth
+      callback response before shutting down the callback server,
+      which fixes intermittent EOF errors in the browser #130.
+    - `--dry-run` shows boolean fields such as
+      `must_change_password` instead of `[REDACTED]`, and a
+      secret shorter than 8 characters is no longer redacted
+      inside words such as \"password\" or in URLs #137.
+    - `gt commit list` lists no commits for an empty repository
+      instead of a raw HTTP 409, and for a `--path` that no
+      commit changed instead of blaming the ref; it names a
+      missing ref. `gt commit compare` refuses extra `...`
+      segments before any request #137.
+    - `gt pr create` no longer pushes a head branch that is
+      behind its remote copy, and refuses your own login as
+      reviewer and an empty `--title` before creating the pull
+      request #137.
+    - `gt pr edit` refuses the head branch as the new base,
+      `gt pr merge` refuses `--subject` and `--body` for
+      rebase and fast-forward-only merges, `gt pr review
+      resolve`/`unresolve` check that the comment belongs to
+      the pull request, `gt pr checkout` reuses the branch of
+      an earlier checkout once the head branch is deleted, and
+      `gt pr list` fails on an unknown `--assignee` instead of
+      listing nothing #137.
+    - `gt browse` refuses issue number 0, `gt repo create`
+      refuses `/NAME` without an owner, `branch delete` and `tag
+      delete` refuse a name given twice, `tag create` says when
+      the repository is empty, and `branch protect --dry-run`
+      shows the update the real run sends for an existing rule
+      #137.
+    - `gt release edit` refuses a new target for a published
+      release whose tag exists, which Gitea would not move, and
+      `gt run download` refuses artifact entries that differ only
+      in case before extracting #137.
+    - `gt admin org create` applies
+      `--repo-admins-can-change-team-access`, which the admin
+      endpoint ignores #137.
+    - `gt doctor` warns instead of failing for a `GITEA_TOKEN`
+      without `read:user` #137.
+    - `gt api` keeps an error response in `--output-file`,
+      and exits 1 for an unreadable `-F @file` as it does for
+      `--input` #137.
+    - `gt repo list` no longer shows a repository on two pages
+      when the server hides counted items, and an empty page past
+      the first is named instead of reported as an empty list
+      #137.
+    - Smaller fixes to usage errors and help text: `issue move`
+      names the missing argument, the help of `label create
+      --archived` and `label edit --archived` says what it
+      does, `notification mark-read --all --dry-run` no longer
+      reports no matches, `config` asks for `HOST/OWNER` when an
+      extension owner is only an instance URL, `schema` tells a
+      command whose JSON fields vary from one without JSON, and
+      `search` checks its flags before looking up the account
+      #137.
+- Remove upstreamed patch:
+  - oauth-callback-graceful-shutdown.patch
+
+-------------------------------------------------------------------

Old:
----
  gitea-cli-2.0.0.tar.gz
  oauth-callback-graceful-shutdown.patch

New:
----
  fix-release-command-tree-after-run.patch
  gitea-cli-2.1.0.tar.gz

----------(Old B)----------
  Old:- Remove upstreamed patch:
  - oauth-callback-graceful-shutdown.patch
----------(Old E)----------

----------(New B)----------
  New:
- Add fix-release-command-tree-after-run.patch: release the
  command tree after Execute so that cobra's global flag
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gitea-cli.spec ++++++
--- /var/tmp/diff_new_pack.s7zaCr/_old  2026-12-02 17:09:19.443627600 +0100
+++ /var/tmp/diff_new_pack.s7zaCr/_new  2026-12-02 17:09:19.444627643 +0100
@@ -16,16 +16,17 @@
 #
 
 Name:           gitea-cli
-Version:        2.0.0
+Version:        2.1.0
 Release:        0
 Summary:        Command-line client for Gitea
 License:        MIT
 URL:            https://gitea.com/gitea/cli
 Source0:        
https://gitea.com/gitea/cli/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source1:        vendor.tar.zst
-# PATCH-FIX-UPSTREAM oauth-callback-graceful-shutdown.patch [email protected]
-# Let the OAuth callback response finish before closing its server
-Patch0:         oauth-callback-graceful-shutdown.patch
+# PATCH-FIX-UPSTREAM fix-release-command-tree-after-run.patch [email protected]
+# Release the command tree after Execute so that cobra's global
+# completion map cannot retain it (OOM in %%check on s390x)
+Patch0:         fix-release-command-tree-after-run.patch
 BuildRequires:  git-core
 BuildRequires:  golang(API) >= 1.27
 BuildRequires:  golang-packaging

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.s7zaCr/_old  2026-12-02 17:09:19.473628870 +0100
+++ /var/tmp/diff_new_pack.s7zaCr/_new  2026-12-02 17:09:19.475628954 +0100
@@ -1,5 +1,5 @@
-mtime: 1795084164
-commit: fd6ad180fe71f79ba502424bb6f4467ad5d3fb0c3ce6c61c0d5d126050acf35a
+mtime: 1796209217
+commit: 2f34d930cda12a5b0c772d410126b220ad9a2138e7226e265c60ef685a7580cf
 url: https://src.opensuse.org/mcepl/gitea-cli.git
 revision: factory
 

++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-12-02 12:00:17.000000000 +0100
@@ -0,0 +1,6 @@
+*.obscpio
+*.osc
+_build.*
+_service:*
+.pbuild
+gitea-cli-*-build/

++++++ fix-release-command-tree-after-run.patch ++++++
From: MatÄ›j Cepl <[email protected]>
Date: Wed, 2 Dec 2026 11:59:44 +0100
Subject: [PATCH] fix: release the command tree after Execute

Upstream: https://gitea.com/gitea/cli/pulls/TBD

cobra keeps every registered flag completion function in a
package-global map keyed by *pflag.Flag and never removes the
entries. gt registers completion functions on each freshly built
command tree that close over the application, and the
application's command field points into that tree, so the whole
tree of every Execute call stays reachable for the life of the
process. This also covers unknown commands, because
rejectUnknownSubcommands gives group commands a RunE and their
PersistentPreRunE therefore runs.

The test suite calls Execute thousands of times and grows past
8 GB of RSS, so the OOM killer terminates app.test on build
hosts with 5 GB of RAM, such as the s390x workers of the openSUSE
Build Service. The command is only read by checkGiteaVersion
during the run, so clear it once ExecuteContextC returns. Peak
RSS of the internal/app tests drops from about 8 GB to 1.2 GB.

Assisted-by: pi:claude-opus-5-5

--- a/internal/app/app.go
+++ b/internal/app/app.go
@@ -574,6 +574,9 @@
        root.SetArgs(args)
        notifyUpdate := a.checkForUpdate(ctx, args, 
snapshot.Preferences.UpdateNotifier == "disabled", deps.Client)
        cmd, err := root.ExecuteContextC(ctx)
+       a.mu.Lock()
+       a.command = nil // cobra's global flag completion map keeps a alive, 
which must not keep the command tree alive
+       a.mu.Unlock()
        if a.dryRunHeld != nil {
                a.deps.Streams.Out = deps.Streams.Out
                if requests := a.dryRunRequests.Requests(); len(requests) > 0 
|| (err == nil && a.options.dryRunJSON) {
--- a/internal/app/app_test.go
+++ b/internal/app/app_test.go
@@ -10,6 +10,7 @@
        "net/http/httptest"
        "os"
        "path/filepath"
+       "runtime"
        "slices"
        "strings"
        "testing"
@@ -76,6 +77,21 @@
        require.Equal(t, version.Format()+"\n", out.String())
 }
 
+func TestExecuteReleasesCommandTree(t *testing.T) {
+       deps, _, _ := testDeps(t)
+       var stats runtime.MemStats
+       runtime.GC()
+       runtime.ReadMemStats(&stats)
+       before := int64(stats.HeapInuse)
+       for range 100 {
+               _ = Execute(context.Background(), deps, []string{"issue", 
"list"})
+       }
+       runtime.GC()
+       runtime.ReadMemStats(&stats)
+       // Each retained tree costs over 1 MB; without retention 100 runs stay 
near 10 MB.
+       require.Less(t, int64(stats.HeapInuse)-before, int64(64<<20))
+}
+
 func TestAliasesAfterGlobalFlagsAndNestedHelp(t *testing.T) {
        deps, out, _ := testDeps(t)
        require.NoError(t, Execute(context.Background(), deps, 
[]string{"alias", "set", "prefs", "config list"}))

++++++ gitea-cli-2.0.0.tar.gz -> gitea-cli-2.1.0.tar.gz ++++++
++++ 5380 lines of diff (skipped)

++++++ vendor.tar.zst ++++++
++++ 20401 lines of diff (skipped)

Reply via email to