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

switch to chrome headless, deflake tests #2056

Merged
merged 11 commits into from
Jan 31, 2018
Merged

switch to chrome headless, deflake tests #2056

merged 11 commits into from
Jan 31, 2018

Conversation

giladgray
Copy link
Contributor

@giladgray giladgray commented Jan 30, 2018

Fixes #1951

Changes proposed in this pull request:

  • switch from PhantomJS to ChromeHeadless (that was easy)
    • tired of faffing about with focus failures on a browser that isn't even real!
  • [Overlay] Support nested overlays #2033 introduced some test failures (author's Circle setup did not support our test parallelism 😢 ), so here I fixed them.
  • also took a stab at fixing test flakes (not entirely successful) and i was able to un-skip all the skipped tests!

@blueprint-bot
Copy link

remove HACKHACK

Preview: documentation | landing | table

@giladgray giladgray changed the title overlay tests switch to chrome headless, deflake tests Jan 31, 2018
@blueprint-bot
Copy link

comments

Preview: documentation | landing | table

@blueprint-bot
Copy link

table expected width

Preview: documentation | landing | table

@blueprint-bot
Copy link

remove phantomjs dependencies

Preview: documentation | landing | table

@blueprint-bot
Copy link

Utils.times negative numbers

Preview: documentation | landing | table

@giladgray
Copy link
Contributor Author

can you believe it's been so consistently green for so many runs???

@giladgray
Copy link
Contributor Author

@adidahiya i'm fairly sure that develop is broken, as all PRs that have latest develop are ❌ . i'm also fairly sure that this PR fixes develop, so let's get it merged ASAP 🚢

@giladgray giladgray added the P0 label Jan 31, 2018
Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

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

nice work!

also took a stab at fixing test flakes (not entirely successful)

what do you mean by this? are things still flaky after this PR?

(gonna merge anyway to fix develop)

// the next frame, not just to the end of the current frame.
function assertFocus(selector: string | (() => void), done: MochaDone) {
// the behavior being tested relies on requestAnimationFrame.
// to avoid flakiness, use nested setTimeouts to delay execution until the *next* frame.
Copy link
Contributor

Choose a reason for hiding this comment

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

this is still concerning, but at least this PR leaves us in a better state than the repo currently is...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it's definitely a better state. in the course of development, i saw test flakes locally with chrome headless where certain suites would go red for a run. but this hasn't shown itself on circle (greens all the way down), so that's good news.

@adidahiya adidahiya merged commit c4df141 into develop Jan 31, 2018
@adidahiya adidahiya deleted the gg/overlay-tests branch January 31, 2018 15:49
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.

flaky overlay tests
3 participants