Skip to content

Update README to call out for version of cache - #804

Merged
Phantsure merged 2 commits into
mainfrom
Phantsure-patch-1
May 26, 2022
Merged

Phantsure merged 2 commits into
mainfrom
Phantsure-patch-1

Conversation

@Phantsure

@Phantsure Phantsure commented May 20, 2022 •

Copy link
Copy Markdown
Contributor

Add details about versions of a cache to README

Context: Some issue were created regarding different caches being saved with different runner OS or different paths with same cache key. This PR addresses those issues

@bishal-pdMSFT bishal-pdMSFT left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does not have description. And the issue is not linked.

Comment thread README.md Outdated


## Cache Version
Cache version is unique for a combination of compression tools(Gzip, Zstd, etc) and the path of cache, which may differ according to runner OS as well. If two caches have different versions, then they are identified as unique cache entries.

@bishal-pdMSFT bishal-pdMSFT May 20, 2022 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
Cache version is unique for a combination of compression tools(Gzip, Zstd, etc) and the path of cache, which may differ according to runner OS as well. If two caches have different versions, then they are identified as unique cache entries.
Cache version is unique for a combination of compression tool used for compression cache (Gzip, Zstd etc based on runner OS) and the path of directories being cached. If two caches have different versions, they are identified as unique cache entries. This also means that a cache created on `windows-latest` runner can't be restored on `ubuntu-latest` as cache `Version`s are different.

Comment thread README.md Outdated
## Cache Version
Cache version is unique for a combination of compression tools(Gzip, Zstd, etc) and the path of cache, which may differ according to runner OS as well. If two caches have different versions, then they are identified as unique cache entries.

Example: Below example will create 3 unique caches with same keys.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
Example: Below example will create 3 unique caches with same keys.
Example: Below example will create 3 unique caches with same keys. Ubuntu and windows runners will use different compression technique and hence create two different caches. And `build-linux` will create two different caches as the `paths` are different.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hello

@Phantsure
Phantsure marked this pull request as ready for review May 24, 2022 06:59
@Phantsure
Phantsure requested a review from a team as a code owner May 24, 2022 06:59
@Phantsure
Phantsure requested a review from bishal-pdMSFT May 25, 2022 05:39
@Phantsure
Phantsure deleted the Phantsure-patch-1 branch December 8, 2022 09:53
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.

Restoring cache on Windows created on Linux silently fails if GNU tar is not on Windows Path

3 participants