Skip to content

test(e2e): Add framework for canary testing #5935

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 13 commits into from
Oct 13, 2022
Merged

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Oct 12, 2022

Resolves #5934

This PR adds all necessary pieces for us to do canary tests:

  • versions and canaryVersions fields in E2E test recipes that can provide dependency overrides (to test different verions for packages). canaryVersions tests are run when the CANARY_E2E_TEST is set.
  • Add an additional workflow for canary tests that runs nightly and creates an issue on failure.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 12, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.48 KB (+0.01% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 60.28 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.1 KB (+0.02% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 53.2 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 19.82 KB (0%)
@sentry/browser - Webpack (minified) 64.54 KB (0%)
@sentry/react - Webpack (gzipped + minified) 19.85 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 45.56 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.96 KB (0%)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.39 KB (0%)

@lforst lforst marked this pull request as ready for review October 13, 2022 13:13
@@ -7,5 +7,13 @@
"testName": "Playwright tests",
"testCommand": "yarn test"
}
],
"canaryVersions": [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thought about testing previous versions of react here but it was a PITA to get working with react router so I just dropped it

Copy link
Member

Choose a reason for hiding this comment

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

react router

shaking-fist-dark-mode

React is super backwards compatible so I wouldn't worry too much about it.

@lforst lforst requested review from AbhiPrasad and Lms24 October 13, 2022 13:14
@lforst lforst added this to the E2E Tests milestone Oct 13, 2022
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

Great work man

@@ -0,0 +1,5 @@
---
title: Canary tests failed
labels: 'Status: Untriaged'
Copy link
Member

Choose a reason for hiding this comment

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

Can we add the tests label here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good input 3ba4f38

@@ -7,5 +7,13 @@
"testName": "Playwright tests",
"testCommand": "yarn test"
}
],
"canaryVersions": [
Copy link
Member

Choose a reason for hiding this comment

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

react router

shaking-fist-dark-mode

React is super backwards compatible so I wouldn't worry too much about it.

@lforst lforst enabled auto-merge (squash) October 13, 2022 13:42
@lforst lforst merged commit d64550e into master Oct 13, 2022
@lforst lforst deleted the lforst-canary-tests branch October 13, 2022 13:59
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.

Test Canary Releases
2 participants