Skip to content

Commit 9814f7f

Browse files
committed
test(amazonq): start dbus and increase file watchers
1 parent 0d6203b commit 9814f7f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

buildspec/linuxE2ETests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ phases:
2626
# - '>/dev/null apt-get -qq install -y ca-certificates'
2727
# - 'apt-get install --reinstall ca-certificates'
2828
- bash buildspec/shared/linux-install.sh
29+
# increase file watcher count (ENOSPC error)
30+
- sysctl fs.inotify.max_user_watches=524288
2931

3032
pre_build:
3133
commands:

buildspec/shared/linux-install.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -x
1414
# Without this, "Unable to locate package libatk1.0-0".
1515
apt-get > /dev/null -yqq update
1616
# Dependencies for running vscode.
17-
apt-get > /dev/null -yqq install libatk1.0-0 libgtk-3-dev libxss1 xvfb libasound2 libasound2-plugins
17+
apt-get > /dev/null -yqq install libatk1.0-0 libgtk-3-dev libxss1 xvfb libasound2 libasound2-plugins dbus
1818

1919
#
2020
# Prepare env for unprivileged user. We cannot run vscode as root.
@@ -27,3 +27,12 @@ ls -ld ~codebuild-user
2727

2828
curl -Os https://uploader.codecov.io/latest/linux/codecov
2929
chmod +x codecov
30+
31+
# Stops the "Failed to connect to the bus" log spam by setting up dbus
32+
mkdir -p /var/run/dbus
33+
if [ ! -e /var/run/dbus/pid ]; then
34+
dbus-daemon --system --fork
35+
fi
36+
37+
# Set up environment
38+
export DBUS_SESSION_BUS_ADDRESS=/dev/null

0 commit comments

Comments
 (0)