Closed
Bug 853478
Opened 11 years ago
Closed 11 years ago
Junit report generation fails if Mozmill is not able to send the report to the dashboard
Categories
(Mozilla QA Graveyard :: Mozmill Automation, defect, P1)
Mozilla QA Graveyard
Mozmill Automation
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: daniela.p98911, Assigned: AndreeaMatei)
Details
(Whiteboard: s=130408 u=failure c=junit p=1)
Attachments
(1 file, 1 obsolete file)
1.31 KB,
patch
|
whimboo
:
review+
davehunt
:
review+
|
Details | Diff | Splinter Review |
There was a failure today without a link to Mozmill dashboard. The Jenkins console shows: INFO Passed: 39 INFO Failed: 0 INFO Skipped: 3 timed out *** Removing old installation at /tmp/tmp2OLIc7.binary/ *** Removing repository '/tmp/tmpsEyHav.mozmill-tests' Recording test results No test report files were found. Configuration error? Build step 'Publish JUnit test result report' changed build result to FAILURE It seems that there was a timeout when submitting the report to Mozmill dashboard. The error message should be improved or in case it is possible: - to delay until the JUnit report was written - automatically retrying the sending of the report
Comment 1•11 years ago
|
||
The situation here is that Mozmill itself returns with a non zero exit code when the report cannot be sent. It's a good question if someone should consider this a fail or not. I for my self wouldn't necessarily do that. Dave, what do you think? Shall we update Mozmill to return with 0 on exit even if the report cannot be sent?
Comment 2•11 years ago
|
||
I'm not sure. Strictly speaking I think Mozmill should exit with a non-zero code if it fails to submit the report. Perhaps we could catch this in the automation scripts and re-raise it at the end (so we can write the JUnit report, etc). I'm fine with the build failing so long as it's easy to determine that the only issue was the report could not be submitted. We could also enhance Mozmill to retry on failure, which might give us a little more resilience.
Comment 3•11 years ago
|
||
I wouldn't change Mozmill itself so it retries sending the report. If we fail in that something is broken on the other side which is unlikely to be fixed in the next couple of minutes. I don't want to hold off the finish status of the job. So lets fetch the exception, run the junit report code, and re-throw the exception afterward. Or which might be better, run the junit report code in finally.
Severity: normal → major
Priority: -- → P1
Summary: Improve report submission in case of timeout when submitting a report to mozmill dashboard → Junit report generation fails if Mozmill is not able to send the report to the dashboard
Whiteboard: s=130408 u=failure c=junit p=1
Comment 4•11 years ago
|
||
Just checked our code and we should simply switch the order of both lines so we call _generate_custom_report() first before invoking send_report().
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → andreea.matei
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•11 years ago
|
||
I have tried to reproduce this (or force it somehow to reproduce) in order to check the patch I made with Henrik's suggestion in comment 4. I wasn't able to get that error on my local jenkins and as far as I know, this only happened once on the ci? I used smaller delay time for endurance, to make it faster, tried to block mozmill-crowd through /etc/hosts or use another invalid page, tried with smaller abort timeout. Should I upload the patch anyway as it is an improvement?
Comment 6•11 years ago
|
||
Please check our mozmill-automation scripts and how the different reports are getting created. There is no need to do excessive testing. Please see my comment 4. A simple code move is enough here.
Assignee | ||
Comment 7•11 years ago
|
||
Moved those lines between them as requested and tested on our local jenkins the change.
Attachment #736818 -
Flags: review?(hskupin)
Attachment #736818 -
Flags: review?(dave.hunt)
Comment 8•11 years ago
|
||
Comment on attachment 736818 [details] [diff] [review] patch v1 Review of attachment 736818 [details] [diff] [review]: ----------------------------------------------------------------- ::: libs/testrun.py @@ +395,2 @@ > if self.options.report_url: > self.send_report(self.options.report_url) You will also have to move up the increment of the testrun_index. Otherwise we will overwrite the junit log we formerly created.
Attachment #736818 -
Flags: review?(hskupin)
Attachment #736818 -
Flags: review?(dave.hunt)
Attachment #736818 -
Flags: review-
Assignee | ||
Comment 9•11 years ago
|
||
Moved both lines up before calling send_report()
Attachment #736818 -
Attachment is obsolete: true
Attachment #737849 -
Flags: review?(hskupin)
Attachment #737849 -
Flags: review?(dave.hunt)
Comment 10•11 years ago
|
||
Comment on attachment 737849 [details] [diff] [review] patch v2 Review of attachment 737849 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. If Dave is happy too we can get this landed.
Attachment #737849 -
Flags: review?(hskupin) → review+
Comment 11•11 years ago
|
||
Looks great, I will go ahead and land this.
Comment 12•11 years ago
|
||
Comment on attachment 737849 [details] [diff] [review] patch v2 Review of attachment 737849 [details] [diff] [review]: ----------------------------------------------------------------- Landed as: http://hg.mozilla.org/qa/mozmill-automation/rev/3a22993b9996
Attachment #737849 -
Flags: review?(dave.hunt) → review+
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•