diff --git a/.github/tour.sh b/.github/tour.sh index 8256b829..b31e775a 100755 --- a/.github/tour.sh +++ b/.github/tour.sh @@ -59,12 +59,12 @@ function url_case() { echo "test case description =${4}" ll="${5-note}" echo "log level = ${ll}" - if timeout 420 ./tester_build/clitester "${ll}" "${1}://${2}" + if timeout 400 ./tester_build/clitester "${ll}" "${1}://${2}" then echo clitester exited with successful status else echo "Directly reported error code from clitester run - usually means timeout killed it. " "${@}" - exit 7 + exit 6 fi n=`sed 's,[^A-Za-z0-9\.],_,g' <<< ${2}` if [ ! -f "_${1}_${n}" ] @@ -95,13 +95,28 @@ function url_case() { fi } +unstable_case() { + if ! timeout 400 ./tester_build/clitester "ipns://${1}" + then + echo "clitester (or timeout) exited with failure code for ipns://${1}" + exit 5 + fi + n=`sed 's,[^A-Za-z0-9\.],_,g' <<< ${1}` + if ! grep "${2}" "_ipns_${n}" + then + echo "Was not able to find '${2}' in output for ipns://${1}" + grep -n . "_ipns_${n}" + exit 4 + fi +} + url_case ipfs bafybeifx4tcpzbw7tzhwfbzsofgoana6cy7xbt64e3u6itve44c5zelpmm/symlinks/sub/dotdot.txt cfe9b69523140b5b5e63874a8e4997e4 'A symbolic link whose target includes ..' url_case ipfs bafkqacdjmrsw45djor4q ff483d1ff591898a9942916050d2ca3f 'Identity (inlined) CID' url_case ipfs baguqeerah2nswg7r2pvlpbnsz5y4c4pr4wsgbzixdl632w5qxvedqzryf54q 7750fd7b0928f007e1d181763c0dbdb5 'A DAG-JSON document. The block itself md5s to b92348005af4ae4795e6f312844fb359, but the response we are hashing here is an HTML preview page. This does mean this test breaks if you make the preview less ugly.' url_case ipns en.wikipedia-on-ipfs.org/I/HFE_Too_Slow_1.JPG.webp 09c09b2654e8529740b5a7625e39e0c8 'An image fetched through DNSLink and HAMT sharded directories.' note echo 'Skip as it takes too long.' url_case ipfs bafybeieb33pqideyl5ncd33kho622thym5rqv6sujrmelcuhkjlf2hdpu4/Big%20Buck%20Bunny.webm 06d51286e56badb4455594ebed6daba2 'A large UnixFS file - several hundred blocks.' error url_case ipfs bafybeihmq5rnk5i4gwljixz64dns3pxt7ep2i3x7eylyfq7mkzgh4gtfh4/relative_link.txt cfe9b69523140b5b5e63874a8e4997e4 'A relative symlink resolves successfully to the file pointed to.' -url_case ipns planetable.eth/B5B2F107-A455-4B5A-AA14-B60EB7179ABF 6671d3bce06f61f5568632ae004d7dde 'DNSLink fallback to gateways to access non-DNS resolvers, in this case ENS' +unstable_case planetable.eth/B5B2F107-A455-4B5A-AA14-B60EB7179ABF 'Can I Use Planet While Offline?' echo Stop test server. killall python3 2>/dev/null || true