[elbe-devel] How to make Elbe abort if a finetuning command fails?

Lukasz Walewski lwalewski at s-can.at
Fri Sep 8 08:22:44 CEST 2017


>-----Ursprüngliche Nachricht-----
>Von: elbe-devel [mailto:elbe-devel-bounces at linutronix.de] Im Auftrag von
>Manuel Traut
>Gesendet: Donnerstag, 7. September 2017 18:10
>An: ew.foe at nassur.net; elbe-devel at linutronix.de
>Betreff: Re: [elbe-devel] How to make Elbe abort if a finetuning command
>fails?
>
>Hi,
>
>> > Quoting Lukasz Walewski <lwalewski at s-can.at>:
>> >
>> > > How to make Elbe abort if a finetuning command fails? - The default
>> > > behavior is to continue building.
>> >
>> > I have had surprises with this as well. I would even go as far as switching
>> > the default to "abort on failure". If commands in finetune may fail, I'm
>> > willing to write
>> >   <command> command args || true </command>
>> > or
>> >   <command ignore=true> command args </command>
>> > So +1, please.
>>
>> agree. It'd be nice feature to have.
>> I've generated couple of times broken images.
>
>I don't want to stopp maybe a time-sensitive image build because of a
>typo.

Well.. applying this logic to compiler design would result in a compiler that keeps building a binary regardless of syntax errors. Put other way, you insist on building even if the result is known to be wrong. In my opinion it's bad design, which already drove at least three users to problems. I fully agree with Erich that the default should be "abort on errors".

>I want to improve logging to have loglevels. E.g. a failing finetuning
>rule will be in loglevel CRITICAL, all critical errors will be listed in e.g.
>validation.txt.

Well.. after *successfully* building an image nobody cares of log files. One realizes that the build has gone wrong a lot later, after deploying the broken image on the target and trying to figure out WTF is going on. This process takes *a lot longer* than aborting the build immediately, fixing the typo and restarting it again.

Best,
Lukasz


----------------------------------------

scan Messtechnik GmbH
Brigittagasse 22-24
A-1200 Wien/Vienna
tel. +43 1 219 73 93 - 0
fax +43 1 219 73 93 - 12
http://www.s-can.at
office at s-can.at

Geschaeftsfuehrer/President: DI Andreas Weingartner
Firmenbuchnummer/Incorporation No: FN178880i
Gerichtsstand/Court of Jurisdiction: Wien/Vienna

----------------------------------------

s::can - intelligent, optical, online

i::scan - compact, precise and affordable!
UV254::NTU::FTU::TOC::DOC::COD::BOD::Colour ...and many more to come!
http://www.i-scan.at
----------------------------------------
"YES WE SCAN !"



More information about the elbe-devel mailing list