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

Cache bundle downloads #14

Merged
merged 4 commits into from
Jul 27, 2020
Merged

Cache bundle downloads #14

merged 4 commits into from
Jul 27, 2020

Conversation

gaffneyc
Copy link
Owner

@gaffneyc gaffneyc commented May 8, 2020

GitHub's releases service recently had an issue where downloads were failing. This attempts to fix two main issues: resilience for deploys and improved error messages.

Using Heroku's cache we should only need to download each version once. This will allow deploys should GitHub have issues in the future.

Before this change, if there was an error downloading the bundle then the buildpack would fail with an error about bzip file formats. This now checks the http status code and prints a more useful error should it fail.

Fixes #13

gaffneyc added 3 commits May 7, 2020 21:46
Continued support for the buildpack depends on Dead Man's Snitch making
it possible for me to spend my time working on it. If you're ever
looking for a way to say thanks for this little buildpack, give Dead
Man's Snitch a try and / or tell other about it.

:heart:
Goal is to quickly get into a docker container so I can test out changes
to the buildpack. I've added some basic documentation because I always
have to figure these commands out from scratch.
GitHub's releases service recently had an issue where downloads were
failing. This attempts to fix two main issues: resilience for deploys
and improved error messages.

Using Heroku's cache we should only need to download each version once.
This will allow deploys should GitHub have issues in the future.

Before this change, if there was an error downloading the bundle then
the buildpack would fail with an error about bzip file formats. This now
checks the http status code and prints a more useful error should it
fail.

Fixes #13
@gaffneyc
Copy link
Owner Author

After some initial testing I'm not seeing it use the cache. Will need to do some debugging to figure out what's going on there.

This was causing the buildpack not to use the cached version and instead
it would always download the latest binary.
@gaffneyc gaffneyc merged commit cb4548b into master Jul 27, 2020
@gaffneyc gaffneyc deleted the download-safety branch July 27, 2020 14:58
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.

Buildpack suddenly failing our builds
1 participant