From 8fd38b0b4c5db96ceb9e3e8528330b347044d7ee Mon Sep 17 00:00:00 2001 From: Peter Makowski Date: Tue, 23 Jan 2024 14:34:26 +0100 Subject: [PATCH] wait for MAAS boot resources --- .github/workflows/sitespeed.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/sitespeed.yml b/.github/workflows/sitespeed.yml index c14e744635..6864d658ef 100644 --- a/.github/workflows/sitespeed.yml +++ b/.github/workflows/sitespeed.yml @@ -21,6 +21,13 @@ jobs: maasdb-dump-url: https://github.com/canonical/maas-ui-testing/raw/main/db/maasdb-22.04-master-1000.dump - name: Create MAAS admin run: sudo maas createadmin --username=admin --password=test --email=fake@example.org + - name: Login to MAAS + run: | + export API_KEY=`sudo maas apikey --username=admin` + maas login admin http://localhost:5240/MAAS $API_KEY + - name: Wait for MAAS boot resources + shell: bash + run: while [ $(maas admin boot-resources is-importing | cat) == "true" ]; do sleep 10; done; echo "syncing finished" - name: Run sitespeed.io tests run: yarn sitespeed:ci --browsertime.domain=${{env.MAAS_DOMAIN}} - name: Upload results