Skip to content

Commit 38bd78f

Browse files
committed
Disabled auto updaters
1 parent 85b0407 commit 38bd78f

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

.github/scripts/setup-test-server-remote.sh

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ GIT_BRANCH=$2
2020
RUN_TYPE=$3 # ex. nightly | release | compare
2121
DOCKER_IMG=$4 # ex. edge | 0.32.0 (assumes location ghcr.io/deephaven/server)
2222
DEEPHAVEN_DIR=/${HOME}/deephaven
23+
export DEBIAN_FRONTEND=noninteractive
2324

2425
title () { echo; echo $1; }
2526

2627
title "- Setting Up Remote Benchmark Testing on ${HOST} -"
2728

2829
title "-- Waiting for APT to be Free --"
2930
BEGIN_SECS=$(date +%s)
30-
export DEBIAN_FRONTEND=noninteractive
3131
STATUS=0
3232
for i in {1..60}; do
3333
if ! sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1 && ! sudo fuser /var/lib/apt/lists/lock >/dev/null 2>&1 \
@@ -44,6 +44,29 @@ if [[ $STATUS -eq 0 ]]; then
4444
exit 1
4545
fi
4646

47+
title "-- Disabling Automatic Updates --"
48+
sudo systemctl stop unattended-upgrades.service 2>/dev/null || true
49+
sudo systemctl stop apt-daily.service 2>/dev/null || true
50+
sudo systemctl stop apt-daily-upgrade.service 2>/dev/null || true
51+
sudo systemctl disable --now apt-daily.timer 2>/dev/null || true
52+
sudo systemctl disable --now apt-daily-upgrade.timer 2>/dev/null || true
53+
sudo systemctl mask unattended-upgrades.service 2>/dev/null || true
54+
sudo systemctl mask apt-daily.service 2>/dev/null || true
55+
sudo systemctl mask apt-daily-upgrade.service 2>/dev/null || true
56+
sudo tee /etc/apt/apt.conf.d/10periodic >/dev/null <<EOF
57+
APT::Periodic::Enable "0";
58+
EOF
59+
sudo tee /etc/apt/apt.conf.d/20auto-upgrades >/dev/null <<EOF
60+
APT::Periodic::Update-Package-Lists "0";
61+
APT::Periodic::Unattended-Upgrade "0";
62+
EOF
63+
64+
title "-- Disabling SSH Password Authentication --"
65+
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config
66+
sudo sed -i 's/^#\?KbdInteractiveAuthentication.*/KbdInteractiveAuthentication no/' /etc/ssh/sshd_config
67+
sudo sed -i 's/^#\?ChallengeResponseAuthentication.*/ChallengeResponseAuthentication no/' /etc/ssh/sshd_config
68+
sudo systemctl reload sshd
69+
4770
title "-- Adding OS Applications --"
4871
UPDATED=$(sudo update-alternatives --list java | grep -i temurin; echo $?)
4972
if [[ ${UPDATED} != 0 ]]; then

docs/ForkSetup.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,20 @@ In the [Github Main Benchmark Repository](https://github.com/deephaven/benchmark
1010

1111
### Required Secrets
1212

13-
Not all secrets are required for each workflow. In the following list, each secret is listed, what it means, and what workflows it is relevant for. To populate these secrets, go to the "Actions secrets and variables" page under "Settings -> Secrets and variables -> Actions". Some of these values will need to be supplied by your administrator.
13+
Not all secrets are required for each workflow. In the following table, each secret is listed, what it means, and what workflows it is relevant for. To populate these secrets, go to the "Actions secrets and variables" page under "Settings -> Secrets and variables -> Actions". Some of these values will need to be supplied by your administrator.
1414

1515
| Variable | Description | Shared (Ask Admin) | Optional |
1616
| -------------------------- | --------------------------------------------------------------------- | ------------------ | -------- |
1717
| BENCHMARK_GCLOUD | The GCloud Service Account Key (credentials) in JSON format | Yes | No |
1818
| BENCHMARK_HOST | The host ip for an existing (non-auto-provisioned) server | No | No |
1919
| BENCHMARK_USER | The "run as" user for running benchmarks on the server | No | No |
2020
| BENCHMARK_KEY | A private key used by SSH corresponding to a public key on the server | No | No |
21-
| BENCHMARK_METAL_AUTH_TOKEN | The key required to access the bare metal provider API | Yes | No |
22-
| BENCHMARK_METAL_PROJECT_ID | The project id from the bare metal provider for deployments | Yes | No |
21+
| BENCHMARK_METAL_AUTH_TOKEN | The key/secret required to access the bare metal provider API | Yes | No |
22+
| BENCHMARK_METAL_PROJECT_ID | The project/client id from the bare metal provider for deployments | Yes | No |
2323
| BENCHMARK_SLACK_CHANNEL | Slack channel to notify on workflow completion (ex. @your-slack-user) | No | Yes |
2424
| BENCHMARK_SLACK_TOKEN | Slack token for notification | Yes | Yes |
2525
| BENCHMARK_SIGNING_KEY | Use to GPG-sign published benchmark artifacts to maven central | Yes | Yes |
2626

27+
### Deephaven Users Only
28+
29+
Since this is a public repository, secrets for use of Deephaven servers cannot be supplied here. You can find what you need in our vault under `Benchmark Community Fork Setup`.

0 commit comments

Comments
 (0)