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

Add workspaces hash to yarn cache key #20154

Merged
merged 13 commits into from Nov 3, 2020

Conversation

@rickhanlonii
Copy link
Member

@rickhanlonii rickhanlonii commented Nov 3, 2020

This should hopefully fix the tests on the main branch.

Copy link
Contributor

@bvaughn bvaughn left a comment

Would we also hit this caching problem on the same branch if we added new deps?

@rickhanlonii
Copy link
Member Author

@rickhanlonii rickhanlonii commented Nov 3, 2020

If we add new deps, the yarn.lock checksum should change and break the cache

@codesandbox
Copy link

@codesandbox codesandbox bot commented Nov 3, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2d4ebb5:

Sandbox Source
React Configuration
@rickhanlonii
Copy link
Member Author

@rickhanlonii rickhanlonii commented Nov 3, 2020

I believe that the issue here is that we changed the workspace, which requires a yarn install, but we didn't change the yarn.lock so when the PR was merged we used the cache node_modules and didn't run yarn.

If that's the case, then this PR won't solve the issue. Looking into a real fix now.

@sizebot
Copy link

@sizebot sizebot commented Nov 3, 2020

Warnings
⚠️ Base commit is broken: 2af07d3

Size changes (experimental)

Generated by 🚫 dangerJS against 2d4ebb5

@sizebot
Copy link

@sizebot sizebot commented Nov 3, 2020

Warnings
⚠️ Base commit is broken: 2af07d3

Size changes (stable)

Generated by 🚫 dangerJS against 2d4ebb5

rickhanlonii added 12 commits Nov 3, 2020
idk
@rickhanlonii rickhanlonii requested a review from bvaughn Nov 3, 2020
@bvaughn
bvaughn approved these changes Nov 3, 2020
Copy link
Contributor

@bvaughn bvaughn left a comment

Did not read.

@rickhanlonii rickhanlonii changed the title Add branch to yarn cache key Add workspaces hash to yarn cache key Nov 3, 2020
@rickhanlonii rickhanlonii merged commit 6b28eb6 into facebook:master Nov 3, 2020
34 checks passed
34 checks passed
Facebook CLA Check Contributor License Agreement is valid!
Details
ci/circleci: RELEASE_CHANNEL_stable_yarn_build Your tests passed on CircleCI!
Details
ci/circleci: RELEASE_CHANNEL_stable_yarn_lint_build Your tests passed on CircleCI!
Details
ci/circleci: RELEASE_CHANNEL_stable_yarn_test_dom_fixtures Your tests passed on CircleCI!
Details
ci/circleci: build_devtools_and_process_artifacts Your tests passed on CircleCI!
Details
ci/circleci: build_devtools_scheduling_profiler Your tests passed on CircleCI!
Details
ci/circleci: process_artifacts Your tests passed on CircleCI!
Details
ci/circleci: process_artifacts_experimental Your tests passed on CircleCI!
Details
ci/circleci: setup Your tests passed on CircleCI!
Details
ci/circleci: sizebot_experimental Your tests passed on CircleCI!
Details
ci/circleci: sizebot_stable Your tests passed on CircleCI!
Details
ci/circleci: yarn_build Your tests passed on CircleCI!
Details
ci/circleci: yarn_flow Your tests passed on CircleCI!
Details
ci/circleci: yarn_lint Your tests passed on CircleCI!
Details
ci/circleci: yarn_lint_build Your tests passed on CircleCI!
Details
ci/circleci: yarn_test Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-classic Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-classic_prod Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-classic_prod_variant Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-classic_variant Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-stable Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-stable_build Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-stable_build_prod Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-stable_persistent Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-stable_prod Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-www Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-www_prod Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-www_prod_variant Your tests passed on CircleCI!
Details
ci/circleci: yarn_test-www_variant Your tests passed on CircleCI!
Details
ci/circleci: yarn_test_build Your tests passed on CircleCI!
Details
ci/circleci: yarn_test_build_devtools Your tests passed on CircleCI!
Details
ci/circleci: yarn_test_build_prod Your tests passed on CircleCI!
Details
ci/circleci: yarn_test_prod Your tests passed on CircleCI!
Details
ci/codesandbox Building packages succeeded.
Details
@rickhanlonii rickhanlonii deleted the rickhanlonii:rh-fix-tests branch Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.