Skip to content

Commit 44a1bb4

Browse files
Merge pull request #1006 from ArmDeveloperEcosystem/fix-weekly-orchestrator-run
Fix weekly orchestrator smoke run blockers
2 parents ba51a4a + e4b0701 commit 44a1bb4

5 files changed

Lines changed: 28 additions & 42 deletions

File tree

.github/actions/apt-bootstrap/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,23 @@ inputs:
3030
description: Install packages with --no-install-recommends when set to true.
3131
required: false
3232
default: "false"
33+
update_timeout_seconds:
34+
description: Maximum seconds to allow each apt-get update attempt before retrying.
35+
required: false
36+
default: "600"
37+
install_timeout_seconds:
38+
description: Maximum seconds to allow each apt-get install attempt before retrying.
39+
required: false
40+
default: "1800"
3341

3442
runs:
3543
using: composite
3644
steps:
3745
- name: Harden apt update and install
3846
shell: bash
47+
env:
48+
APT_UPDATE_TIMEOUT_SECONDS: ${{ inputs.update_timeout_seconds }}
49+
APT_INSTALL_TIMEOUT_SECONDS: ${{ inputs.install_timeout_seconds }}
3950
run: |
4051
set -euo pipefail
4152
bash "${{ github.action_path }}/bootstrap.sh" \

.github/actions/apt-bootstrap/bootstrap.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ INITIAL_BACKOFF_SECONDS=5
88
QUIET=false
99
UPDATE_ONLY=false
1010
NO_INSTALL_RECOMMENDS=false
11+
APT_UPDATE_TIMEOUT_SECONDS="${APT_UPDATE_TIMEOUT_SECONDS:-600}"
12+
APT_INSTALL_TIMEOUT_SECONDS="${APT_INSTALL_TIMEOUT_SECONDS:-1800}"
1113

1214
while [[ $# -gt 0 ]]; do
1315
case "$1" in
@@ -50,6 +52,10 @@ apt_update() {
5052
sudo apt-get clean
5153
sudo rm -rf /var/lib/apt/lists/*
5254
local cmd=(
55+
timeout
56+
--signal=TERM
57+
--kill-after=60s
58+
"${APT_UPDATE_TIMEOUT_SECONDS}s"
5359
sudo apt-get
5460
-o Acquire::Retries=3
5561
-o Acquire::http::No-Cache=true
@@ -91,6 +97,10 @@ fi
9197

9298
read -r -a package_array <<< "$FULL_PACKAGES"
9399
install_cmd=(
100+
timeout
101+
--signal=TERM
102+
--kill-after=60s
103+
"${APT_INSTALL_TIMEOUT_SECONDS}s"
94104
sudo env
95105
DEBIAN_FRONTEND=noninteractive
96106
APT_LISTCHANGES_FRONTEND=none

.github/workflows/test-activemq.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Test ActiveMQ on Arm64
22

33
on:
4+
workflow_dispatch:
45
workflow_call:
56
outputs:
67
contract_version:
@@ -113,14 +114,10 @@ jobs:
113114
- name: Install ActiveMQ
114115
id: install
115116
run: |
116-
set -e
117+
set -euo pipefail
117118
echo "Installing ActiveMQ from Ubuntu packages..."
118119
119-
sudo apt-get update
120-
# Install Java + ActiveMQ (classic)
121-
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
122-
default-jre-headless \
123-
activemq
120+
bash .github/actions/apt-bootstrap/bootstrap.sh --packages "default-jre-headless activemq"
124121
125122
# Find activemq binary
126123
ACTIVEMQ_BIN=$(command -v activemq || dpkg -L activemq | grep '/bin/activemq$' | head -1 || true)
@@ -377,4 +374,3 @@ jobs:
377374
echo "3. Check 'activemq --help' output: ${{ steps.test3.outputs.status || 'skipped' }}" >> $GITHUB_STEP_SUMMARY
378375
echo "4. Check Java dependency: ${{ steps.test4.outputs.status || 'skipped' }}" >> $GITHUB_STEP_SUMMARY
379376
echo "5. Check ActiveMQ has configuration files under /etc: ${{ steps.test5.outputs.status || 'skipped' }}" >> $GITHUB_STEP_SUMMARY
380-

.github/workflows/test-java-openjdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ jobs:
142142
- name: Install Java/OpenJDK
143143
id: install
144144
run: |
145+
set -euo pipefail
145146
echo "Installing OpenJDK 17..."
146147
147-
sudo apt-get update
148-
if sudo apt-get install -y openjdk-17-jdk; then
148+
if bash .github/actions/apt-bootstrap/bootstrap.sh --packages "openjdk-17-jdk"; then
149149
echo "OpenJDK installed successfully"
150150
echo "install_status=success" >> $GITHUB_OUTPUT
151151
else

.github/workflows/test-wireshark.yml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
test-wireshark:
8181
runs-on: ubuntu-24.04-arm
8282
env:
83-
WIRESHARK_VERSION: "4.6.3"
83+
WIRESHARK_VERSION: "4.6.6"
8484

8585
outputs:
8686
contract_version: "2.0"
@@ -123,38 +123,7 @@ jobs:
123123
id: install
124124
run: |
125125
set -euo pipefail
126-
sudo apt-get update
127-
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
128-
build-essential \
129-
cmake \
130-
ninja-build \
131-
flex \
132-
bison \
133-
curl \
134-
python3-dev \
135-
qt6-base-dev \
136-
qt6-tools-dev \
137-
qt6-multimedia-dev \
138-
libbrotli-dev \
139-
libc-ares-dev \
140-
libcap-dev \
141-
libgcrypt20-dev \
142-
libglib2.0-dev \
143-
libgnutls28-dev \
144-
libkrb5-dev \
145-
liblua5.4-dev \
146-
libmaxminddb-dev \
147-
libminizip-dev \
148-
libnghttp2-dev \
149-
libnl-3-dev \
150-
libnl-genl-3-dev \
151-
libpcap-dev \
152-
libsbc-dev \
153-
libsnappy-dev \
154-
libspeexdsp-dev \
155-
libssh-gcrypt-dev \
156-
libsystemd-dev \
157-
libxml2-dev
126+
bash .github/actions/apt-bootstrap/bootstrap.sh --packages "build-essential cmake ninja-build flex bison curl python3-dev qt6-base-dev qt6-tools-dev qt6-multimedia-dev libbrotli-dev libc-ares-dev libcap-dev libgcrypt20-dev libglib2.0-dev libgnutls28-dev libkrb5-dev liblua5.4-dev libmaxminddb-dev libminizip-dev libnghttp2-dev libnl-3-dev libnl-genl-3-dev libpcap-dev libsbc-dev libsnappy-dev libspeexdsp-dev libssh-gcrypt-dev libsystemd-dev libxml2-dev"
158127
159128
BASE_DIR="${RUNNER_TEMP}/wireshark-current"
160129
rm -rf "$BASE_DIR"

0 commit comments

Comments
 (0)