Skip to content

Commit

Permalink
Disable unattended-upgrades in e2e templates
Browse files Browse the repository at this point in the history
While we love keeping our system up to date, in the e2e test scenarios
it's more of a hindrance because it could run at the same time as we are
running 'apt install', which would fail our run.

This is one of the most common causes of flakiness in our e2e suite.
  • Loading branch information
GabrielNagy committed Jun 21, 2024
1 parent 36ab121 commit 5b365ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ if [[ ! "$(lsmod)" =~ cifs ]]; then
echo "cifs" >> /etc/modules
fi

echo "Disabling unattended-upgrades to avoid unexpected dpkg frontend locks..."
systemctl disable --now unattended-upgrades

echo "Updating DNS resolver to use AD DNS..."
echo "DNS=10.1.0.4" >> /etc/systemd/resolved.conf
systemctl restart systemd-resolved
Expand Down

0 comments on commit 5b365ac

Please sign in to comment.