From 8d77098dfac2fa33a9b6f41aff9ec693e3d583e0 Mon Sep 17 00:00:00 2001 From: Gabriella Gonzalez Date: Sat, 2 Sep 2023 22:54:08 -0500 Subject: [PATCH] Disable the tests that use httpbin.org (#2533) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … so that CI stops failing with various 50X errors --- .github/workflows/main.yml | 2 +- dhall/tests/Dhall/Test/Import.hs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a9ef6421a..9c1626f1f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: submodules: true - id: setup-haskell-cabal name: "Setup Haskell environment" - uses: haskell/actions/setup@v1.2.1 + uses: haskell/actions/setup@v2.4.6 with: enable-stack: true - name: "Cache" diff --git a/dhall/tests/Dhall/Test/Import.hs b/dhall/tests/Dhall/Test/Import.hs index 8c581f64f..8a6c0c6bc 100644 --- a/dhall/tests/Dhall/Test/Import.hs +++ b/dhall/tests/Dhall/Test/Import.hs @@ -54,6 +54,24 @@ getTests = do , importDirectory "success/unit/asLocation/RemoteChain2A.dhall" , importDirectory "success/unit/asLocation/RemoteChain3A.dhall" , importDirectory "success/unit/asLocation/RemoteChainMissingA.dhall" + + -- Skip all tests that reference httpbin.org to avoid clobbering + -- their servers. These should eventually be replaced by tests + -- that depend on an equivalent endpoint on test.dhall-lang.org + -- instead of httpbin.org. + , importDirectory "failure/customHeadersUsingBoundVariable.dhall" + , importDirectory "failure/originHeadersFromRemote.dhall" + , importDirectory "failure/originHeadersFromRemoteENV.dhall" + , importDirectory "success/customHeadersA.dhall" + , importDirectory "success/noHeaderForwardingA.dhall" + , importDirectory "success/success/originHeadersA.dhall" + , importDirectory "success/originHeadersENV.dhall" + , importDirectory "success/originHeadersImportA.dhall" + , importDirectory "success/originHeadersImportENV.dhall" + , importDirectory "success/originHeadersImportFromEnvA.dhall" + , importDirectory "success/originHeadersImportFromEnvENV.dhall" + , importDirectory "success/originHeadersOverrideA.dhall" + , importDirectory "success/originHeadersOverrideENV.dhall" ] successTests <- Test.Util.discover (Turtle.chars <* "A.dhall") successTest (do