Skip to content

Commit

Permalink
remove docker related configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Oct 16, 2024
1 parent b6d6acc commit 17f6de9
Showing 1 changed file with 28 additions and 78 deletions.
106 changes: 28 additions & 78 deletions .github/workflows/crmsh-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- workflow_call

env:
DOCKER_SCRIPT: sudo ./test/run-functional-tests
CONTAINER_SCRIPT: sudo ./test/run-functional-tests
GET_INDEX_OF: ./test/run-functional-tests _get_index_of

jobs:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- name: functional test for crm_report bugs
run: |
index=`$GET_INDEX_OF crm_report_bugs`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -74,10 +74,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for crm_report normal
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF crm_report_normal`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -90,10 +88,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap bugs
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_bugs`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -106,10 +102,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap bugs, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_bugs`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -122,10 +116,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap common
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_init_join_remove`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -138,10 +130,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap common, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_init_join_remove`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -154,10 +144,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap options
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_options`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -170,10 +158,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for crm corosync subcommand
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF corosync_ui`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -186,10 +172,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap options, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_options`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -202,10 +186,8 @@ jobs:
- uses: actions/checkout@v4
- 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
index=`$GET_INDEX_OF qdevice_setup_remove`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -218,10 +200,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice setup and remove, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_setup_remove`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -234,10 +214,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice options
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_options`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -250,10 +228,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice validate
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_validate`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -266,10 +242,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice validate, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_validate`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -282,10 +256,8 @@ jobs:
- uses: actions/checkout@v4
- 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
index=`$GET_INDEX_OF qdevice_usercase`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -298,10 +270,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for resource failcount
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF resource_failcount`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -314,10 +284,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for resource set
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF resource_set`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -330,10 +298,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for resource set, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF resource_set`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -346,10 +312,8 @@ jobs:
- uses: actions/checkout@v4
- 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
index=`$GET_INDEX_OF configure_bugs`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -362,10 +326,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for constraints bugs
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF constraints_bugs`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -378,10 +340,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for geo cluster
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF geo_setup`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -394,10 +354,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for healthcheck
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF healthcheck`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -410,9 +368,7 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for cluster api
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF cluster_api`
$CONTAINER_SCRIPT `$GET_INDEX_OF cluster_api`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -425,9 +381,7 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for user access
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF user_access`
$CONTAINER_SCRIPT `$GET_INDEX_OF user_access`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -440,9 +394,7 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for ssh agent
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF ssh_agent` && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT -u `$GET_INDEX_OF ssh_agent`
$CONTAINER_SCRIPT `$GET_INDEX_OF ssh_agent` && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT -u `$GET_INDEX_OF ssh_agent`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -455,9 +407,7 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for blocking ssh
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF cluster_blocking_ssh`
$CONTAINER_SCRIPT `$GET_INDEX_OF cluster_blocking_ssh`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -470,4 +420,4 @@ jobs:
- uses: actions/checkout@v4
- name: original regression test
run: |
$DOCKER_SCRIPT `$GET_INDEX_OF "regression test"`
$CONTAINER_SCRIPT `$GET_INDEX_OF "regression test"`

0 comments on commit 17f6de9

Please sign in to comment.