Skip to content

Commit 776cc66

Browse files
committed
build-lxd.yml, build-sd-images.yml: Run apt-get update before installing packages
1 parent ff092b3 commit 776cc66

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build-lxd.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
- name: Setup incus
7474
if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-20.04-arm64' }}
7575
run: |
76+
sudo apt-get update
7677
sudo apt-get install -y incus qemu-system incus-tools
7778
sudo iptables -I DOCKER-USER -i incusbr0 -j ACCEPT
7879
sudo iptables -I DOCKER-USER -o incusbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
@@ -356,6 +357,7 @@ jobs:
356357
- name: Setup incus
357358
if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-20.04-arm64' }}
358359
run: |
360+
sudo apt-get update
359361
sudo apt-get install -y incus qemu-system incus-tools
360362
sudo iptables -I DOCKER-USER -i incusbr0 -j ACCEPT
361363
sudo iptables -I DOCKER-USER -o incusbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
@@ -372,7 +374,6 @@ jobs:
372374
- name: Setup Firefox from packages
373375
if: ${{ runner.arch == 'ARM64' || steps.setup-firefox-browser-action.outcome == 'failure' }}
374376
run: |
375-
sudo apt-get update
376377
sudo apt-get install -y --no-install-recommends firefox
377378
- name: Setup GeckoDriver
378379
env:
@@ -636,6 +637,7 @@ jobs:
636637
- name: Setup incus
637638
if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-20.04-arm64' }}
638639
run: |
640+
sudo apt-get update
639641
sudo apt-get install -y incus qemu-system incus-tools
640642
sudo iptables -I DOCKER-USER -i incusbr0 -j ACCEPT
641643
sudo iptables -I DOCKER-USER -o incusbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

.github/workflows/build-sd-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ jobs:
155155
run: |
156156
set -ex
157157
mkdir -p output
158+
sudo apt-get update
158159
sudo apt-get install -y pv
159160
wget -nv "${{ inputs.test_image_url }}" -O - | pv -n --bytes --rate --timer -i 3 > "output/${ARTIFACT_FILE?}"
160161
- name: Prepare test

tests/nextcloud_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def settings_config_check_infos(infos):
290290
print(f'INFO: {info.text}')
291291
php_modules = info.find_elements(By.CSS_SELECTOR, "li")
292292
if len(php_modules) != 1:
293+
print(f'match? ' + str(re.match(r'.*\d+ (errors?|warnings?) in the logs since.*'))
293294
raise ConfigTestFailure(f"Could not find the list of php modules within the info message "
294295
f"'{infos[0].text}'")
295296
if php_modules[0].text != "imagick":

0 commit comments

Comments
 (0)