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

[ui] Parallelize ember tests #17442

Merged
merged 7 commits into from
Jun 7, 2023

Conversation

philrenaud
Copy link
Contributor

@philrenaud philrenaud commented Jun 6, 2023

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.

@github-actions
Copy link

github-actions bot commented Jun 6, 2023

Ember Test Audit comparison

main 5eeb600 change
passes 1475 1475 0
failures 0 0 0
flaky 0 0 0
duration 11m 00s 333ms 13m 17s 395ms +2m 17s 062ms

Copy link
Member

@gulducat gulducat left a 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];
Copy link
Member

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.

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines 742 to 748
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 +++++');

Copy link
Contributor

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?

Copy link
Contributor

@ChaiWithJai ChaiWithJai left a comment

Choose a reason for hiding this comment

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

LGTM

@philrenaud philrenaud force-pushed the 17441-ui-dx-parallelize-ember-tests-on-pr branch from 0abb4fc to 5eeb600 Compare June 7, 2023 19:04
@philrenaud philrenaud merged commit 408ab82 into main Jun 7, 2023
@philrenaud philrenaud deleted the 17441-ui-dx-parallelize-ember-tests-on-pr branch June 7, 2023 21:01
lgfa29 pushed a commit that referenced this pull request Jun 22, 2023
* 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
lgfa29 pushed a commit that referenced this pull request Jun 22, 2023
* 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
lgfa29 added a commit that referenced this pull request Jun 22, 2023
Co-authored-by: Phil Renaud <phil.renaud@hashicorp.com>
Co-authored-by: Michael Lange <dingoeatingfuzz@gmail.com>
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
lgfa29 pushed a commit that referenced this pull request Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui, dx] Parallelize Ember tests on PR
4 participants