Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11657

build-all-flag-combinations.sh should tolerate git-reset failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.2.0
    • Infrastructure
    • None
    • ghx-label-2

    Description

      When building all options from a tarball using bin/jenkins/build-all-flag-combinations.sh, the build will finally failed by this:

      fatal: Not a git repository (or any of the parent directories): .git
      ERROR in ./bin/jenkins/build-all-flag-combinations.sh at line 130: git reset --hard HEAD
      Generated: /home/ubuntu/apache-impala-4.1.1/logs/extra_junit_xml_logs/generate_junitxml.buildall.build-all-flag-combinations.20221013_02_26_28.xml
      ./bin/jenkins/build-all-flag-combinations.sh: Cleaning up temporary directory 

      The corresponding code snipper:

        # Reset the files changed by mvn versions:set
        git reset --hard HEAD

      https://github.com/apache/impala/blob/4.1.1-rc2/bin/jenkins/build-all-flag-combinations.sh#L130

      The failure of git-reset should be ignored. CC joemcdonnell 

      Attachments

        Issue Links

          Activity

            People

              stigahuang Quanlong Huang
              stigahuang Quanlong Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: