Skip to content

Circle CI: do not share .git cache across different operating systems#34885

Closed
hramos wants to merge 1 commit into
facebook:mainfrom
hramos:export-D40150781
Closed

Circle CI: do not share .git cache across different operating systems#34885
hramos wants to merge 1 commit into
facebook:mainfrom
hramos:export-D40150781

Conversation

@hramos
Copy link
Copy Markdown
Contributor

@hramos hramos commented Oct 6, 2022

Summary:
We use workflows extensively in Circle CI, so caching a git checkout should help speed up tests when downstream jobs need to checkout the repository. In the current configuration, the Windows job is most likely to run and write to the .git cache first, which results in permission issues when the .git cache is loaded onto macOS or linux hosts.

By splitting the cache by architecture, we may lose on some reusability across jobs with distinct architectures, but it ensures we avoid cross-platform permission issues.

Changelog: [Internal]

Differential Revision: D40150781

Summary:
We use workflows extensively in Circle CI, so caching a git checkout should help speed up tests when downstream jobs need to checkout the repository. In the current configuration, the Windows job is most likely to run and write to the .git cache first, which results in permission issues when the .git cache is loaded onto macOS or linux hosts.

By splitting the cache by architecture, we may lose on some reusability across jobs with distinct architectures, but it ensures we avoid cross-platform permission issues.

Changelog: [Internal]

Differential Revision: D40150781

fbshipit-source-id: 02f22f04cee854ae319f3c67028c714385ccd06b
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Oct 6, 2022
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D40150781

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,741,312 +0
android hermes armeabi-v7a 7,143,663 +0
android hermes x86 8,051,980 +0
android hermes x86_64 8,023,548 +0
android jsc arm64-v8a 9,608,592 +0
android jsc armeabi-v7a 8,373,913 +0
android jsc x86 9,556,067 +0
android jsc x86_64 10,148,413 +0

Base commit: 7c36d0b
Branch: main

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 7c36d0b
Branch: main

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @hramos in af4e061.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants