File tree Expand file tree Collapse file tree 5 files changed +40
-2
lines changed Expand file tree Collapse file tree 5 files changed +40
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,23 @@ GCC=4.8.5
1717
1818curl https://ftp.gnu.org/gnu/gcc/gcc-$GCC /gcc-$GCC .tar.bz2 | tar xjf -
1919cd gcc-$GCC
20+
21+ # FIXME(#49246): Remove the `sed` below.
22+ #
23+ # On 2018 March 21st, two Travis builders' cache for Docker are suddenly invalidated. Normally this
24+ # is fine, because we just need to rebuild the Docker image. However, it reveals a network issue:
25+ # downloading from `ftp://gcc.gnu.org/` from Travis (using passive mode) often leads to "Connection
26+ # timed out" error, and even when the download completed, the file is usually corrupted. This causes
27+ # nothing to be landed that day.
28+ #
29+ # We observed that the `gcc-4.8.5.tar.bz2` above can be downloaded successfully, so as a stability
30+ # improvement we try to download from the HTTPS mirror instead. Turns out this uncovered the third
31+ # bug: the host `gcc.gnu.org` and `cygwin.com` share the same IP, and the TLS certificate of the
32+ # latter host is presented to `wget`! Therefore, we choose to download from the insecure HTTP server
33+ # instead here.
34+ #
35+ sed -i' ' ' s|ftp://gcc\.gnu\.org/|http://gcc.gnu.org/|g' ./contrib/download_prerequisites
36+
2037./contrib/download_prerequisites
2138mkdir ../gcc-build
2239cd ../gcc-build
Original file line number Diff line number Diff line change 1212set -ex
1313source shared.sh
1414
15- curl https://www.kernel.org/pub/software/scm/git/git-2.10.0.tar.gz | tar xzf -
15+ curl -L https://www.kernel.org/pub/software/scm/git/git-2.10.0.tar.gz | tar xzf -
1616
1717cd git-2.10.0
1818make configure
Original file line number Diff line number Diff line change @@ -17,6 +17,23 @@ GCC=4.8.5
1717
1818curl https://ftp.gnu.org/gnu/gcc/gcc-$GCC /gcc-$GCC .tar.bz2 | tar xjf -
1919cd gcc-$GCC
20+
21+ # FIXME(#49246): Remove the `sed` below.
22+ #
23+ # On 2018 March 21st, two Travis builders' cache for Docker are suddenly invalidated. Normally this
24+ # is fine, because we just need to rebuild the Docker image. However, it reveals a network issue:
25+ # downloading from `ftp://gcc.gnu.org/` from Travis (using passive mode) often leads to "Connection
26+ # timed out" error, and even when the download completed, the file is usually corrupted. This causes
27+ # nothing to be landed that day.
28+ #
29+ # We observed that the `gcc-4.8.5.tar.bz2` above can be downloaded successfully, so as a stability
30+ # improvement we try to download from the HTTPS mirror instead. Turns out this uncovered the third
31+ # bug: the host `gcc.gnu.org` and `cygwin.com` share the same IP, and the TLS certificate of the
32+ # latter host is presented to `wget`! Therefore, we choose to download from the insecure HTTP server
33+ # instead here.
34+ #
35+ sed -i' ' ' s|ftp://gcc\.gnu\.org/|http://gcc.gnu.org/|g' ./contrib/download_prerequisites
36+
2037./contrib/download_prerequisites
2138mkdir ../gcc-build
2239cd ../gcc-build
Original file line number Diff line number Diff line change 1212set -ex
1313source shared.sh
1414
15- curl https://www.kernel.org/pub/software/scm/git/git-2.10.0.tar.gz | tar xzf -
15+ curl -L https://www.kernel.org/pub/software/scm/git/git-2.10.0.tar.gz | tar xzf -
1616
1717cd git-2.10.0
1818make configure
Original file line number Diff line number Diff line change 105105travis_fold end log-system-info
106106
107107if [ ! -z " $SCRIPT " ]; then
108+ # FIXME(#49246): Re-enable these tools after #49246 has been merged and thus fixing the cache.
109+ if [ " $DEPLOY_ALT " = 1 ]; then
110+ SCRIPT=" $SCRIPT " --exclude src/tools/rls --exclude src/tools/rustfmt --exclude src/tools/clippy
111+ fi
108112 sh -x -c " $SCRIPT "
109113else
110114 do_make () {
You can’t perform that action at this time.
0 commit comments