Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26554

Update `release-util.sh` to avoid GitBox fake 200 headers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.4.1, 3.0.0
    • Fix Version/s: 2.4.1, 3.0.0
    • Component/s: Build
    • Labels:
      None

      Description

      Unlike the previous Apache Git repository, new GitBox returns a fake HTTP 200 header instead of `404 Not Found` header. This makes release scripts out of order. This issue aims to fix it to handle the context message instead of the fake HTTP headers. This is a release blocker.

      $ curl -s --head --fail "https://gitbox.apache.org/repos/asf?p=spark.git;a=commit;h=v3.0.0"
      HTTP/1.1 200 OK
      Date: Sun, 06 Jan 2019 22:42:39 GMT
      Server: Apache/2.4.18 (Ubuntu)
      Vary: Accept-Encoding
      Access-Control-Allow-Origin: *
      Access-Control-Allow-Methods: POST, GET, OPTIONS
      Access-Control-Allow-Headers: X-PINGOTHER
      Access-Control-Max-Age: 1728000
      Content-Type: text/html; charset=utf-8
      

      BEFORE

      $ ./do-release-docker.sh -d /tmp/test -n
      Branch [branch-2.4]:
      Current branch version is 2.4.1-SNAPSHOT.
      Release [2.4.1]:
      RC # [1]:
      v2.4.1-rc1 already exists. Continue anyway [y/n]?
      

      AFTER

      $ ./do-release-docker.sh -d /tmp/test -n
      Branch [branch-2.4]:
      Current branch version is 2.4.1-SNAPSHOT.
      Release [2.4.1]:
      RC # [1]:
      This is a dry run. Please confirm the ref that will be built for testing.
      Ref [v2.4.1-rc1]:
      

        Attachments

          Activity

            People

            • Assignee:
              dongjoon Dongjoon Hyun
              Reporter:
              dongjoon Dongjoon Hyun
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: