Bug 12331 - yocto-builds@yoctoproject.org reports a machine different that the one used
Summary: yocto-builds@yoctoproject.org reports a machine different that the one used
Status: RESOLVED OBSOLETE
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.99
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-11-09 17:18 UTC by Leonardo Sandoval Gonzalez
Modified: 2019-05-08 21:01 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Sandoval Gonzalez 2017-11-09 17:18:21 UTC
While triaging bug 12306, the reported MACHINE value (mpc8315e-rdb) on first comment does not correspond to what actually  used at runtime (qemuppc) so the what is being parse to create the email is somehow wrong.

According to RP, the root cause is:

"> I think this is the configuration in use at the end of the build, it
> wasn't the configuration in use at the time of the failure :(
>"
Comment 1 Richard Purdie 2017-11-16 15:38:34 UTC
The issue here is that the build failure email from the autobuilder comes out after all the buildsteps execute. The summary is from the last buildstep but values like MACHINE may vary as the steps execute.

That failure might not be from the last buildstep.

This is misleading so do we emit a build failure email per failing build step so we can have the correct info?

This is confusing people at the moment, understandably.
Comment 2 Joshua Lock 2017-11-19 04:18:19 UTC
(In reply to comment #1)
> This is misleading so do we emit a build failure email per failing build
> step so we can have the correct info?

We could easily do this. If a failure email is deemed too excessive (though I'm not sure it would be) we could build up the message locally by writing failures to a file and then mailing the full log of failures for a triggered build at once, we have some logic we could reuse for this in the wikilog status plugin.

I'm generally in favour of the simpler option and just sending an email per failed build step.
Comment 3 Joshua Lock 2018-01-12 16:46:20 UTC
Maybe I was a little hasty in saying that this would be easy :-)

The Yocto_Message_Formatter expects to receive certain objects that aren't always as expected when calling the message formatter from a stepFinished event, rather than a buildFinished event. I'll continue looking over the code to determine what is the cleanest solution to avoid this confusion.
Comment 4 Richard Purdie 2019-05-08 21:01:55 UTC
The autobuilder no longer sends these messages (this is one of the reasons why)