diff mbox series

[buildbot] phase1: add JSON merge step

Message ID 20200630232801.2533530-1-mail@aparcar.org
State Accepted
Delegated to: Jo-Philipp Wich
Headers show
Series [buildbot] phase1: add JSON merge step | expand

Commit Message

Paul Spooren June 30, 2020, 11:28 p.m. UTC
The refactored JSON info files require a final merge step which sums up
all created JSON info files of a target into a single `profiles.json`
files.

This patch adds the extra step to run `make json_overview_image_info`
just before calculating the checksums so the `profiles.json` files is
signed as well.

Signed-off-by: Paul Spooren <mail@aparcar.org>
---
 phase1/master.cfg | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Paul Spooren July 19, 2020, 6:45 p.m. UTC | #1
On 30.06.20 13:28, Paul Spooren wrote:
> The refactored JSON info files require a final merge step which sums up
> all created JSON info files of a target into a single `profiles.json`
> files.
>
> This patch adds the extra step to run `make json_overview_image_info`
> just before calculating the checksums so the `profiles.json` files is
> signed as well.
>
> Signed-off-by: Paul Spooren <mail@aparcar.org>
> ---
>   phase1/master.cfg | 8 ++++++++
>   1 file changed, 8 insertions(+)
>
> diff --git a/phase1/master.cfg b/phase1/master.cfg
> index 792f9b3..1a96982 100644
> --- a/phase1/master.cfg
> +++ b/phase1/master.cfg
> @@ -925,6 +925,14 @@ for target in targets:
>   		haltOnFailure = True
>   	))
>   
> +	factory.addStep(ShellCommand(
> +		name = "json_overview_image_info",
> +		description = "Generate profiles.json in target folder",
> +		command=["make", "-j1", "json_overview_image_info", "V=s"],
> +		env = MakeEnv(),
> +		haltOnFailure = True
> +	))
> +
>   	factory.addStep(ShellCommand(
>   		name = "checksums",
>   		description = "Calculating checksums",

Please consider merging this. As a migration step the `haltOnFailure` 
could be set to false to show error, but not actually crash the 
workflow. Once 1-2 runs were successful (no Python version issues), it 
could be activated again.
Moritz Warning July 19, 2020, 8:04 p.m. UTC | #2
On 7/19/20 8:45 PM, Paul Spooren wrote:
> On 30.06.20 13:28, Paul Spooren wrote:
>> The refactored JSON info files require a final merge step which sums up
>> all created JSON info files of a target into a single `profiles.json`
>> files.
>>
>> This patch adds the extra step to run `make json_overview_image_info`
>> just before calculating the checksums so the `profiles.json` files is
>> signed as well.
>>
>> Signed-off-by: Paul Spooren <mail@aparcar.org>
>> ---
>>   phase1/master.cfg | 8 ++++++++
>>   1 file changed, 8 insertions(+)
>>
>> diff --git a/phase1/master.cfg b/phase1/master.cfg
>> index 792f9b3..1a96982 100644
>> --- a/phase1/master.cfg
>> +++ b/phase1/master.cfg
>> @@ -925,6 +925,14 @@ for target in targets:
>>           haltOnFailure = True
>>       ))
>>   +    factory.addStep(ShellCommand(
>> +        name = "json_overview_image_info",
>> +        description = "Generate profiles.json in target folder",
>> +        command=["make", "-j1", "json_overview_image_info", "V=s"],
>> +        env = MakeEnv(),
>> +        haltOnFailure = True
>> +    ))
>> +
>>       factory.addStep(ShellCommand(
>>           name = "checksums",
>>           description = "Calculating checksums",
>
> Please consider merging this. As a migration step the `haltOnFailure` could be set to false to show error, but not actually crash the workflow. Once 1-2 runs were successful (no Python version issues), it could be activated again.
>
>

It would be really nice if the build bot would create the profiles.json files. Then we could finally set up the firmware selector [0] and give it a beta test.

best,
mwarning


[0] https://github.com/mwarning/yet-another-firmware-selector
diff mbox series

Patch

diff --git a/phase1/master.cfg b/phase1/master.cfg
index 792f9b3..1a96982 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -925,6 +925,14 @@  for target in targets:
 		haltOnFailure = True
 	))
 
+	factory.addStep(ShellCommand(
+		name = "json_overview_image_info",
+		description = "Generate profiles.json in target folder",
+		command=["make", "-j1", "json_overview_image_info", "V=s"],
+		env = MakeEnv(),
+		haltOnFailure = True
+	))
+
 	factory.addStep(ShellCommand(
 		name = "checksums",
 		description = "Calculating checksums",