Skip to content

chore: make unit tests cacheable, fix package graph #7108

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 8 commits into from
Feb 20, 2023

Conversation

JamesHenry
Copy link
Contributor

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

@JamesHenry JamesHenry mentioned this pull request Feb 9, 2023
@@ -22,6 +22,7 @@
"tslib": "^1.9.3"
},
"devDependencies": {
"@sentry/browser": "7.36.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This relationship between these packages was missing and needed to be added to ensure task pipelines know what to do and in what order

@@ -25,6 +25,7 @@
"tslib": "^1.9.3"
},
"devDependencies": {
"@sentry/tracing": "7.36.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This relationship between these packages was missing and needed to be added to ensure task pipelines know what to do and in what order

@JamesHenry
Copy link
Contributor Author

JamesHenry commented Feb 9, 2023

@mydea I think this is just flakiness in the browser based integration testing, hopefully a re-run will resolve it. The relevant bits that my PR changed have passed

@JamesHenry JamesHenry marked this pull request as ready for review February 9, 2023 11:17
@JamesHenry
Copy link
Contributor Author

Thanks! Green now

nx.json Outdated
@@ -7,7 +7,9 @@
"build:bundle",
"build:transpile",
"build:types",
"lint:eslint"
"lint:eslint",
"test",
Copy link
Member

Choose a reason for hiding this comment

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

Let's maybe only start with caching test:unit, as the integration tests (for example) also make sure stuff keeps working with new versions of e.g. browsers, which is not really deterministic in this way.

WDYT @AbhiPrasad / @Lms24 / @lforst ?

Copy link
Member

Choose a reason for hiding this comment

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

yes that makes sense to me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted, I'll leave this one to you to revisit :)

Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

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

Versions need updating to current version, then this is good to go - thanks a lot!

@mydea mydea merged commit b2e866a into getsentry:develop Feb 20, 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.

3 participants