Skip to content
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

Unit test improvements #12153

Merged
merged 4 commits into from
Aug 1, 2020
Merged

Unit test improvements #12153

merged 4 commits into from
Aug 1, 2020

Conversation

timvandermeij
Copy link
Contributor

This commit series fixes the part of #12152 that caused the failure to go unnoticed and fixes the part of #12123 about updating Jasmine.

For the latter, I have run the unit tests locally around 100 times and the one remaining intermittent failure never happened once for me. Having thought about this more, I now also believe that it's no longer a blocker for the Jasmine update now that the other intermittent failures have actually been resolved (they happened far more often). We'll keep the issue open to track the last intermittent failure, but it's no longer a blocker for us.

Moreover, remove a left-over reference to `test.py` since that was
ported to JavaScript a long time ago.
This might make debugging intermittent failures a bit easier in the
future because it allows us to spot unexpected differences in the number
of tests being run and allows us to run the tests locally in the same
order in case of intermittent failures.
This is possible now that most intermittent unit test failures have been
resolved by other patches. There is only one remaining, but it's very
rare and doesn't have to block this update anymore.
@timvandermeij
Copy link
Contributor Author

I'm going to do a unit test run that includes the original commit with the failure that went unnoticed before to show that the unit tests now actually fail because of that. I'll remove that commit afterwards.

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2020

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/e79cd113d2ab405/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2020

From: Bot.io (Windows)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.215.176.217:8877/b62000140b5d30b/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/e79cd113d2ab405/output.txt

Total script time: 3.85 mins

  • Unit Tests: FAILED

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2020

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/b62000140b5d30b/output.txt

Total script time: 5.10 mins

  • Unit Tests: FAILED

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for fixing this!


const total = suiteInfo.totalSpecsDefined;
const seed = suiteInfo.order.seed;
sendInfo(`Started ${total} tests for ${browser} with seed ${seed}.`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really nice, and one of those things that you can't help but wonder why we haven't done years ago!

@timvandermeij
Copy link
Contributor Author

The alternate document commit is removed again.

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2020

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/26ad8e8dc9e90c0/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2020

From: Bot.io (Windows)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 0

Live output at: http://54.215.176.217:8877/3ee03b43ac70729/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/26ad8e8dc9e90c0/output.txt

Total script time: 3.78 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2020

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/3ee03b43ac70729/output.txt

Total script time: 4.60 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit 277a92d into mozilla:master Aug 1, 2020
@timvandermeij timvandermeij deleted the jasmine branch August 1, 2020 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants