-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't ignore errors in the Jasmine suite start/end stages #18321
Don't ignore errors in the Jasmine suite start/end stages #18321
Conversation
Before this patch:
After this patch:
|
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/78fea9e555a09fe/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/069db26419a504a/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/78fea9e555a09fe/output.txt Total script time: 2.46 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/069db26419a504a/output.txt Total script time: 9.03 mins
|
/botio integrationtest |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/32a622470750b14/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/ed68e4d04bcad93/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/ed68e4d04bcad93/output.txt Total script time: 8.11 mins
|
Currently errors in `afterAll` are logged, but don't fail the tests. This could cause new errors during test teardown to go by unnoticed. Moreover, the integration test use a different reporting mechanism which also handled errors differently (this is extra reason to do mozilla#12730). This patch fixes the issues by consistently handling errors in `suiteStarted` and `suiteDone` in both reporting mechanisms. Fixes mozilla#18319.
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/32a622470750b14/output.txt Total script time: 19.08 mins
|
7d6a4b3
to
2f3bf6f
Compare
Notice how the two runs above now fail correctly because this patch was deliberately not rebased onto #18320 yet: they now both log I have now rebased onto the current master branch with #18320, so now the integration tests should succeed for that test: /botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/29c184eadb031ca/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/61a2ff740e0b544/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/29c184eadb031ca/output.txt Total script time: 8.13 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/61a2ff740e0b544/output.txt Total script time: 18.69 mins
|
/botio integrationtest |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/ce23b2095f6d0b0/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/17aea804e0ca9b0/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/17aea804e0ca9b0/output.txt Total script time: 8.25 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/ce23b2095f6d0b0/output.txt Total script time: 18.84 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, since the failures should be unrelated and this patch really is the correct thing to do; thank you!
Currently errors in
afterAll
are logged, but don't fail the tests. This could cause new errors during test teardown to go by unnoticed.Moreover, the integration test use a different reporting mechanism which also handled errors differently (this is extra reason to do #12730).
This patch fixes the issues by consistently handling errors in
suiteStarted
andsuiteDone
in both reporting mechanisms.Fixes #18319.