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, CI] Test splitting #17626

Merged
merged 7 commits into from
Jun 21, 2023
Merged

[UI, CI] Test splitting #17626

merged 7 commits into from
Jun 21, 2023

Conversation

DingoEatingFuzz
Copy link
Contributor

@DingoEatingFuzz DingoEatingFuzz commented Jun 20, 2023

UI tests have already been running parallel in CI, this changes it so they aren't just parallelized on one machine (which could be leading to local state related flakiness), instead they are run across a set of GHA jobs.

Additionally, this removes the artifact uploading step, which was dutifully migrated from the previous Circle config. Mechanically the upload-artifact action does indeed upload the XML file just like how the Circle job worked, however, the XML file was only being generated and uploaded in service of test insights features exclusive to Circle. So this process has become strictly vestigial.

This is intended to be used like `yarn exam:parallel -- more --options`

This way a split and partition can be provided by CI without CI also
needing to deal with percy details.
This will be called N times by the parent test-ui script.
This will run partitions and parallel only after linting passes.
@github-actions
Copy link

github-actions bot commented Jun 20, 2023

Ember Test Audit comparison

main 6c53c1e change
passes 1476 1476 0
failures 0 0 0
flaky 0 0 0
duration 11m 28s 111ms 11m 17s 872ms -10s 239ms

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.

who doesn't love faster tests? 🎉

.github/workflows/_ember-exam.yml Outdated Show resolved Hide resolved
.github/workflows/test-ui.yml Show resolved Hide resolved
.github/workflows/test-ui.yml Outdated Show resolved Hide resolved
This was used to integrate with Circle CI's deeper test reporting
(failures, flakes, reporting). It's strictly vestigial now that we're on
GHA.
After renovating everything, it's evident that the ember-exam
sub-workflow can be inlined without any pesky duplication.
Percy uses this to stitch parallel test runs back together into a single
report.
@DingoEatingFuzz
Copy link
Contributor Author

Hey @philrenaud, this is looking good, but can you verify things look right in Percy before I merge?

@DingoEatingFuzz DingoEatingFuzz merged commit 04042c6 into main Jun 21, 2023
24 checks passed
@DingoEatingFuzz DingoEatingFuzz deleted the f/ui-test-splitting branch June 21, 2023 03:21
@lgfa29
Copy link
Contributor

lgfa29 commented Jun 22, 2023

Backporting this PR to keep testss consistent across release branches.

@lgfa29 lgfa29 added backport/1.3.x backport to 1.3.x release line backport/1.4.x backport to 1.4.x release line backport/1.5.x backport to 1.5.x release line labels Jun 22, 2023
lgfa29 pushed a commit that referenced this pull request Jun 22, 2023
lgfa29 pushed a commit that referenced this pull request Jun 22, 2023
lgfa29 pushed a commit that referenced this pull request Jun 22, 2023
lgfa29 pushed a commit that referenced this pull request Jun 22, 2023
[UI, CI] Test splitting

Co-authored-by: Michael Lange <dingoeatingfuzz@gmail.com>
lgfa29 pushed a commit that referenced this pull request Jun 22, 2023
lgfa29 pushed a commit that referenced this pull request Jun 22, 2023
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
backport/1.3.x backport to 1.3.x release line backport/1.4.x backport to 1.4.x release line backport/1.5.x backport to 1.5.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants