Skip to content

Comments

Cache D installer download on SemaphoreCI#7685

Closed
wilzbach wants to merge 1 commit intodlang:masterfrom
wilzbach:semaphore-cache
Closed

Cache D installer download on SemaphoreCI#7685
wilzbach wants to merge 1 commit intodlang:masterfrom
wilzbach:semaphore-cache

Conversation

@wilzbach
Copy link
Contributor

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @wilzbach!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

@ibuclaw
Copy link
Member

ibuclaw commented Jan 12, 2018

Hmm, I'd consider it safe to cache the installation script and tarballs, and check for their existence before downloading. I wouldn't be so sure about extracted files though.

Couldn't say I know 100% how their cache works, but assume that any file could be removed at any point in time.

@wilzbach wilzbach closed this Jan 13, 2018
@wilzbach wilzbach reopened this Jan 13, 2018
@wilzbach
Copy link
Contributor Author

Hmm, I still see this failure very often for the gdc builds:

++ CURL_USER_AGENT='DMD-CI curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3'
++ bash install.sh gdc --activate
curl: (28) Operation too slow. Less than 1024 bytes/sec transferred the last 30 seconds
curl: (28) Operation too slow. Less than 1024 bytes/sec transferred the last 30 seconds
curl: (28) Operation too slow. Less than 1024 bytes/sec transferred the last 30 seconds
curl: (28) Operation too slow. Less than 1024 bytes/sec transferred the last 30 seconds
curl: (28) Operation too slow. Less than 1024 bytes/sec transferred the last 30 seconds
Failed to download 'http://code.dlang.org/download/LATEST'

Fast-failing is activated, hence the last build fails too.

Note that since dlang/installer#218, we don't download dub automatically, but use the bundled version if it's provided (DMD + LDC do).
Well, Martin wasn't a fan of dlang/installer#273, but we could do sth. similar and simply fetch dub 1.6.0 from GitHub for gdc builds.

@wilzbach
Copy link
Contributor Author

Downloading the install script is quite reliable with our four mirrors.
As we don't even need the dub binary, I think #7692 is the best way to move forward.

@wilzbach wilzbach closed this Jan 13, 2018
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.

3 participants