public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: Luis Machado <luis.machado@arm.com>
Cc: Simon Marchi <simark@simark.ca>,
	"gdb@sourceware.org" <gdb@sourceware.org>,
	John Baldwin <jhb@FreeBSD.org>
Subject: Re: Any concrete plans after the GDB BoF?
Date: Sun, 1 Jan 2023 23:02:50 +0100	[thread overview]
Message-ID: <20230101220250.GA11041@gnu.wildebeest.org> (raw)
In-Reply-To: <c48cb80e-9043-1d6d-608d-131c66fe5773@arm.com>

Hi,

On Mon, Oct 31, 2022 at 09:28:08AM +0000, Luis Machado wrote:
> On 10/28/22 17:16, Simon Marchi wrote:
> >On 2022-10-27 06 h 47, Luis Machado via Gdb wrote:
>
> >>Simon was kind enough to cleanup the patchworks instance, though
> >>that is not yet fully integrated into something we can easily use
> >>to do tests/CI. I see the number of unreviewed patches is growing
> >>again.
> >>
> >>For example, it is not easy to pick a patch to review. You need to
> >>locate the entry in your inbox so you can reply to it.

I use git-pw for that:
https://patchwork.readthedocs.io/projects/git-pw/

Once installed (pip install --user git-pw works if your distro doesn't
package it) you can configure inside your binutils-gdb git checkout:

git config pw.server 'https://patchwork.sourceware.org/api/1.2/'
git config pw.project 'gdb'

Then you can use
  git pw patch list
to get a list of patches and
  git pw patch download --mbox 62243
to fetch a particular patch as sent to the mailinglist.

This includes the original from, to, cc headers so you can just reply
to it (after importing the mbox into your mailer, I use mutt -f).
git-pw also makes it easy to git am the patch (series).

If you have a patchwork account for gdb you can also generate an API
token to update the state of patches.

> >I do not know of a way to trigger CI tests from Patchwork, that would
> >perhaps be a question for Mark (added in CC).

We can do it from two sides. As Frank suggested we can use the (try)
buildbots. It is easy to apply patchwork patches with git-pw and then
push them git push origin users/$USERID/try-TOPIC

If we make the buildbot a patchwork user then we can make builder
update the test flags in patchwork. Similarly we can make the buildbot
notice a patch being committed and update the state of the patch in
patchwork to committed. Both just need to use the patchwork hasher.py
to match to diff to the patch in patchwork.

It is also possible starting from the patchwork side using DJs CI
framework https://sourceware.org/glibc/wiki/CICDDesign When that gets
authentication of users/patches we could use that to trigger the
buildbots and make patchwork itself submit a try build.

> >>On formatting, have we considered the benefit of using
> >>clang-format for GDB, therefore potentially saving lots of time in
> >>reviews not having to worry about formatting?
> >
> >This often comes up, I am all for it.  We need someone to write up a
> >proposal of how this would work (a bit like Bruno did for the
> >attribution tags).  I might get to it, but I don't promise anything.
>
> I can do it. I know some of us tried it already. Tom Tromey seems to
> have done it as well.
>
> I think this is another step towards getting the contribution burden
> off of contributors. Formatting should not be something one needs to
> spend time with. One space x two spaces, 80 columns x 100 columns
> are certainly not as important as code that does what needs to be
> done and improves GDB overall.

I believe the python black formatter is pretty useful and now
integrated into the buildbot so that any commit that fails the format
checker is flagged. We can do the same for clang-format once there is
agreement on the specific settings.

Cheers,

Mark

  parent reply	other threads:[~2023-01-01 22:02 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-27 10:47 Luis Machado
2022-10-28 16:16 ` Simon Marchi
2022-10-28 16:51   ` John Baldwin
2022-10-28 16:54     ` Simon Marchi
2022-10-31  9:28   ` Luis Machado
2022-10-31 13:17     ` Simon Marchi
2022-10-31 13:37       ` Joel Brobecker
2022-10-31 14:15         ` Simon Marchi
2022-10-31 17:31           ` Joel Brobecker
2023-02-11 17:13           ` Andrew Burgess
2023-02-12 12:43             ` Mark Wielaard
2023-02-13 11:54               ` Andrew Burgess
2023-02-13 12:52                 ` Luis Machado
2023-02-13 14:24                   ` Tom Tromey
2023-02-13 14:42                     ` Luis Machado
2023-02-13 15:13                   ` Andrew Burgess
2023-02-13 15:23                     ` Luis Machado
2023-02-14  5:48                       ` Joel Brobecker
2023-02-15 14:47                         ` Andrew Burgess
2023-02-16  4:14                           ` Joel Brobecker
2023-02-16  9:51                           ` Mark Wielaard
2023-02-16 10:16                             ` Joel Brobecker
2023-02-16 11:58                               ` Eli Zaretskii
2023-02-16 13:31                                 ` Joel Brobecker
2023-02-16 15:23                                   ` Eli Zaretskii
2023-02-14 13:07                   ` Mark Wielaard
2023-02-14 14:23                   ` Pedro Alves
2023-02-14 13:00                 ` Mark Wielaard
2023-02-15 14:36                   ` Andrew Burgess
2023-02-13 14:05             ` Tom Tromey
2022-12-15 10:17     ` Luis Machado
2023-01-01 22:02     ` Mark Wielaard [this message]
2023-01-20 17:30       ` Tom Tromey
2023-01-20 20:30         ` Tom Tromey
2023-01-27 15:50           ` Lancelot SIX
2023-01-27 23:50             ` Tom Tromey
2023-01-30 17:43               ` Lancelot SIX
2023-01-30 18:46                 ` Mark Wielaard
2023-01-30 21:08                   ` Tom Tromey
2023-02-04 11:36                     ` Mark Wielaard
2023-01-31 10:00                   ` Lancelot SIX
2022-12-13  2:48 ` Frank Ch. Eigler
2023-02-16  8:53 anix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230101220250.GA11041@gnu.wildebeest.org \
    --to=mark@klomp.org \
    --cc=gdb@sourceware.org \
    --cc=jhb@FreeBSD.org \
    --cc=luis.machado@arm.com \
    --cc=simark@simark.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).