GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add option for concurrent cache downloads with timeout by chkimes · Pull Request #1484 · actions/toolkit

Conversation

@chkimes

@chkimes chkimes commented Aug 4, 2023

Copy link
Copy Markdown
Contributor

This PR introduces a new default option for download from the Actions Cache. The new option uses the Actions HTTP Client with concurrent downloads from Blob storage, similar to how the Azure SDK works, except this includes much more granular control over timing out downloads during the initial response and while consuming the full response stream. This should once and for all address the issues seen in actions/cache#810.

I have performed extensive testing on the new downloader and comparing to the existing downloader. Here's a week's worth of 99th percentile data showing that the old method is significantly more impacted by Azure Blob issues:

image

Due to a few more connection caching optimizations I made, we can also see by putting percentiles on the x-axis that total execution time is always lower in similar test scenarios:

image

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rcannood, styfle, and FrancisRussell reacted with hooray emoji
All reactions
  • 🎉 3 reactions
@chkimes
Add option for concurrent cache downloads with timeout
3f05d8a
@chkimes
chkimes requested a review from a team as a code owner August 4, 2023 20:38
@chkimes
Add release notes
cc36b6b
vmjoseph
vmjoseph suggested changes Aug 4, 2023
View reviewed changes
Comment thread packages/cache/src/internal/downloadUtils.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/cache/src/internal/downloadUtils.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@chkimes
Fix lint
6edd548
@chkimes
chkimes requested a review from a team as a code owner August 4, 2023 21:17
@chkimes
chkimes requested a review from vmjoseph August 7, 2023 14:17
@cwille97

cwille97 commented Aug 7, 2023

Copy link
Copy Markdown

@mattiaerre @yacaovsnc This would likely help alleviate a significant amount of failures related to that known Azure Blob issue we discussed.

yacaovsnc reacted with thumbs up emoji yacaovsnc reacted with rocket emoji
All reactions
  • 👍 1 reaction
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cwille97
cwille97 approved these changes Aug 7, 2023
View reviewed changes
kgrzebien
kgrzebien approved these changes Aug 7, 2023
View reviewed changes

@kgrzebien kgrzebien left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rcannood reacted with hooray emoji
All reactions
  • 🎉 1 reaction
vmjoseph
vmjoseph approved these changes Aug 7, 2023
View reviewed changes
@vmjoseph
vmjoseph merged commit f74ff15 into actions:main Aug 7, 2023
This was referenced Aug 7, 2023
Consume latest toolkit and fix dangling promise bug actions/cache#1217
Merged
Action can wait for at least 27 minutes when no progress is being made on the download actions/cache#810
Closed
@bethanyj28 bethanyj28 mentioned this pull request Sep 6, 2023
Bump action version to 3.3.2 actions/cache#1236
Merged
4 of 10 tasks
@seongwon-privatenote seongwon-privatenote mentioned this pull request Sep 13, 2023
Upgrade @actions/cache version to 3.2.2 actions/setup-node#853
Closed
2 tasks
@adityamaru

adityamaru commented May 16, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Hey @chkimes, this is a great patch! We recently forked the actions cache to try and get it working against our minio instance and initially had hand-rolled our own download logic, but then decided what you have here is much more robust. We have seen one instance where a cache restore hangs after making some progress using the method in this patch but have not been able to reproduce it ever since. Considering each segment has a timeout of 30s we're kinda perplexed how a hang is even possible. Is there any chance you can share how you tested this patch? We're unsure what the best way to setup a testing hook for this method is and wanted to see if you had some ideas.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@placintaalexandru placintaalexandru mentioned this pull request Jun 15, 2024
[Snyk] Upgrade @actions/cache from 3.2.2 to 3.2.4 crusty-pie/clippy#81
Merged
@vAHiD55555 vAHiD55555 mentioned this pull request Jun 19, 2024
[Snyk] Upgrade @actions/cache from 3.2.1 to 3.2.4 vAHiD55555/setup-go#2
Open
This was referenced Jul 20, 2024
[Snyk] Upgrade @actions/cache from 3.2.2 to 3.2.4 Elenore23/stale#2
Open
[Snyk] Upgrade @actions/cache from 3.2.2 to 3.2.4 Elenore23/codeql-action#3
Open
@Bbjj88h Bbjj88h mentioned this pull request Aug 21, 2024
[Snyk] Upgrade @actions/cache from 3.2.2 to 3.2.4 Bbjj88h/setup-node#2
Open
This was referenced Sep 8, 2024
[Snyk] Upgrade: , Bbjj88h/setup-node#5
Open
[Snyk] Upgrade @actions/cache from 3.2.2 to 3.2.4 Bbjj88h/setup-node#6
Merged
@andreas-aman andreas-aman mentioned this pull request Sep 18, 2024
[Snyk] Upgrade: , , , esbuild vk-gh-actions-forks/setup-bun#4
Open
Derrick-MUGISHA pushed a commit to Derrick-MUGISHA/toolkit that referenced this pull request Oct 12, 2026
@chkimes
Add option for concurrent cache downloads with timeout (actions#1484)
3a04a1d
* Add option for concurrent cache downloads with timeout

* Add release notes

* Fix lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

3 more reviewers
@kgrzebien kgrzebien kgrzebien approved these changes
@vmjoseph vmjoseph vmjoseph approved these changes
@cwille97 cwille97 cwille97 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@chkimes @cwille97 @adityamaru @kgrzebien @vmjoseph
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.