Skip to content

fix(e2e): Fix various issues with concurrent E2E and Canary tests #7805

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

Merged
merged 17 commits into from
Apr 11, 2023

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Apr 11, 2023

Fixes #7806

Seems like canary tests are actually broken for the canary version of Next.js (https://github.com/getsentry/sentry-javascript/actions/runs/4669052732/jobs/8266973383#step:7:6156) but this at least PR fixes the issues with our CI.

There are multiple layers that this PR fixes:

  • Port clashes: There was a bug where multiple tested versions were assigned the same port. We fix this by passing a BASE_PORT to all test, along with a PORT_MODULO and a PORT_GAP. By doing BASE_PORT + PORT_MODULO + PORT_GAP * x where x equals an arbitrary number we can avoid port clashes along the x axis across parallel tests.
  • Concurrent yarn installs: Concurrent yarn install calls will write to the same cache and corrupt it. We fix this by creating individual yarn cache folders for each build command and purging them after the tests are done.
  • The runners were overwhelmed with concurrent builds and playwright runs going and just decided to time out randomly. We're removing the concurrent running of builds and tests for now but instead will shard the tests.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 11, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.94 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 65.44 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.49 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified) 57.88 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.1 KB (0%)
@sentry/browser - Webpack (minified) 68.84 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.12 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 48.9 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.5 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 26.73 KB (-0.01% 🔽)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 44.89 KB (-0.01% 🔽)
@sentry/replay - Webpack (gzipped + minified) 38.85 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 63.78 KB (0%)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 56.82 KB (-0.01% 🔽)

@lforst lforst force-pushed the fix-async-canary-tests branch from 36386f8 to 8641c99 Compare April 11, 2023 10:21
@lforst lforst force-pushed the fix-async-canary-tests branch from aa354cf to e093d0f Compare April 11, 2023 11:01
@lforst lforst marked this pull request as ready for review April 11, 2023 15:34
@lforst lforst changed the title fix(e2e): Fix yarn installs clashing in canary tests fix(e2e): Fix the darn E2E tests again Apr 11, 2023
@@ -20,7 +20,7 @@ jobs:
job_canary_test:
name: Canary Tests
runs-on: ubuntu-20.04
timeout-minutes: 30
timeout-minutes: 60
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests are friggin slow for some reason

@lforst lforst changed the title fix(e2e): Fix the darn E2E tests again fix(e2e): Fix various issues with concurrent E2E and Canary tests Apr 11, 2023
@lforst lforst merged commit 84d007e into develop Apr 11, 2023
@lforst lforst deleted the fix-async-canary-tests branch April 11, 2023 15:56
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.

Broken canary tests
2 participants