Skip to content

Commit 77a100a

Browse files
committed
Merge branch 'main' into planning-reports
2 parents 6d5b564 + b7da921 commit 77a100a

File tree

212 files changed

+14445
-3247
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+14445
-3247
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Whitespace-only changes
22
d01ba56c2127789d85723793380a7378394583f1
3+
852c59e89088455d251376786776fd556784995c

.github/buildomat/jobs/deploy.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,22 @@ until grep "Handoff to Nexus is complete" /var/svc/log/oxide-sled-agent:default.
414414
done
415415
echo "Waited for handoff: ${retry}s"
416416

417+
# Wait for at least one collection. We check for "greater than 1" line of output
418+
# because we always get the table header; 2 or more lines indicate 1 or more
419+
# collections.
420+
retry=0
421+
INVENTORY_COLLECTION_COUNT=$(pfexec zlogin oxz_switch /opt/oxide/omdb/bin/omdb db inventory collections list | wc -l)
422+
until [[ "${INVENTORY_COLLECTION_COUNT}" -gt 1 ]]; do
423+
if [[ $retry -gt 300 ]]; then
424+
echo "Failed to wait for inventory collection after 300 seconds"
425+
exit 1
426+
fi
427+
sleep 1
428+
retry=$((retry + 1))
429+
INVENTORY_COLLECTION_COUNT=$(pfexec zlogin oxz_switch /opt/oxide/omdb/bin/omdb db inventory collections list | wc -l)
430+
done
431+
echo "Waited for inventory collection: ${retry}s"
432+
417433
# Wait for the number of expected U2 zpools
418434
retry=0
419435
ACTUAL_ZPOOL_COUNT=$(pfexec zlogin oxz_switch /opt/oxide/omdb/bin/omdb db zpool list -i | wc -l)

0 commit comments

Comments
 (0)