Scheduled OpenStack All-in-One verification #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# SPDX-license-identifier: Apache-2.0 | |
############################################################################## | |
# Copyright (c) 2022 | |
# All rights reserved. This program and the accompanying materials | |
# are made available under the terms of the Apache License, Version 2.0 | |
# which accompanies this distribution, and is available at | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
############################################################################## | |
name: Scheduled OpenStack All-in-One verification | |
# yamllint disable-line rule:truthy | |
on: | |
schedule: | |
- cron: "0 0 * * 5" | |
workflow_dispatch: | |
permissions: read-all | |
jobs: | |
generate-json-matrix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0 | |
- name: Get matrix values | |
id: set-matrix | |
run: | | |
if ! command -v shyaml; then | |
if ! command -v pip; then | |
apt-get update | |
apt-get install -y --no-install-recommends python3-pip | |
fi | |
pip install shyaml | |
fi | |
if ! command -v jq; then | |
apt-get update | |
apt-get install -y --no-install-recommends jq | |
fi | |
echo "matrix=$(shyaml keys < distros_supported.yml|jq -cnR '[inputs | select(length>0)]')" >>"$GITHUB_OUTPUT" | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
check-aio-vms: | |
name: Check All-in-One deployment on Virtual Machines | |
needs: generate-json-matrix | |
strategy: | |
fail-fast: false | |
matrix: | |
distro: ${{ fromJson(needs.generate-json-matrix.outputs.matrix) }} | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0 | |
- uses: ./.github/actions/vagrant-setup | |
- name: Deploy latest release in All-in-One instance | |
env: | |
CI_INITIAL_RELEASE_POINTER: 1 | |
CPUS: 2 | |
MEMORY: 12288 | |
OS_DISTRO: ${{ matrix.distro }} | |
run: ./ci/check_aio.sh | |
- name: Check HW resources | |
if: failure() | |
run: | | |
vm_stat | |
top -l 1 -n 0 | |
VBoxManage list runningvms --long | |
cat ~/VirtualBox\ VMs/*/Logs/*.log |