Skip to content

Fix: upgradeutil: support the change of path of upgrade_seq in crmsh-4.5 (bsc#1213050) #3265

Fix: upgradeutil: support the change of path of upgrade_seq in crmsh-4.5 (bsc#1213050)

Fix: upgradeutil: support the change of path of upgrade_seq in crmsh-4.5 (bsc#1213050) #3265

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# For more information about secrets see: https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
name: crmsh CI
on: [push, pull_request]
env:
DOCKER_SCRIPT: ./test/run-functional-tests
GET_INDEX_OF: ./test/run-functional-tests _get_index_of
FOLDER: /package
PACKAGE_NAME: crmsh
OBS_USER: ${{ secrets.OBS_USER }}
OBS_PASS: ${{ secrets.OBS_PASS }}
OBS_PROJECT: ${{ secrets.OBS_PROJECT }}
TARGET_PROJECT: ${{ secrets.TARGET_PROJECT }}
jobs:
unit_test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.6', '3.8', '3.10']
fail-fast: false
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test with pytest in tox
run: |
tox -v -e${{ matrix.python-version }}
functional_test_crm_report_bugs:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for crm_report
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF crm_report_bugs`
functional_test_bootstrap_bugs:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for bootstrap bugs
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF bootstrap_bugs`
functional_test_bootstrap_common:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for bootstrap common
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF bootstrap_init_join_remove`
functional_test_bootstrap_options:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for bootstrap options
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF bootstrap_options`
functional_test_qdevice_setup_remove:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for qdevice setup and remove
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF qdevice_setup_remove`
functional_test_qdevice_options:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for qdevice options
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF qdevice_options`
functional_test_qdevice_validate:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for qdevice validate
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF qdevice_validate`
functional_test_qdevice_user_case:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for qdevice user case
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF qdevice_usercase`
functional_test_resource_subcommand:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for resource subcommand
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF resource_set`
functional_test_configure_sublevel:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for configure sublevel bugs
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF configure_bugs`
functional_test_constraints_bugs:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for constraints bugs
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF constraints_bugs`
functional_test_geo_cluster:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for geo cluster
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF geo_setup`
functional_test_healthcheck:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: functional test for healthcheck
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF healthcheck`
original_regression_test:
runs-on: ubuntu-20.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: original regression test
run: |
$DOCKER_SCRIPT `$GET_INDEX_OF "regression test"`
delivery:
needs: [unit_test,
functional_test_crm_report_bugs,
functional_test_bootstrap_bugs,
functional_test_bootstrap_common,
functional_test_bootstrap_options,
functional_test_qdevice_setup_remove,
functional_test_qdevice_options,
functional_test_qdevice_validate,
functional_test_qdevice_user_case,
functional_test_resource_subcommand,
functional_test_configure_sublevel,
functional_test_constraints_bugs,
functional_test_geo_cluster,
functional_test_healthcheck,
original_regression_test]
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: delivery process
if: github.repository == 'ClusterLabs/crmsh' && github.ref == 'refs/heads/master' && github.event_name == 'push'
run: |
docker pull shap/continuous_deliver:latest
docker run -t -v "$(pwd):/package" \
-e OBS_USER=$OBS_USER \
-e OBS_PASS=$OBS_PASS \
-e FOLDER=$FOLDER \
-e OBS_PROJECT=$OBS_PROJECT \
-e PACKAGE_NAME=$PACKAGE_NAME \
shap/continuous_deliver \
/bin/bash -c "cd /package;/scripts/upload.sh"
submit:
needs: delivery
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: submit process
if: github.repository == 'ClusterLabs/crmsh' && github.ref == 'refs/heads/master' && github.event_name == 'push'
run: |
docker pull shap/continuous_deliver:latest
docker run -t -v "$(pwd):/package" \
-e OBS_USER=$OBS_USER \
-e OBS_PASS=$OBS_PASS \
-e OBS_PROJECT=$OBS_PROJECT \
-e PACKAGE_NAME=$PACKAGE_NAME \
-e TARGET_PROJECT=$TARGET_PROJECT \
shap/continuous_deliver \
/bin/bash -c "cd /package;/scripts/submit.sh"