Path: csiph.com!weretis.net!feeder8.news.weretis.net!srl.newsdeef.eu!news.corradoroberto.it!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Jai kadam Newsgroups: linux.debian.maint.python Subject: Re: Guidence regarding package testing and patching Date: Fri, 05 Dec 2025 19:10:01 +0100 Message-ID: References: X-Original-To: Soren Stoutner , debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Dec 5 18:08:15 2025 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.099 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 X-Forwarded-Encrypted: i=1; AJvYcCWsLHnTNeT3PIbPaxvxnk1HAWka1B66og+4Mqh87SImPSTilbp/7rNtxhfMn9j2XxsecKJ0dnpZQFDf1EHT@lists.debian.org X-Gm-Message-State: AOJu0Yxr/ywX4J1acR9P4pDg1JKZqyKTk/JuvixxEQUc/+snOY0O+Ut4 OSKhhD0C3dmYqcIntr7rEcp9V/SAc12KXcPDDVZ/zuNiIj4F5JhdyhhZVTkichsBYQ7Ix21XM6h m/kNXHfsE1rIYHElbRV2I06H2+7Ct27s= X-Gm-Gg: ASbGncuwveu8w6lBDOapF1VpcLiYZQLlNbU4G0phgQEdR624rGBCVn6Zsl3vOsj+qgy hAppt/TTuArZK0f0cPYV4UKcj0lTb7Y1+JBXrHgI4Ks0w2Y8kUvbAJ8lK9QMuoQpRNrw54Q3KdC TiGLTd9PaXZyJXyOL3Rf6j9lrZ67sklgGqJrEoHasTcZ1UnLmzMpjaPiJqaIejUcBPkWie2+Y5z 0raJSx8u6d2tRs2JmBW2KfnaVYvzoF0kyR/snwufcBysj90tdd1E/2cs/MC3Ey5MvAVW8GOG6pe CrI5onG/AqnwvvbMHDEtBw4= X-Google-SMTP-Source: AGHT+IHDw8M4yV/JU9hJNrEclP70HRwFA95TaAzmLuuZk+2/1DS5+Z031/twArp8MvpzFhkCTgXQRoSJFJxVwEauqMg= X-Received: by 2002:a05:7022:688:b0:11b:2138:476a with SMTP id a92af1059eb24-11df0c3b09dmr8297712c88.27.1764958076668; Fri, 05 Dec 2025 10:07:56 -0800 (PST) MIME-Version: 1.0 X-Gm-Features: AWmQ_blG01zJJTKz_JVugyUKK2KAMEAZFHHzgzqdPQCPKUj5Emh4ek06HC1W91I Content-Type: multipart/alternative; boundary="000000000000340e910645385300" X-Mailing-List: archive/latest/23475 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAJcuXACgzfxCkgH1Y6EVaTi7KFcpKNc+fxB+0txjDUJZygboOg@mail.gmail.com Approved: robomod@news.nic.it Lines: 210 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 5 Dec 2025 23:37:44 +0530 X-Original-Message-ID: X-Original-References: <914e4295e638fb478a4d450df243fb876f72c22d.camel@gmail.com> <1835172.cot9YJUmRx@soren-desktop> Xref: csiph.com linux.debian.maint.python:17241 --000000000000340e910645385300 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 5 Dec, 2025, 10:59=E2=80=AFpm Soren Stoutner, wr= ote: > On Thursday, December 4, 2025 12:45:30=E2=80=AFPM Mountain Standard Time = Andrey > Rakhmatullin wrote: > > On Fri, Dec 05, 2025 at 01:12:14AM +0530, Jai kadam wrote: > > >> >> You can also consult its manpage to learn what does it do. > > >> > > > >> >I see, I read the man page just now after your suggestion it's not > > >> > > >> detailed. > > >> > > >> It's very detailed > > > > > >By manual you mean "man gbp" or something else? > > > > I mean gbp-push(1), you could learn that it exists from "SEE ALSO" of > > gbp(1). > > To add a bit more information about the behavior of "gbp push=E2=80=9D an= d =E2=80=9Cgit > push=E2=80=9D > and when to use them and mix their uses: > > 1. The key to understanding this is that =E2=80=9Cgbp push=E2=80=9D will= push the > following > things: > > a. The pristine-tar branch (if in use). > b. The upstream branch. > c. Any new tags on the upstream branch. > d. The debian branch, but only if the changelog does not target > UNRELEASED. > e. Check for a new tag in the debian branch for the latest changelog > entry > and push it, but only if the changelog does not target UNRELEASED. > > 2. What we want to avoid is pushing a debian/X.Y-Z tag on the debian > branch > before X.Y-Z has actually been accepted into Debian. > > 3. The following workflow accomplishes this: > > a. gbp import-orig --uscan (this updates pristine-tar if used, the > upstream > branch, the debian branch, and creates a new upstream tag). > b. dch (adjust the changelog version number accordingly, but leave the > target as UNRELEASED). > c. gbp buildpackage (make sure the package builds). > d. . > e. gbp push (this pushes pristine-tar if in use, the upstream branch, an= d > the > new upstream branch tag, but not the debian branch because the changelog > targets UNRELEASED). > f. git push (this pushes the debian branch). > Noted! :) > > 4. When ready to release: > > a. dch -r (this changes the target from UNRELEASED to unstable, edit to > experimental if desired). > This is same as dch --release rigth ? Si it also adds the commit messages b. gbp buildpackage (build the package with the final changelog). > c. Upload the package. > d. gbp tag (this creates the debian/X.Y-Z tag, typically one only does > this > after the package has been accepted into Debian). > e. gbp push (this pushes the debian/X.Y-Z tag). > That is use gbp push only once at the very end , right? > > Note that it is possible to do all of this using a plethora of git > commands. > gbp simply makes it easier. > > On a side note, "gbp clone=E2=80=9D is just like =E2=80=9Cgit clone=E2=80= =9D except that it > automatically clones the pristine-tar branch (if used), the upstream > branch, > and the debian branch, whereas =E2=80=9Cgit clone=E2=80=9D just clones th= e default branch > and > requires extra commands to populate the other ones. > > -- > Soren Stoutner > soren@debian.org Thank you! --000000000000340e910645385300 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, 5 Dec, 2025, 10:59=E2=80= =AFpm Soren Stoutner, <soren@debian.= org> wrote:
On Thursday, Dec= ember 4, 2025 12:45:30=E2=80=AFPM Mountain Standard Time Andrey
Rakhmatullin wrote:
> On Fri, Dec 05, 2025 at 01:12:14AM +0530, Jai kadam wrote:
> >> >> You can also consult its manpage to learn what does = it do.
> >> >
> >> >I see, I read the man page just now after your suggestion= it's not
> >>
> >> detailed.
> >>
> >> It's very detailed
> >
> >By manual you mean "man gbp" or something else?
>
> I mean gbp-push(1), you could learn that it exists from "SEE ALSO= " of
> gbp(1).

To add a bit more information about the behavior of "gbp push=E2=80=9D= and =E2=80=9Cgit push=E2=80=9D
and when to use them and mix their uses:

1.=C2=A0 The key to understanding this is that =E2=80=9Cgbp push=E2=80=9D w= ill push the following
things:

a.=C2=A0 The pristine-tar branch (if in use).
b.=C2=A0 The upstream branch.
c.=C2=A0 Any new tags on the upstream branch.
d.=C2=A0 The debian branch, but only if the changelog does not target UNREL= EASED.
e.=C2=A0 Check for a new tag in the debian branch for the latest changelog = entry
and push it, but only if the changelog does not target UNRELEASED.

2.=C2=A0 What we want to avoid is pushing a debian/X.Y-Z tag on the debian = branch
before X.Y-Z has actually been accepted into Debian.

3.=C2=A0 The following workflow accomplishes this:

a.=C2=A0 gbp import-orig --uscan (this updates pristine-tar if used, the up= stream
branch, the debian branch, and creates a new upstream tag).
b.=C2=A0 dch=C2=A0 (adjust the changelog version number accordingly, but le= ave the
target as UNRELEASED).
c.=C2=A0 gbp buildpackage (make sure the package builds).
d.=C2=A0 <Fix any problems>.
e.=C2=A0 gbp push (this pushes pristine-tar if in use, the upstream branch,= and the
new upstream branch tag, but not the debian branch because the changelog targets UNRELEASED).
f.=C2=A0 git push (this pushes the debian branch).
Noted! :)

4.=C2=A0 When ready to release:

a.=C2=A0 dch -r (this changes the target from UNRELEASED to unstable, edit = to
experimental if desired).
Thi= s is same as dch --release rigth ? Si it also adds the commit messages

b.=C2=A0 gbp buildpackage (build the package with the final changelog).
c.=C2=A0 Upload the package.
d.=C2=A0 gbp tag (this creates the debian/X.Y-Z tag, typically one only doe= s this
after the package has been accepted into Debian).
e.=C2=A0 gbp push (this pushes the debian/X.Y-Z tag).
That is use gbp push only once at the very end , r= ight?

Note that it is possible to do all of this using a plethora of git commands= .=C2=A0
gbp simply makes it easier.

On a side note, "gbp clone=E2=80=9D is just like =E2=80=9Cgit clone=E2= =80=9D except that it
automatically clones the pristine-tar branch (if used), the upstream branch= ,
and the debian branch, whereas =E2=80=9Cgit clone=E2=80=9D just clones the = default branch and
requires extra commands to populate the other ones.

--
Soren Stoutner
so= ren@debian.org
Thank you!
--000000000000340e910645385300--