You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,11 @@ See ["Caching dependencies to speed up workflows"](https://help.github.com/githu
15
15
* Updated the minimum runner version support from node 12 -> node 16.
16
16
* Fixed avoiding empty cache save when no files are available for caching.
17
17
* Fixed tar creation error while trying to create tar with path as `~/` home folder on `ubuntu-latest`.
18
-
* Fixed zstd failing on amazon linux 2.0 runners
19
-
* Fixed cache not working with github workspace directory or current directory
18
+
* Fixed zstd failing on amazon linux 2.0 runners.
19
+
* Fixed cache not working with github workspace directory or current directory.
20
20
* Fixed the download stuck problem by introducing a timeout of 1 hour for cache downloads.
21
+
* Fix zstd not working for windows on gnu tar in issues.
22
+
* Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable `SEGMENT_DOWNLOAD_TIMEOUT_MIN`. Default is 60 minutes.
21
23
22
24
Refer [here](https://github.com/actions/cache/blob/v2/README.md) for previous versions
23
25
@@ -35,6 +37,9 @@ If you are using this inside a container, a POSIX-compliant `tar` needs to be in
35
37
*`restore-keys` - An ordered list of keys to use for restoring stale cache if no cache hit occurred for key. Note
36
38
`cache-hit` returns false in this case.
37
39
40
+
#### Environment Variables
41
+
*`SEGMENT_DOWNLOAD_TIMEOUT_MIN` - Segment download timeout (in minutes, default `60`) to abort download of the segment if not completed in the defined number of minutes. [Read more](#cache-segment-restore-timeout)
42
+
38
43
### Outputs
39
44
40
45
*`cache-hit` - A boolean value to indicate an exact match was found for the key
A cache gets downloaded in multiple segments of fixed sizes (`1GB` for a `32-bit` runner and `2GB` for a `64-bit` runner). Sometimes, a segment download gets stuck which causes the workflow job to be stuck forever and fail. Version `v3.0.8` of `actions/cache` introduces a segment download timeout. The segment download timeout will allow the segment download to get aborted and hence allow the job to proceed with a cache miss.
229
+
230
+
Default value of this timeout is 60 minutes and can be customized by specifying an [environment variable](https://docs.github.com/en/actions/learn-github-actions/environment-variables) named `SEGMENT_DOWNLOAD_TIMEOUT_MINS` with timeout value in minutes.
221
231
222
232
## Contributing
223
233
We would love for you to contribute to `actions/cache`, pull requests are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
Copy file name to clipboardExpand all lines: RELEASES.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,4 +24,8 @@
24
24
- Fixed [#833](https://github.com/actions/cache/issues/833) - cache doesn't work with github workspace directory
25
25
26
26
### 3.0.7
27
-
- Fixed [#810](https://github.com/actions/cache/issues/810) - download stuck issue. A new timeout is introduced in the download process to abort the download if it gets stuck and doesn't finish within an hour.
27
+
- Fixed [#810](https://github.com/actions/cache/issues/810) - download stuck issue. A new timeout is introduced in the download process to abort the download if it gets stuck and doesn't finish within an hour.
28
+
29
+
### 3.0.8
30
+
- Fix zstd not working for windows on gnu tar in issues [#888](https://github.com/actions/cache/issues/888) and [#891](https://github.com/actions/cache/issues/891).
31
+
- Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable `SEGMENT_DOWNLOAD_TIMEOUT_MIN`. Default is 60 minutes.
0 commit comments