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

E2E Tests: retry flaky tests #7758

Merged
merged 3 commits into from
May 27, 2021
Merged

E2E Tests: retry flaky tests #7758

merged 3 commits into from
May 27, 2021

Conversation

spacedmonkey
Copy link
Contributor

@spacedmonkey spacedmonkey commented May 27, 2021

Context

Summary

Prior art: WordPress/gutenberg#31682

Requires jest-circus test runner, which is the default since Jest 27.

Retry 3 means that test is run 3 times, normally and 2 other times.

Relevant Technical Choices

To-do

User-facing changes

Testing Instructions

QA

  • This is a non-user-facing change and requires no QA

This PR can be tested by following these steps:

UAT

  • UAT should use the same steps as above.

This PR can be tested by following these steps:

Reviews

Does this PR have a security-related impact?

Does this PR change what data or activity we track or use?

Does this PR have a legal-related impact?

Checklist

  • This PR addresses an existing issue and I have linked this PR to it in ZenHub
  • I have tested this code to the best of my abilities
  • I have verified accessibility to the best of my abilities (docs)
  • I have verified i18n and l10n (translation, right-to-left layout) to the best of my abilities
  • This PR contains automated tests (unit, integration, and/or e2e) to verify the code works as intended (docs)
  • I have added documentation where necessary
  • I have added a matching Type: XYZ label to the PR

Fixes #7549

@google-cla google-cla bot added the cla: yes label May 27, 2021
@github-actions
Copy link
Contributor

github-actions bot commented May 27, 2021

Size Change: 0 B

Total Size: 2.11 MB

ℹ️ View Unchanged
Filename Size Change
assets/css/carousel-view-rtl.css 716 B 0 B
assets/css/carousel-view.css 717 B 0 B
assets/css/edit-story-rtl.css 277 B 0 B
assets/css/edit-story.css 277 B 0 B
assets/css/stories-dashboard-rtl.css 276 B 0 B
assets/css/stories-dashboard.css 276 B 0 B
assets/css/vendors-edit-story-rtl.css 706 B 0 B
assets/css/vendors-edit-story.css 706 B 0 B
assets/css/web-stories-block-rtl.css 3.23 kB 0 B
assets/css/web-stories-block.css 3.27 kB 0 B
assets/css/web-stories-embed-rtl.css 288 B 0 B
assets/css/web-stories-embed.css 288 B 0 B
assets/css/web-stories-list-styles-rtl.css 2.25 kB 0 B
assets/css/web-stories-list-styles.css 2.27 kB 0 B
assets/css/web-stories-theme-style-twentyeleven-rtl.css 102 B 0 B
assets/css/web-stories-theme-style-twentyeleven.css 102 B 0 B
assets/css/web-stories-theme-style-twentyfifteen-rtl.css 251 B 0 B
assets/css/web-stories-theme-style-twentyfifteen.css 251 B 0 B
assets/css/web-stories-theme-style-twentyfourteen-rtl.css 287 B 0 B
assets/css/web-stories-theme-style-twentyfourteen.css 287 B 0 B
assets/css/web-stories-theme-style-twentyseventeen-rtl.css 310 B 0 B
assets/css/web-stories-theme-style-twentyseventeen.css 310 B 0 B
assets/css/web-stories-theme-style-twentysixteen-rtl.css 239 B 0 B
assets/css/web-stories-theme-style-twentysixteen.css 239 B 0 B
assets/css/web-stories-theme-style-twentyten-rtl.css 143 B 0 B
assets/css/web-stories-theme-style-twentyten.css 143 B 0 B
assets/css/web-stories-theme-style-twentytwelve-rtl.css 265 B 0 B
assets/css/web-stories-theme-style-twentytwelve.css 265 B 0 B
assets/css/web-stories-theme-style-twentytwenty-rtl.css 86 B 0 B
assets/css/web-stories-theme-style-twentytwenty.css 86 B 0 B
assets/css/web-stories-theme-style-twentytwentyone-rtl.css 263 B 0 B
assets/css/web-stories-theme-style-twentytwentyone.css 264 B 0 B
assets/css/web-stories-widget-rtl.css 484 B 0 B
assets/css/web-stories-widget.css 484 B 0 B
assets/js/carousel-view.js 3.72 kB 0 B
assets/js/chunk-fonts-********************.js 45.4 kB 0 B
assets/js/chunk-web-stories-template-0-********************.js 6.98 kB 0 B
assets/js/chunk-web-stories-template-1-********************.js 8.54 kB 0 B
assets/js/chunk-web-stories-template-2-********************.js 7.85 kB 0 B
assets/js/chunk-web-stories-template-3-********************.js 8.64 kB 0 B
assets/js/chunk-web-stories-template-4-********************.js 9.73 kB 0 B
assets/js/chunk-web-stories-template-5-********************.js 6.06 kB 0 B
assets/js/chunk-web-stories-template-6-********************.js 8.11 kB 0 B
assets/js/chunk-web-stories-template-7-********************.js 7.85 kB 0 B
assets/js/chunk-web-stories-textset-0-********************.js 5.29 kB 0 B
assets/js/chunk-web-stories-textset-1-********************.js 6.87 kB 0 B
assets/js/chunk-web-stories-textset-2-********************.js 7.92 kB 0 B
assets/js/chunk-web-stories-textset-3-********************.js 15.4 kB 0 B
assets/js/chunk-web-stories-textset-4-********************.js 4.43 kB 0 B
assets/js/chunk-web-stories-textset-5-********************.js 5.71 kB 0 B
assets/js/chunk-web-stories-textset-6-********************.js 5.5 kB 0 B
assets/js/chunk-web-stories-textset-7-********************.js 10.4 kB 0 B
assets/js/edit-story.js 520 kB 0 B
assets/js/lightbox.js 986 B 0 B
assets/js/stories-dashboard.js 435 kB 0 B
assets/js/tinymce-button.js 3.48 kB 0 B
assets/js/vendors-chunk-ffmpeg-********************.js 5.65 kB 0 B
assets/js/vendors-edit-story-********************.js 61.5 kB 0 B
assets/js/vendors-edit-story-stories-dashboard-********************.js 244 kB 0 B
assets/js/vendors-web-animations-js-********************.js 14.6 kB 0 B
assets/js/web-stories-activation-notice.js 65.1 kB 0 B
assets/js/web-stories-block.js 568 kB 0 B
assets/js/web-stories-embed.js 492 B 0 B
assets/js/web-stories-widget.js 984 B 0 B

compressed-size-action

@spacedmonkey spacedmonkey self-assigned this May 27, 2021
@spacedmonkey spacedmonkey added the Package: E2E Tests /packages/e2e-tests label May 27, 2021
@spacedmonkey spacedmonkey changed the title Try rerun of e2e tests. E2E Tests: retry flaky tests May 27, 2021
@spacedmonkey spacedmonkey added P2 Should do soon Pod: WP & Infra Type: Infrastructure Changes impacting testing infrastructure or build tooling labels May 27, 2021
@spacedmonkey spacedmonkey requested a review from swissspidy May 27, 2021 16:27
@spacedmonkey spacedmonkey marked this pull request as ready for review May 27, 2021 16:27
@codecov
Copy link

codecov bot commented May 27, 2021

Codecov Report

Merging #7758 (d3e9bf1) into main (7669db6) will increase coverage by 1.80%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7758      +/-   ##
==========================================
+ Coverage   82.56%   84.37%   +1.80%     
==========================================
  Files        1155     1158       +3     
  Lines       17428    17449      +21     
==========================================
+ Hits        14390    14722     +332     
+ Misses       3038     2727     -311     
Flag Coverage Δ
karmatests 77.03% <ø> (+0.42%) ⬆️
unittests 65.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ponents/library/panes/media/common/mediaElement.js 83.33% <0.00%> (-3.04%) ⬇️
...s/library/panes/pageTemplates/pageTemplatesPane.js 92.30% <0.00%> (-2.57%) ⬇️
assets/src/dashboard/components/types.js 100.00% <0.00%> (ø)
...ets/src/dashboard/components/cardGridItem/types.js 100.00% <0.00%> (ø)
assets/src/dashboard/types.js 100.00% <0.00%> (ø)
...sets/src/dashboard/components/cardGallery/index.js 96.29% <0.00%> (+1.85%) ⬆️
...ts/src/dashboard/app/views/editorSettings/index.js 44.82% <0.00%> (+2.29%) ⬆️
assets/src/dashboard/utils/usePagePreviewSize.js 89.74% <0.00%> (+2.56%) ⬆️
...rc/edit-story/components/richText/fauxSelection.js 100.00% <0.00%> (+2.70%) ⬆️
.../src/dashboard/components/inlineInputForm/index.js 95.00% <0.00%> (+5.00%) ⬆️
... and 39 more

@swissspidy swissspidy merged commit c5fc642 into main May 27, 2021
@swissspidy swissspidy deleted the fix/7549 branch May 27, 2021 18:12
@@ -112,6 +112,11 @@ const pageEvents = [];
// The Jest timeout is increased because these tests are a bit slow
jest.setTimeout(PUPPETEER_TIMEOUT || 100000);

// Retry flaky tests at most 2 times in CI (off by 1).

Choose a reason for hiding this comment

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

I don't think this is correct though. I believe retryTimes(3) means it will at most run the test 4 times, 1 normal run, then 3 retries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Should do soon Package: E2E Tests /packages/e2e-tests Type: Infrastructure Changes impacting testing infrastructure or build tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E2E Tests: retry flaky tests
3 participants