fix(cabal-build-tests): skip broken savannah config refresh - #3636
fix(cabal-build-tests): skip broken savannah config refresh#3636OlufemiAdeOlusile wants to merge 1 commit into
Conversation
git.savannah.gnu.org is returning 502s, which was corrupting config.guess/config.sub during the libsodium build and breaking the cabal build test on both Ubuntu and Fedora. Skip the refresh and use the vendored files instead. Also fixed a stale doc link. Verified both distros build cardano-node/cardano-cli 11.1.0 cleanly.
04093de to
7337c48
Compare
|
Ran this locally since there's no CI job for cabal_build_tests. Logs below are from the actual runs, not summarized after the fact. Before the fix, same failure on both distros, both against cardano-node 11.1.0: Ubuntu: Fedora: After the fix, both distros: Both verify steps check the installed binary's These runs were against the fix before the later squash/comment cleanup ( |
|
Full unedited logs (not excerpts) for all four runs: https://gist.github.com/OlufemiAdeOlusile/52b939096246acf24615678e3bf88605
How the pass/fail is determined, since there's no CI wrapper here: install-node.sh's own last two checks compare |
|
Added a plain-language README to the gist (same link as above) explaining why it failed and what the fix does, alongside the raw logs: https://gist.github.com/OlufemiAdeOlusile/52b939096246acf24615678e3bf88605#file-readme-md |
|
Update: git.savannah.gnu.org is back up now, HTTP 200. Reran the original unfixed script, no changes, on both distros against 11.1.0. Both now pass on their own, no fix needed. This confirms the root cause. Same script, same target commit, fails on both distros when Savannah is down, passes on both distros when it is up. Nothing else changed between the two test rounds. So this fix is not required to unblock the release right now. It is still worth keeping. It removes a dependency on an external site that has no error checking, on a code path that adds nothing for a standard Ubuntu or Fedora x86_64 build. If Savannah has another outage later, this branch will not care. |
The cabal build test failed on Ubuntu and Fedora. It failed at the libsodium step.
git.savannah.gnu.org is down right now. It returns error 502. libsodium's autogen.sh downloads two files from there. It does not check if the download worked. The bad response corrupted the files. That broke the build.
Fix: skip that download. Use the files already on disk instead. Also fixed a stale doc link in the script's header comment.
Note on scope: the public build docs do not use this flag. A person following the docs by hand today hits the same failure we hit. This PR only fixes our own test script. It does not fix the docs, and it does not fix libsodium's autogen.sh, since neither is our codebase.
Savannah may come back online later. Keep the fix anyway. It only skips a repeat download of two files. autoreconf and libtoolize already create those files correctly for Ubuntu and Fedora builds.
Reran the build on both distros against cardano-node 11.1.0. Both builds passed. Both produced working cardano-node and cardano-cli binaries. Run logs and a full explanation are in the comments below. There is no CI job for this test.