Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,34 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6

# FLINK-39787: GitHub-hosted Azure runners assign a VM hostname whose
# reverse DNS returns an internal cloudapp.net FQDN. The SSL benchmarks
# rely on flink-runtime's local127.keystore, whose SAN list only contains
# 'localhost', '127.0.0.1', and '::1'. Map the runner hostname to the
# loopback interface so InetAddress.getLocalHost() (used to bind the
# benchmark NettyServer) returns 127.0.0.1 and the SSL handshake matches
# the certificate. The real fix belongs in apache/flink's
# StreamNetworkBenchmarkEnvironment (use getLoopbackAddress instead of
# getLocalHost); track separately.
- name: Map runner hostname to loopback
run: |
sudo sed -i "/$(hostname)/d" /etc/hosts
echo "127.0.0.1 localhost $(hostname -f) $(hostname)" | sudo tee -a /etc/hosts
echo "After shim:"
getent hosts "$(hostname)"
getent hosts 127.0.0.1

- name: Set JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'

- name: Set Maven 3.8.6
uses: stCarolas/setup-maven@v4.5
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.8.6

Expand Down
Loading