You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ad...@apache.org on 2022/12/17 08:55:05 UTC

[doris] branch master updated: [chore](github) BE UT workflows support branch checks (#15146)

This is an automated email from the ASF dual-hosted git repository.

adonisling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 56cd1faeaf [chore](github) BE UT workflows support branch checks (#15146)
56cd1faeaf is described below

commit 56cd1faeafeba56ca8de950b9afad637ef4cd32c
Author: Adonis Ling <ad...@gmail.com>
AuthorDate: Sat Dec 17 16:54:58 2022 +0800

    [chore](github) BE UT workflows support branch checks (#15146)
    
    Apache Doris made the branch branch-1.2-lts protected. As a result, all pull requests for this branch should be checked before merging it.
    
    However, the BE UT workflows doesn't support branch checks and they fail to check the pull requests for the branch branch-1.2-lts. The reason is that they download the wrong pre-built third-party libraries when they check the pull requests for branch-1.2-lts.
---
 .github/workflows/be-ut-clang.yml | 10 ++++++++--
 .github/workflows/be-ut-mac.yml   | 10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/be-ut-clang.yml b/.github/workflows/be-ut-clang.yml
index d6361f98fb..5903b9987f 100644
--- a/.github/workflows/be-ut-clang.yml
+++ b/.github/workflows/be-ut-clang.yml
@@ -75,8 +75,14 @@ jobs:
           sudo dpkg-reconfigure --frontend noninteractive tzdata
 
           pushd thirdparty
-          curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-linux-x86_64.tar.xz \
-            -o doris-thirdparty-prebuilt-linux-x86_64.tar.xz
+          branch="${{ github.base_ref }}"
+          if [[ -z "${branch}" ]] || [[ "${branch}" == 'master' ]]; then
+            curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-linux-x86_64.tar.xz \
+              -o doris-thirdparty-prebuilt-linux-x86_64.tar.xz
+          else
+            curl -L "https://github.com/apache/doris-thirdparty/releases/download/automation-${branch/branch-/}/doris-thirdparty-prebuilt-linux-x86_64.tar.xz" \
+              -o doris-thirdparty-prebuilt-linux-x86_64.tar.xz
+          fi
           tar -xvf doris-thirdparty-prebuilt-linux-x86_64.tar.xz
           popd
 
diff --git a/.github/workflows/be-ut-mac.yml b/.github/workflows/be-ut-mac.yml
index e0e939f633..3307ec11b8 100644
--- a/.github/workflows/be-ut-mac.yml
+++ b/.github/workflows/be-ut-mac.yml
@@ -83,8 +83,14 @@ jobs:
           brew install "${cellars[@]}"
 
           pushd thirdparty
-          curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz \
-            -o doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
+          branch="${{ github.base_ref }}"
+          if [[ -z "${branch}" ]] || [[ "${branch}" == 'master' ]]; then
+            curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz \
+              -o doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
+          else
+            curl -L "https://github.com/apache/doris-thirdparty/releases/download/automation-${branch/branch-/}/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz" \
+              -o doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
+          fi
           tar -xvf doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
           popd
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org