This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 9256dba Add current ip address, long hostname and short hostname to
/etc/hosts (#2688)
9256dba is described below
commit 9256dbab334dd1e8b60fc575fa22e0559f47f6f7
Author: Lari Hotari <[email protected]>
AuthorDate: Wed Apr 14 19:49:35 2021 +0300
Add current ip address, long hostname and short hostname to /etc/hosts
(#2688)
- Fixes reverse DNS lookup for current hostname
---
.../tune-runner-vm/action.yml} | 44 ++++++----------------
.github/workflows/bookie-tests.yml | 4 ++
.github/workflows/client-tests.yml | 4 ++
.github/workflows/compatibility-check-java11.yml | 4 ++
.github/workflows/compatibility-check-java8.yml | 4 ++
.github/workflows/integration-tests.yml | 4 ++
.github/workflows/pr-validation.yml | 4 ++
.github/workflows/remaining-tests.yml | 4 ++
.github/workflows/replication-tests.yml | 4 ++
.github/workflows/stream-tests.yml | 4 ++
.github/workflows/tls-tests.yml | 4 ++
11 files changed, 52 insertions(+), 32 deletions(-)
diff --git a/.github/workflows/compatibility-check-java11.yml
b/.github/actions/tune-runner-vm/action.yml
similarity index 51%
copy from .github/workflows/compatibility-check-java11.yml
copy to .github/actions/tune-runner-vm/action.yml
index d3cc36c..59f977c 100644
--- a/.github/workflows/compatibility-check-java11.yml
+++ b/.github/actions/tune-runner-vm/action.yml
@@ -17,35 +17,15 @@
# under the License.
#
-name: Compatibility Check Java11
-
-on:
- push:
- pull_request:
- branches:
- - master
- - branch-*
- paths-ignore:
- - 'site/**'
- workflow_dispatch:
-
-env:
- MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
-Dmaven.wagon.http.retryHandler.count=3
-
-jobs:
- check:
-
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- fetch-depth: 0
- ref: ${{ github.event.pull_request.head.sha }}
- - name: Set up JDK 1.11
- uses: actions/setup-java@v1
- with:
- java-version: 1.11
- - name: Build with Maven
- run: mvn clean package -B -nsu -DskipBookKeeperServerTests
-Dorg.slf4j.simpleLogger.defaultLogLevel=INFO
+name: Tune Runner VM performance
+description: tunes the GitHub Runner VM operation system
+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
+ echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' |
cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
+ fi
+ shell: bash
\ No newline at end of file
diff --git a/.github/workflows/bookie-tests.yml
b/.github/workflows/bookie-tests.yml
index b5c402c..88789d7 100644
--- a/.github/workflows/bookie-tests.yml
+++ b/.github/workflows/bookie-tests.yml
@@ -44,6 +44,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
diff --git a/.github/workflows/client-tests.yml
b/.github/workflows/client-tests.yml
index 1291ae3..fe7892f 100644
--- a/.github/workflows/client-tests.yml
+++ b/.github/workflows/client-tests.yml
@@ -44,6 +44,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
diff --git a/.github/workflows/compatibility-check-java11.yml
b/.github/workflows/compatibility-check-java11.yml
index d3cc36c..18bfacb 100644
--- a/.github/workflows/compatibility-check-java11.yml
+++ b/.github/workflows/compatibility-check-java11.yml
@@ -43,6 +43,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
diff --git a/.github/workflows/compatibility-check-java8.yml
b/.github/workflows/compatibility-check-java8.yml
index a9ab377..4e549a1 100644
--- a/.github/workflows/compatibility-check-java8.yml
+++ b/.github/workflows/compatibility-check-java8.yml
@@ -43,6 +43,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
diff --git a/.github/workflows/integration-tests.yml
b/.github/workflows/integration-tests.yml
index dcca882..28eec3d 100644
--- a/.github/workflows/integration-tests.yml
+++ b/.github/workflows/integration-tests.yml
@@ -43,6 +43,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
diff --git a/.github/workflows/pr-validation.yml
b/.github/workflows/pr-validation.yml
index f0fd3a7..3979edb 100644
--- a/.github/workflows/pr-validation.yml
+++ b/.github/workflows/pr-validation.yml
@@ -43,6 +43,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
diff --git a/.github/workflows/remaining-tests.yml
b/.github/workflows/remaining-tests.yml
index 498d58b..3c945f2 100644
--- a/.github/workflows/remaining-tests.yml
+++ b/.github/workflows/remaining-tests.yml
@@ -43,6 +43,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
diff --git a/.github/workflows/replication-tests.yml
b/.github/workflows/replication-tests.yml
index 070fddb..2a35afb 100644
--- a/.github/workflows/replication-tests.yml
+++ b/.github/workflows/replication-tests.yml
@@ -43,6 +43,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
diff --git a/.github/workflows/stream-tests.yml
b/.github/workflows/stream-tests.yml
index c3990f6..4838155 100644
--- a/.github/workflows/stream-tests.yml
+++ b/.github/workflows/stream-tests.yml
@@ -42,6 +42,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
diff --git a/.github/workflows/tls-tests.yml b/.github/workflows/tls-tests.yml
index 134b779..8c1cf07 100644
--- a/.github/workflows/tls-tests.yml
+++ b/.github/workflows/tls-tests.yml
@@ -43,6 +43,10 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with: