You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2023/04/25 07:24:38 UTC

[phoenix-connectors] branch master updated: PHOENIX-6936 Update github actions runner to ubuntu-20.04 for connectors

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

stoty pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix-connectors.git


The following commit(s) were added to refs/heads/master by this push:
     new 576ad61  PHOENIX-6936 Update github actions runner to ubuntu-20.04 for connectors
576ad61 is described below

commit 576ad6128c8c2873970fed1908d96fce61c0cac9
Author: Istvan Toth <st...@apache.org>
AuthorDate: Mon Apr 24 09:07:40 2023 +0200

    PHOENIX-6936 Update github actions runner to ubuntu-20.04 for connectors
---
 .github/actions/tune-runner-vm/action.yml | 19 -------------------
 .github/workflows/maven.yml               | 10 +++-------
 2 files changed, 3 insertions(+), 26 deletions(-)

diff --git a/.github/actions/tune-runner-vm/action.yml b/.github/actions/tune-runner-vm/action.yml
deleted file mode 100644
index 47861b7..0000000
--- a/.github/actions/tune-runner-vm/action.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Tune Runner VM
-description: |
-  Fine tunes the GitHub Runner VM operation system for builds. 
-  The tuning currently includes a workaround for 
-  "Reverse name lookup is broken for current hostname in ubuntu-latest VMs",
-  reported as https://github.com/actions/virtual-environments/issues/3185
-runs:
-  using: composite
-  steps:
-    - run: |
-        if [[ "$OSTYPE" == "linux-gnu"* ]]; then
-            # Ensure that reverse lookups for current hostname are handled properly
-            # Add the current IP address, long hostname and short hostname record to /etc/hosts file
-            eth0_ip_addr=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)
-            hostname_fqdn=$(hostname -f)
-            hostname_short=$(hostname -s)
-            echo -e "${eth0_ip_addr}\t${hostname_fqdn} ${hostname_short}" | sudo tee -a /etc/hosts
-        fi
-      shell: bash
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index e5c4ab9..55fb909 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -21,17 +21,13 @@ on:
 
 jobs:
   build:
-    runs-on: ubuntu-18.04
+    # upgrade to ubuntu-latest after removing Phoenix 4 support
+    runs-on: ubuntu-20.04
     steps:
     - uses: actions/checkout@v1
-    - uses: ./.github/actions/tune-runner-vm
     - name: Set up JDK 1.8
       uses: actions/setup-java@v1
       with:
         java-version: 1.8
-    - name: Build
-      run: mvn -B clean install -DskipTests
-    # The build doesn't seem to pick up the result of the install from above, so just re-compile
-    # and the Maven reactor will find it just fine.
     - name: Test
-      run: mvn -B clean verify
+      run: mvn -B -fae clean install