-
Notifications
You must be signed in to change notification settings - Fork 889
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
Run tests only on changed packages on PR/push #2565
Conversation
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.
LGTM with a couple of nits
scripts/run_changed.js
Outdated
@@ -0,0 +1,83 @@ | |||
/** | |||
* @license | |||
* Copyright 2019 Google Inc. |
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.
Nit: 2020
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.
Thanks, also fixed this in the template that auto-adds the license headers.
* @param {Array<string>} pathList | ||
*/ | ||
async function runTests(pathList) { | ||
if (!pathList) return; |
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.
May be log this case: No changes detected in any package
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.
Good idea, added it to runTestsOnChangedPackages
since this function is also used to run the integration tests.
Trying to run tests only on packages with changed files on PR/push. Entire test suite will continue to run on merge, and twice a day.
Cross-browser tests moved to run only on merge until I can clean up our Saucelabs workflow to make results viewable and useful.