config: adding dts tag for dts path patches

Message ID 20241001170703.30348-1-mmahajan@iol.unh.edu (mailing list archive)
State Accepted
Headers
Series config: adding dts tag for dts path patches |

Commit Message

Manit Mahajan Oct. 1, 2024, 5:07 p.m. UTC
DTS provides a check-format script which runs a series of code quality
checks including formatting, linting, and type-checking using the
following tools: black, isort, pylama, and mypy. Developers are supposed
to run this script before submitting their patch series. In CI testing,
we want to run this formatting script on all patches which modify
dpdk/dts/* going forward, and submit a new patchwork check named
dts-check-format. In order to do this, we need to be able to set a tag
in the patch parser script for all patch series which meet this
condition. This series adds the dts tag and path assignment to
config/patch_parser.cfg.

Signed-off-by: Manit Mahajan
---
 config/patch_parser.cfg | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
  

Comments

Patrick Robb Oct. 1, 2024, 5:19 p.m. UTC | #1
Reviewed-by: Patrick Robb <probb@iol.unh.edu>

Adding Luca since he is keen to see the dts format script run in CI
testing. :)
  
Aaron Conole Oct. 4, 2024, 2:01 p.m. UTC | #2
Patrick Robb <probb@iol.unh.edu> writes:

> Reviewed-by: Patrick Robb <probb@iol.unh.edu>
>
> Adding Luca since he is keen to see the dts format script run in CI testing. :)

Should I hold off on Luca's ack/reviewed before applying?
  
Patrick Robb Oct. 4, 2024, 5:54 p.m. UTC | #3
No, I don't think that's necessary. What he described (run the format check
every time a file within /dts/* is being changed) will be accomplished with
this patch. And I don't think he has worked with the dpdk-ci repo
previously anyways.

On Fri, Oct 4, 2024 at 10:01 AM Aaron Conole <aconole@redhat.com> wrote:

> Patrick Robb <probb@iol.unh.edu> writes:
>
> > Reviewed-by: Patrick Robb <probb@iol.unh.edu>
> >
> > Adding Luca since he is keen to see the dts format script run in CI
> testing. :)
>
> Should I hold off on Luca's ack/reviewed before applying?
>
>
  
Luca Vizzarro Oct. 7, 2024, 12:56 p.m. UTC | #4
On 04/10/2024 18:54, Patrick Robb wrote:
> No, I don't think that's necessary. What he described (run the format 
> check every time a file within /dts/* is being changed) will be 
> accomplished with this patch. And I don't think he has worked with the 
> dpdk-ci repo previously anyways.

As you said I haven't worked on the dpdk-ci repo before, so not sure 
what's happening here :D

Thank you for the cc. Will also keep a look out for what I presume is 
the next patch including dts-check-format?

And thank you Manit for making this happen!

Best,
Luca
  
Aaron Conole Oct. 7, 2024, 3:52 p.m. UTC | #5
Manit Mahajan <mmahajan@iol.unh.edu> writes:

> DTS provides a check-format script which runs a series of code quality
> checks including formatting, linting, and type-checking using the
> following tools: black, isort, pylama, and mypy. Developers are supposed
> to run this script before submitting their patch series. In CI testing,
> we want to run this formatting script on all patches which modify
> dpdk/dts/* going forward, and submit a new patchwork check named
> dts-check-format. In order to do this, we need to be able to set a tag
> in the patch parser script for all patch series which meet this
> condition. This series adds the dts tag and path assignment to
> config/patch_parser.cfg.
>
> Signed-off-by: Manit Mahajan
> ---

Hi Manit,

FYI, your signed-off-by line is incorrect.  It is missing the email
address.  I can add it on apply if you are okay with that, but in the
future, it should look like::

  Signed-off-by: Manit Mahajan <mmahajan@iol.unh.edu>

Thanks!

>  config/patch_parser.cfg | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/config/patch_parser.cfg b/config/patch_parser.cfg
> index 5757f9a..dac3b23 100644
> --- a/config/patch_parser.cfg
> +++ b/config/patch_parser.cfg
> @@ -13,6 +13,7 @@ app = application
>  license = documentation
>  VERSION = documentation
>  build = core
> +dts = dts
>  
>  # This is an ordered list of the importance of each patch classification.
>  # It should be used to determine which classification to use on tools which
> @@ -22,4 +23,5 @@ priority_list =
>      core,
>      driver,
>      application,
> -    documentation
> +    documentation,
> +    dts
  
Patrick Robb Oct. 7, 2024, 3:54 p.m. UTC | #6
Good catch Aaron, sorry that I missed this in my review.

We will accept your offer to amend the commit on apply. :)

On Mon, Oct 7, 2024 at 11:53 AM Aaron Conole <aconole@redhat.com> wrote:

> Manit Mahajan <mmahajan@iol.unh.edu> writes:
>
> > DTS provides a check-format script which runs a series of code quality
> > checks including formatting, linting, and type-checking using the
> > following tools: black, isort, pylama, and mypy. Developers are supposed
> > to run this script before submitting their patch series. In CI testing,
> > we want to run this formatting script on all patches which modify
> > dpdk/dts/* going forward, and submit a new patchwork check named
> > dts-check-format. In order to do this, we need to be able to set a tag
> > in the patch parser script for all patch series which meet this
> > condition. This series adds the dts tag and path assignment to
> > config/patch_parser.cfg.
> >
> > Signed-off-by: Manit Mahajan
> > ---
>
> Hi Manit,
>
> FYI, your signed-off-by line is incorrect.  It is missing the email
> address.  I can add it on apply if you are okay with that, but in the
> future, it should look like::
>
>   Signed-off-by: Manit Mahajan <mmahajan@iol.unh.edu>
>
> Thanks!
>
> >  config/patch_parser.cfg | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/config/patch_parser.cfg b/config/patch_parser.cfg
> > index 5757f9a..dac3b23 100644
> > --- a/config/patch_parser.cfg
> > +++ b/config/patch_parser.cfg
> > @@ -13,6 +13,7 @@ app = application
> >  license = documentation
> >  VERSION = documentation
> >  build = core
> > +dts = dts
> >
> >  # This is an ordered list of the importance of each patch
> classification.
> >  # It should be used to determine which classification to use on tools
> which
> > @@ -22,4 +23,5 @@ priority_list =
> >      core,
> >      driver,
> >      application,
> > -    documentation
> > +    documentation,
> > +    dts
>
>
  

Patch

diff --git a/config/patch_parser.cfg b/config/patch_parser.cfg
index 5757f9a..dac3b23 100644
--- a/config/patch_parser.cfg
+++ b/config/patch_parser.cfg
@@ -13,6 +13,7 @@  app = application
 license = documentation
 VERSION = documentation
 build = core
+dts = dts
 
 # This is an ordered list of the importance of each patch classification.
 # It should be used to determine which classification to use on tools which
@@ -22,4 +23,5 @@  priority_list =
     core,
     driver,
     application,
-    documentation
+    documentation,
+    dts