Skip to content

Build: Run Karma tests sequentially in separate processes + other improvements #455

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

Merged
merged 6 commits into from
Aug 21, 2019

Conversation

mgol
Copy link
Member

@mgol mgol commented Aug 19, 2019

Sizzle hasn't been able to finish all its unit tests successfully for a long time. This PR attempts to make it work again (at least most of the time).

  1. A new "karma-tests" task is created; it runs tests in various browser sets
    but does it sequentially in separate processes to avoid Karma bugs that cause
    browsers from previous sets to somehow still be waited on during subsequent
    runs, failing the build.
  2. Upgrade tested browsers
  3. Run iOS tests at the end (as it fails more often than other browsers)
  4. Use real iOS 10.3 device in Karma

We can't upgrade Karma as the latest version (4.2.0) hangs in IE 7 (IE 8 seems to work fine there).

Note: it's expected that tests fail on this PR when merged due to #454. I temporarily disabled oldFirefox tests & pushed it to origin to see if it will succeed other than that and it did: https://travis-ci.org/jquery/sizzle/builds/574066624 EDIT: That issue is fixed now.

@mgol mgol requested review from timmywil and gibson042 August 19, 2019 22:39
@mgol mgol self-assigned this Aug 19, 2019
@mgol
Copy link
Member Author

mgol commented Aug 19, 2019

The Firefox issue is fixed in a separate PR: #456.

mgol added 5 commits August 20, 2019 23:26
A new "karma-tests" task is created; it runs tests in various browser sets
but does it sequentially in separate processes to avoid Karma bugs that cause
browsers from previous sets to somehow still be waited on during subsequent
runs, failing the build.
@mgol
Copy link
Member Author

mgol commented Aug 21, 2019

Given one approval, I'm going to merge it to see if master gets green or if I need some followup work.

@mgol mgol merged commit 948eff8 into jquery:master Aug 21, 2019
@mgol mgol deleted the karma branch August 21, 2019 14:57
@mgol
Copy link
Member Author

mgol commented Aug 21, 2019

Here we are, the first successful master build on Travis since 7 months ago! 🎉 https://travis-ci.org/jquery/sizzle/builds/574903438

@mgol mgol added this to the 2.3.5 milestone Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants