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

Fix flaky Karma startup by refreshing the wd cache #13328

Merged
merged 2 commits into from
Feb 7, 2018
Merged

Fix flaky Karma startup by refreshing the wd cache #13328

merged 2 commits into from
Feb 7, 2018

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Feb 7, 2018

This PR mitigates the well-known Karma startup issue karma-runner/karma-sauce-launcher#117 by manually refreshing the wd cache in node_modules/wd/build before trying to launch a Karma server, as described in admc/wd#466 (comment)

This PR essentially repeats what is done when wd is installed for the first time: https://github.com/admc/wd/blob/master/package.json#L84.

Tested by manually deleting the files in node_modules/wd/build and running gulp test. The cache is auto-refreshed by runtime-test.js prior to Karma startup. This should greatly reduce flakiness on Travis.

Follow up to #10966

@rsimha
Copy link
Contributor Author

rsimha commented Feb 7, 2018

@rsimha
Copy link
Contributor Author

rsimha commented Feb 7, 2018

/to @danielrozenberg

@rsimha rsimha merged commit 7b211a1 into ampproject:master Feb 7, 2018
@rsimha rsimha deleted the 2018-02-06-FixKarmaStartupError branch February 7, 2018 18:20
protonate pushed a commit to protonate/amphtml that referenced this pull request Feb 26, 2018
RanAbram pushed a commit to RanAbram/amphtml that referenced this pull request Mar 12, 2018
protonate pushed a commit to protonate/amphtml that referenced this pull request Mar 15, 2018
Copy link

@mikeyredtiger22 mikeyredtiger22 left a comment

Choose a reason for hiding this comment

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

Awesome fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants