-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[ui] Parallelize ember tests #17442
[ui] Parallelize ember tests #17442
Conversation
Ember Test Audit comparison
|
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.
not knowing JS well, I'm only vaguely aware of what this is doing, but LGTM!
); | ||
const servicedAlloc = (server.db.allocations.filter( | ||
(a) => a.jobId === 'service-haver' | ||
) || [])[0]; |
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.
[][0] == undefined
javascript is amazing.
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!
console.log('+++++ LOGGING ALLOC DETAILS +++++'); | ||
console.log('Allocs found: ', findAll('tr[data-test-allocation]').length); | ||
console.log('(locally, 1)'); | ||
await percySnapshot(assert); | ||
|
||
console.log('+++++ END LOGGING ALLOC DETAILS +++++'); | ||
|
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
: Do you want to commit these logs?
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
0abb4fc
to
5eeb600
Compare
* Exam to parallelize tests * Logging to try to solve test flakiness * Logging in another failure * Hardening for one test and snapshot for another * Explicitly set the first one as the servicedAlloc instead of randomly picking * A wild CircleCI test failure appears * de-log
* Exam to parallelize tests * Logging to try to solve test flakiness * Logging in another failure * Hardening for one test and snapshot for another * Explicitly set the first one as the servicedAlloc instead of randomly picking * A wild CircleCI test failure appears * de-log
Uses Ember Exam to parallelize tests; includes a few fixes for tests that are affected by leaks more than others. Surely more'll pop up eventually and we'll patch them when they do.