All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] .gitlab-ci.yml: add check-DEVELOPERS test
@ 2017-06-30 16:42 Arnout Vandecappelle
  2017-06-30 18:02 ` Thomas Petazzoni
  2017-07-01 13:22 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2017-06-30 16:42 UTC (permalink / raw)
  To: buildroot

This verifies that the DEVELOPERS file doesn't contain errors. It
just runs parse_developers from getdeveloperlib and errors out if
that produces any output.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 .gitlab-ci.yml    | 6 ++++++
 .gitlab-ci.yml.in | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1f2410e862..43e963c51d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,6 +34,12 @@ check-gitlab-ci.yml:
         - make .gitlab-ci.yml
         - diff -u .gitlab-ci.yml.orig .gitlab-ci.yml
 
+check-DEVELOPERS:
+    script:
+        - PYTHONPATH=$PWD/support/scripts
+                python -c 'from getdeveloperlib import parse_developers; parse_developers()' |
+                grep . && exit 1
+
 .defconfig: &defconfig
     # Running the defconfigs for every push is too much, so limit to
     # explicit triggers through the API.
diff --git a/.gitlab-ci.yml.in b/.gitlab-ci.yml.in
index 0f9cbcba33..0b6e634a4b 100644
--- a/.gitlab-ci.yml.in
+++ b/.gitlab-ci.yml.in
@@ -34,6 +34,12 @@ check-gitlab-ci.yml:
         - make .gitlab-ci.yml
         - diff -u .gitlab-ci.yml.orig .gitlab-ci.yml
 
+check-DEVELOPERS:
+    script:
+        - PYTHONPATH=$PWD/support/scripts
+                python -c 'from getdeveloperlib import parse_developers; parse_developers()' |
+                grep . && exit 1
+
 .defconfig: &defconfig
     # Running the defconfigs for every push is too much, so limit to
     # explicit triggers through the API.
-- 
2.13.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] .gitlab-ci.yml: add check-DEVELOPERS test
  2017-06-30 16:42 [Buildroot] [PATCH] .gitlab-ci.yml: add check-DEVELOPERS test Arnout Vandecappelle
@ 2017-06-30 18:02 ` Thomas Petazzoni
  2017-07-01  7:36   ` Arnout Vandecappelle
  2017-07-01 13:22 ` Thomas Petazzoni
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2017-06-30 18:02 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 30 Jun 2017 18:42:53 +0200, Arnout Vandecappelle
(Essensium/Mind) wrote:

> +check-DEVELOPERS:
> +    script:
> +        - PYTHONPATH=$PWD/support/scripts
> +                python -c 'from getdeveloperlib import parse_developers; parse_developers()' |
> +                grep . && exit 1

Isn't "./support/scripts/get-developer -c" doing the right thing?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] .gitlab-ci.yml: add check-DEVELOPERS test
  2017-06-30 18:02 ` Thomas Petazzoni
@ 2017-07-01  7:36   ` Arnout Vandecappelle
  2017-07-01  7:39     ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2017-07-01  7:36 UTC (permalink / raw)
  To: buildroot



On 30-06-17 20:02, Thomas Petazzoni wrote:
> Hello,
> 
> On Fri, 30 Jun 2017 18:42:53 +0200, Arnout Vandecappelle
> (Essensium/Mind) wrote:
> 
>> +check-DEVELOPERS:
>> +    script:
>> +        - PYTHONPATH=$PWD/support/scripts
>> +                python -c 'from getdeveloperlib import parse_developers; parse_developers()' |
>> +                grep . && exit 1
> 
> Isn't "./support/scripts/get-developer -c" doing the right thing?

 The problem with that is that it produces a lot of output, and the warnings are
at the top. So I would have to grep for WARNING. But some of the possible errors
don't have a WARNING in front of them. So I started out changing the script to
add WARNING for those as well. But then I thought: keep things simple, just call
parse_developers directly.

 Perhaps it would be a little more transparent to add a __main__ to
getdeveloperlib and then call it with "python support/scripts/getdeveloperlib.py".

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] .gitlab-ci.yml: add check-DEVELOPERS test
  2017-07-01  7:36   ` Arnout Vandecappelle
@ 2017-07-01  7:39     ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2017-07-01  7:39 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 1 Jul 2017 09:36:02 +0200, Arnout Vandecappelle wrote:

> >> +check-DEVELOPERS:
> >> +    script:
> >> +        - PYTHONPATH=$PWD/support/scripts
> >> +                python -c 'from getdeveloperlib import parse_developers; parse_developers()' |
> >> +                grep . && exit 1  
> > 
> > Isn't "./support/scripts/get-developer -c" doing the right thing?  
> 
>  The problem with that is that it produces a lot of output, and the warnings are
> at the top. So I would have to grep for WARNING. But some of the possible errors
> don't have a WARNING in front of them. So I started out changing the script to
> add WARNING for those as well. But then I thought: keep things simple, just call
> parse_developers directly.
> 
>  Perhaps it would be a little more transparent to add a __main__ to
> getdeveloperlib and then call it with "python support/scripts/getdeveloperlib.py".

Or a proper option to get-developers that does whatever check you want?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] .gitlab-ci.yml: add check-DEVELOPERS test
  2017-06-30 16:42 [Buildroot] [PATCH] .gitlab-ci.yml: add check-DEVELOPERS test Arnout Vandecappelle
  2017-06-30 18:02 ` Thomas Petazzoni
@ 2017-07-01 13:22 ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2017-07-01 13:22 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 30 Jun 2017 18:42:53 +0200, Arnout Vandecappelle
(Essensium/Mind) wrote:
> This verifies that the DEVELOPERS file doesn't contain errors. It
> just runs parse_developers from getdeveloperlib and errors out if
> that produces any output.
> 
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
>  .gitlab-ci.yml    | 6 ++++++
>  .gitlab-ci.yml.in | 6 ++++++
>  2 files changed, 12 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-01 13:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-30 16:42 [Buildroot] [PATCH] .gitlab-ci.yml: add check-DEVELOPERS test Arnout Vandecappelle
2017-06-30 18:02 ` Thomas Petazzoni
2017-07-01  7:36   ` Arnout Vandecappelle
2017-07-01  7:39     ` Thomas Petazzoni
2017-07-01 13:22 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.