Skip to contentSkip to conversation

.gitlab-ci.yml: add check-DEVELOPERS test

PATCH New Arnout Vandecappelle (Essensium/Mind) 2 participants 5 messages Jun 30, 2017 – Jul 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 .gitlab-ci.yml: add check-DEVELOPERS test

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.

---
 .gitlab-ci.yml    | 6 ++++++
 .gitlab-ci.yml.in | 6 ++++++
 2 files changed, 12 insertions(+)
.gitlab-ci.yml +6 -0
index 1f2410e862..43e963c51d 100644
@@ -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.
.gitlab-ci.yml.in +6 -0
index 0f9cbcba33..0b6e634a4b 100644
@@ -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.
Signature · 1 line
2.13.1
#1 lore raw

PATCH 1/1 .gitlab-ci.yml: add check-DEVELOPERS test

Hello,

.gitlab-ci.yml check-gitlab-ci.yml: · line 41

Quoted 5 lines · Arnout Vandecappelle (Essensium/Mind)
.gitlab-ci.yml +5 -0
+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

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 .gitlab-ci.yml: add check-DEVELOPERS test

Quoted 5 lines · Thomas Petazzoni

Hello,

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

Quoted 7 lines

.gitlab-ci.yml check-gitlab-ci.yml: · line 41

Quoted 5 lines
.gitlab-ci.yml +5 -0
+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

Signature · 6 lines
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
#3 lore raw

PATCH 1/1 .gitlab-ci.yml: add check-DEVELOPERS test

Hello,

Quoted 8 lines · Arnout Vandecappelle
Quoted 7 lines

.gitlab-ci.yml check-gitlab-ci.yml: · line 41

Quoted 5 lines
.gitlab-ci.yml +5 -0
+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?

Quoted 8 lines

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

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH 1/1 .gitlab-ci.yml: add check-DEVELOPERS test

In reply to Arnout Vandecappelle (Essensium/Mind)

Hello,

Quoted 9 lines · Arnout Vandecappelle (Essensium/Mind)

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.

---
 .gitlab-ci.yml    | 6 ++++++
 .gitlab-ci.yml.in | 6 ++++++
 2 files changed, 12 insertions(+)

Applied to master, thanks.

Thomas

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