2020-04-21 18:00:34 +00:00
|
|
|
name: PR
|
2020-04-19 02:22:57 +00:00
|
|
|
on:
|
2021-07-08 18:58:04 +00:00
|
|
|
workflow_dispatch:
|
2020-04-19 02:22:57 +00:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2021-04-08 21:57:35 +00:00
|
|
|
- "go.mod"
|
2020-04-21 06:22:36 +00:00
|
|
|
- "**.go"
|
2020-04-21 06:33:29 +00:00
|
|
|
- "**.yml"
|
2020-06-10 04:43:15 +00:00
|
|
|
- "**.yaml"
|
2020-04-21 06:33:29 +00:00
|
|
|
- "Makefile"
|
2020-07-27 20:19:35 +00:00
|
|
|
- "!deploy/kicbase/**"
|
2020-07-27 19:40:53 +00:00
|
|
|
- "!deploy/iso/**"
|
2020-03-05 19:05:44 +00:00
|
|
|
env:
|
|
|
|
GOPROXY: https://proxy.golang.org
|
2022-10-10 09:06:06 +00:00
|
|
|
GO_VERSION: '1.19.2'
|
2022-03-12 00:25:30 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-01-29 18:38:51 +00:00
|
|
|
jobs:
|
2020-02-14 09:45:07 +00:00
|
|
|
# Runs before all other jobs
|
2020-03-05 18:57:19 +00:00
|
|
|
# builds the minikube binaries
|
2020-02-14 09:45:07 +00:00
|
|
|
build_minikube:
|
2021-09-28 03:01:27 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-01-29 18:38:51 +00:00
|
|
|
steps:
|
2022-10-10 18:45:13 +00:00
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-10-24 19:31:38 +00:00
|
|
|
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
2020-06-28 18:41:02 +00:00
|
|
|
with:
|
2021-03-03 21:59:59 +00:00
|
|
|
go-version: ${{env.GO_VERSION}}
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Download Dependencies
|
|
|
|
run: go mod download
|
|
|
|
- name: Build Binaries
|
2020-06-25 21:45:50 +00:00
|
|
|
run: |
|
2020-06-10 01:18:48 +00:00
|
|
|
make cross
|
|
|
|
make e2e-cross
|
2020-04-21 06:22:36 +00:00
|
|
|
cp -r test/integration/testdata ./out
|
|
|
|
whoami
|
|
|
|
echo github ref $GITHUB_REF
|
|
|
|
echo workflow $GITHUB_WORKFLOW
|
|
|
|
echo home $HOME
|
|
|
|
echo event name $GITHUB_EVENT_NAME
|
|
|
|
echo workspace $GITHUB_WORKSPACE
|
|
|
|
echo "end of debug stuff"
|
|
|
|
echo $(which jq)
|
2022-10-24 19:31:28 +00:00
|
|
|
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
|
2020-04-21 06:22:36 +00:00
|
|
|
with:
|
|
|
|
name: minikube_binaries
|
|
|
|
path: out
|
2020-02-21 05:08:48 +00:00
|
|
|
lint:
|
2021-09-28 03:01:27 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-02-21 05:08:48 +00:00
|
|
|
steps:
|
2022-10-10 18:45:13 +00:00
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-10-24 19:31:38 +00:00
|
|
|
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
2020-06-28 18:41:02 +00:00
|
|
|
with:
|
2021-03-03 21:59:59 +00:00
|
|
|
go-version: ${{env.GO_VERSION}}
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Install libvirt
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libvirt-dev
|
|
|
|
- name: Download Dependencies
|
|
|
|
run: go mod download
|
|
|
|
- name: Lint
|
|
|
|
env:
|
|
|
|
TESTSUITE: lintall
|
|
|
|
run: make test
|
|
|
|
continue-on-error: false
|
2020-02-14 09:45:07 +00:00
|
|
|
unit_test:
|
2021-09-28 03:01:27 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-02-14 09:45:07 +00:00
|
|
|
steps:
|
2022-10-10 18:45:13 +00:00
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-10-24 19:31:38 +00:00
|
|
|
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
2020-06-28 18:41:02 +00:00
|
|
|
with:
|
2021-03-03 21:59:59 +00:00
|
|
|
go-version: ${{env.GO_VERSION}}
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Install libvirt
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libvirt-dev
|
|
|
|
- name: Download Dependencies
|
|
|
|
run: go mod download
|
|
|
|
- name: Unit Test
|
|
|
|
env:
|
|
|
|
TESTSUITE: unittest
|
|
|
|
run: make test
|
|
|
|
continue-on-error: false
|
2020-02-14 09:45:07 +00:00
|
|
|
# Run the following integration tests after the build_minikube
|
2020-04-21 06:22:36 +00:00
|
|
|
# They will run in parallel and use the binaries in previous step
|
2020-06-10 01:18:48 +00:00
|
|
|
functional_docker_ubuntu:
|
2022-03-12 00:25:30 +00:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2020-02-14 09:45:07 +00:00
|
|
|
needs: [build_minikube]
|
|
|
|
env:
|
|
|
|
TIME_ELAPSED: time
|
2020-06-10 01:18:48 +00:00
|
|
|
JOB_NAME: "functional_docker_ubuntu"
|
2020-02-15 02:08:33 +00:00
|
|
|
GOPOGH_RESULT: ""
|
2020-02-17 04:00:01 +00:00
|
|
|
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
|
2021-09-28 03:01:27 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-04-21 06:22:36 +00:00
|
|
|
steps:
|
|
|
|
- name: Install kubectl
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-06-01 23:39:55 +00:00
|
|
|
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
|
2020-04-21 06:22:36 +00:00
|
|
|
sudo install kubectl /usr/local/bin/kubectl
|
|
|
|
kubectl version --client=true
|
|
|
|
- name: Docker Info
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo "--------------------------"
|
|
|
|
docker version || true
|
|
|
|
echo "--------------------------"
|
2020-07-21 04:19:42 +00:00
|
|
|
docker info || true
|
2020-04-21 06:22:36 +00:00
|
|
|
echo "--------------------------"
|
|
|
|
docker system df || true
|
|
|
|
echo "--------------------------"
|
2020-07-20 19:28:29 +00:00
|
|
|
docker system info --format='{{json .}}'|| true
|
2020-04-21 06:22:36 +00:00
|
|
|
echo "--------------------------"
|
|
|
|
docker ps || true
|
|
|
|
echo "--------------------------"
|
2022-10-24 19:31:38 +00:00
|
|
|
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
2020-07-21 03:42:02 +00:00
|
|
|
with:
|
2021-03-03 21:59:59 +00:00
|
|
|
go-version: ${{env.GO_VERSION}}
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Install gopogh
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-05-24 19:31:26 +00:00
|
|
|
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
2020-04-21 06:22:36 +00:00
|
|
|
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
|
|
- name: Download Binaries
|
2022-10-24 19:31:33 +00:00
|
|
|
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
|
2020-04-21 06:22:36 +00:00
|
|
|
with:
|
|
|
|
name: minikube_binaries
|
2022-08-22 21:05:40 +00:00
|
|
|
path: minikube_binaries
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Run Integration Test
|
|
|
|
continue-on-error: false
|
|
|
|
# bash {0} to allow test to continue to next step. in case of
|
|
|
|
shell: bash {0}
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
mkdir -p report
|
|
|
|
mkdir -p testhome
|
|
|
|
chmod a+x e2e-*
|
|
|
|
chmod a+x minikube-*
|
|
|
|
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
|
|
|
|
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
2021-07-12 18:48:29 +00:00
|
|
|
MINIKUBE_HOME=$(pwd)/testhome ./minikube-linux-amd64 delete --all --purge
|
2020-04-21 06:22:36 +00:00
|
|
|
START_TIME=$(date -u +%s)
|
2022-02-25 22:52:04 +00:00
|
|
|
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome ./e2e-linux-amd64 -minikube-start-args=--vm-driver=docker -test.run TestFunctional -test.timeout=15m -test.v -timeout-multiplier=1.5 -binary=./minikube-linux-amd64 2>&1 | tee ./report/testout.txt
|
2020-04-21 06:22:36 +00:00
|
|
|
END_TIME=$(date -u +%s)
|
|
|
|
TIME_ELAPSED=$(($END_TIME-$START_TIME))
|
|
|
|
min=$((${TIME_ELAPSED}/60))
|
|
|
|
sec=$((${TIME_ELAPSED}%60))
|
|
|
|
TIME_ELAPSED="${min} min $sec seconds "
|
2020-10-23 21:32:14 +00:00
|
|
|
echo "TIME_ELAPSED=${TIME_ELAPSED}" >> $GITHUB_ENV
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Generate HTML Report
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
export PATH=${PATH}:`go env GOPATH`/bin
|
|
|
|
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
|
2021-02-19 20:05:34 +00:00
|
|
|
STAT=$(gopogh -in ./report/testout.json -out_html ./report/testout.html -out_summary ./report/testout_summary.json -name "${JOB_NAME} ${GITHUB_REF}" -repo "${GITHUB_REPOSITORY}" -details "${GITHUB_SHA}") || true
|
2020-04-21 06:22:36 +00:00
|
|
|
echo status: ${STAT}
|
|
|
|
FailNum=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
TestsNum=$(echo $STAT | jq '.NumberOfTests')
|
|
|
|
GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${TIME_ELAPSED}"
|
2020-10-23 21:32:14 +00:00
|
|
|
echo "GOPOGH_RESULT=${GOPOGH_RESULT}" >> $GITHUB_ENV
|
2020-10-23 22:55:38 +00:00
|
|
|
echo 'STAT<<EOF' >> $GITHUB_ENV
|
|
|
|
echo "${STAT}" >> $GITHUB_ENV
|
|
|
|
echo 'EOF' >> $GITHUB_ENV
|
2022-10-24 19:31:28 +00:00
|
|
|
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
|
2020-04-21 06:22:36 +00:00
|
|
|
with:
|
2020-06-10 01:18:48 +00:00
|
|
|
name: functional_docker_ubuntu
|
2020-04-21 06:22:36 +00:00
|
|
|
path: minikube_binaries/report
|
2020-06-10 01:18:48 +00:00
|
|
|
- name: The End Result functional_docker_ubuntu
|
2020-04-21 06:22:36 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo ${GOPOGH_RESULT}
|
|
|
|
numFail=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
numPass=$(echo $STAT | jq '.NumberOfPass')
|
2020-07-21 03:18:49 +00:00
|
|
|
echo "*******************${numPass} Passes :) *******************"
|
|
|
|
echo $STAT | jq '.PassedTests' || true
|
|
|
|
echo "*******************************************************"
|
2020-07-21 03:42:02 +00:00
|
|
|
echo "---------------- ${numFail} Failures :( ----------------------------"
|
|
|
|
echo $STAT | jq '.FailedTests' || true
|
|
|
|
echo "-------------------------------------------------------"
|
2020-04-21 06:22:36 +00:00
|
|
|
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
|
2020-06-05 03:50:16 +00:00
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** 0 Passed! ***";exit 2;fi
|
2020-06-10 21:55:35 +00:00
|
|
|
if [ "$numPass" -lt 36 ];then echo "*** Failed to pass at least 36 ! ***";exit 2;fi
|
2020-06-05 03:50:16 +00:00
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** Passed! ***";exit 0;fi
|
2021-04-25 04:30:57 +00:00
|
|
|
functional_docker_containerd_ubuntu:
|
2022-03-12 00:25:30 +00:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2021-04-25 04:30:57 +00:00
|
|
|
needs: [build_minikube]
|
|
|
|
env:
|
|
|
|
TIME_ELAPSED: time
|
|
|
|
JOB_NAME: "functional_docker_containerd_ubuntu"
|
|
|
|
GOPOGH_RESULT: ""
|
|
|
|
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
|
2021-09-28 03:01:27 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2021-04-25 04:30:57 +00:00
|
|
|
steps:
|
|
|
|
- name: Install kubectl
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-06-01 23:39:55 +00:00
|
|
|
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
|
2021-04-25 04:30:57 +00:00
|
|
|
sudo install kubectl /usr/local/bin/kubectl
|
|
|
|
kubectl version --client=true
|
|
|
|
- name: Docker Info
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo "--------------------------"
|
|
|
|
docker version || true
|
|
|
|
echo "--------------------------"
|
|
|
|
docker info || true
|
|
|
|
echo "--------------------------"
|
|
|
|
docker system df || true
|
|
|
|
echo "--------------------------"
|
|
|
|
docker system info --format='{{json .}}'|| true
|
|
|
|
echo "--------------------------"
|
|
|
|
docker ps || true
|
|
|
|
echo "--------------------------"
|
2022-10-24 19:31:38 +00:00
|
|
|
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
2021-04-25 04:30:57 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{env.GO_VERSION}}
|
|
|
|
- name: Install gopogh
|
|
|
|
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-05-24 19:31:26 +00:00
|
|
|
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
2021-04-25 04:30:57 +00:00
|
|
|
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
|
|
- name: Download Binaries
|
2022-10-24 19:31:33 +00:00
|
|
|
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
|
2021-04-25 04:30:57 +00:00
|
|
|
with:
|
|
|
|
name: minikube_binaries
|
2022-08-22 21:05:40 +00:00
|
|
|
path: minikube_binaries
|
2021-04-25 04:30:57 +00:00
|
|
|
- name: Run Integration Test
|
|
|
|
continue-on-error: false
|
|
|
|
# bash {0} to allow test to continue to next step. in case of
|
|
|
|
shell: bash {0}
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
mkdir -p report
|
|
|
|
mkdir -p testhome
|
|
|
|
chmod a+x e2e-*
|
|
|
|
chmod a+x minikube-*
|
|
|
|
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
|
|
|
|
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
2021-07-12 18:48:29 +00:00
|
|
|
MINIKUBE_HOME=$(pwd)/testhome ./minikube-linux-amd64 delete --all --purge
|
2021-04-25 04:30:57 +00:00
|
|
|
START_TIME=$(date -u +%s)
|
2021-04-30 17:35:01 +00:00
|
|
|
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome ./e2e-linux-amd64 -minikube-start-args="--vm-driver=docker --container-runtime=containerd" -test.run TestFunctional -test.timeout=30m -test.v -timeout-multiplier=1.5 -binary=./minikube-linux-amd64 2>&1 | tee ./report/testout.txt
|
2021-04-25 04:30:57 +00:00
|
|
|
END_TIME=$(date -u +%s)
|
|
|
|
TIME_ELAPSED=$(($END_TIME-$START_TIME))
|
|
|
|
min=$((${TIME_ELAPSED}/60))
|
|
|
|
sec=$((${TIME_ELAPSED}%60))
|
|
|
|
TIME_ELAPSED="${min} min $sec seconds "
|
|
|
|
echo "TIME_ELAPSED=${TIME_ELAPSED}" >> $GITHUB_ENV
|
|
|
|
- name: Generate HTML Report
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
export PATH=${PATH}:`go env GOPATH`/bin
|
|
|
|
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
|
|
|
|
STAT=$(gopogh -in ./report/testout.json -out_html ./report/testout.html -out_summary ./report/testout_summary.json -name "${JOB_NAME} ${GITHUB_REF}" -repo "${GITHUB_REPOSITORY}" -details "${GITHUB_SHA}") || true
|
|
|
|
echo status: ${STAT}
|
|
|
|
FailNum=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
TestsNum=$(echo $STAT | jq '.NumberOfTests')
|
|
|
|
GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${TIME_ELAPSED}"
|
|
|
|
echo "GOPOGH_RESULT=${GOPOGH_RESULT}" >> $GITHUB_ENV
|
|
|
|
echo 'STAT<<EOF' >> $GITHUB_ENV
|
|
|
|
echo "${STAT}" >> $GITHUB_ENV
|
|
|
|
echo 'EOF' >> $GITHUB_ENV
|
2022-10-24 19:31:28 +00:00
|
|
|
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
|
2021-04-25 04:30:57 +00:00
|
|
|
with:
|
|
|
|
name: functional_docker_containerd_ubuntu
|
|
|
|
path: minikube_binaries/report
|
2021-04-30 18:23:50 +00:00
|
|
|
- name: The End Result functional_docker_containerd_ubuntu
|
2021-04-25 04:30:57 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo ${GOPOGH_RESULT}
|
|
|
|
numFail=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
numPass=$(echo $STAT | jq '.NumberOfPass')
|
|
|
|
echo "*******************${numPass} Passes :) *******************"
|
|
|
|
echo $STAT | jq '.PassedTests' || true
|
|
|
|
echo "*******************************************************"
|
|
|
|
echo "---------------- ${numFail} Failures :( ----------------------------"
|
|
|
|
echo $STAT | jq '.FailedTests' || true
|
|
|
|
echo "-------------------------------------------------------"
|
|
|
|
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
|
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** 0 Passed! ***";exit 2;fi
|
|
|
|
if [ "$numPass" -lt 36 ];then echo "*** Failed to pass at least 36 ! ***";exit 2;fi
|
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** Passed! ***";exit 0;fi
|
2021-05-05 20:28:39 +00:00
|
|
|
|
|
|
|
functional_podman_ubuntu:
|
2022-03-12 00:25:30 +00:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2021-05-05 20:28:39 +00:00
|
|
|
needs: [ build_minikube ]
|
|
|
|
env:
|
|
|
|
TIME_ELAPSED: time
|
|
|
|
JOB_NAME: functional_podman_ubuntu
|
|
|
|
GOPOGH_RESULT: ""
|
|
|
|
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Install kubectl
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-06-01 23:39:55 +00:00
|
|
|
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
|
2021-05-05 20:28:39 +00:00
|
|
|
sudo install kubectl /usr/local/bin/kubectl
|
|
|
|
kubectl version --client=true
|
|
|
|
|
|
|
|
- name: Install Podman
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y podman
|
|
|
|
echo "--------------------------"
|
|
|
|
podman version || true
|
|
|
|
echo "--------------------------"
|
|
|
|
podman info || true
|
|
|
|
echo "--------------------------"
|
|
|
|
podman system df || true
|
|
|
|
echo "--------------------------"
|
|
|
|
podman system info --format='{{json .}}'|| true
|
|
|
|
echo "--------------------------"
|
|
|
|
podman ps || true
|
|
|
|
echo "--------------------------"
|
2022-10-24 19:31:38 +00:00
|
|
|
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
2021-05-05 20:28:39 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{env.GO_VERSION}}
|
|
|
|
- name: Install gopogh
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-05-24 19:31:26 +00:00
|
|
|
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
2021-05-05 20:28:39 +00:00
|
|
|
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
|
|
- name: Download Binaries
|
2022-10-24 19:31:33 +00:00
|
|
|
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
|
2021-05-05 20:28:39 +00:00
|
|
|
with:
|
|
|
|
name: minikube_binaries
|
2022-08-22 21:05:40 +00:00
|
|
|
path: minikube_binaries
|
2021-05-05 20:28:39 +00:00
|
|
|
- name: Run Integration Test
|
|
|
|
continue-on-error: false
|
|
|
|
# bash {0} to allow test to continue to next step. in case of
|
|
|
|
shell: bash {0}
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
mkdir -p report
|
|
|
|
mkdir -p testhome
|
|
|
|
chmod a+x e2e-*
|
|
|
|
chmod a+x minikube-*
|
|
|
|
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
|
|
|
|
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
2021-07-12 18:48:29 +00:00
|
|
|
MINIKUBE_HOME=$(pwd)/testhome ./minikube-linux-amd64 delete --all --purge
|
2021-05-05 20:28:39 +00:00
|
|
|
START_TIME=$(date -u +%s)
|
2022-02-25 22:52:04 +00:00
|
|
|
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome ./e2e-linux-amd64 -minikube-start-args=--vm-driver=podman -v=6 --alsologtostderr -test.run TestFunctional -test.timeout=15m -test.v -timeout-multiplier=1.5 -binary=./minikube-linux-amd64 2>&1 | tee ./report/testout.txt
|
2021-05-05 20:28:39 +00:00
|
|
|
END_TIME=$(date -u +%s)
|
|
|
|
TIME_ELAPSED=$(($END_TIME-$START_TIME))
|
|
|
|
min=$((${TIME_ELAPSED}/60))
|
|
|
|
sec=$((${TIME_ELAPSED}%60))
|
|
|
|
TIME_ELAPSED="${min} min $sec seconds "
|
|
|
|
echo "TIME_ELAPSED=${TIME_ELAPSED}" >> $GITHUB_ENV
|
|
|
|
- name: Generate HTML Report
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
export PATH=${PATH}:`go env GOPATH`/bin
|
|
|
|
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
|
|
|
|
STAT=$(gopogh -in ./report/testout.json -out_html ./report/testout.html -out_summary ./report/testout_summary.json -name "${JOB_NAME} ${GITHUB_REF}" -repo "${GITHUB_REPOSITORY}" -details "${GITHUB_SHA}") || true
|
|
|
|
echo status: ${STAT}
|
|
|
|
FailNum=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
TestsNum=$(echo $STAT | jq '.NumberOfTests')
|
|
|
|
GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${TIME_ELAPSED}"
|
|
|
|
echo "GOPOGH_RESULT=${GOPOGH_RESULT}" >> $GITHUB_ENV
|
|
|
|
echo 'STAT<<EOF' >> $GITHUB_ENV
|
|
|
|
echo "${STAT}" >> $GITHUB_ENV
|
|
|
|
echo 'EOF' >> $GITHUB_ENV
|
2022-10-24 19:31:28 +00:00
|
|
|
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
|
2021-05-05 20:28:39 +00:00
|
|
|
with:
|
|
|
|
name: functional_podman_ubuntu
|
|
|
|
path: minikube_binaries/report
|
|
|
|
- name: The End Result functional_podman_ubuntu
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo ${GOPOGH_RESULT}
|
|
|
|
numFail=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
numPass=$(echo $STAT | jq '.NumberOfPass')
|
|
|
|
echo "*******************${numPass} Passes :) *******************"
|
|
|
|
echo $STAT | jq '.PassedTests' || true
|
|
|
|
echo "*******************************************************"
|
|
|
|
echo "---------------- ${numFail} Failures :( ----------------------------"
|
|
|
|
echo $STAT | jq '.FailedTests' || true
|
|
|
|
echo "-------------------------------------------------------"
|
|
|
|
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
|
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** 0 Passed! ***";exit 2;fi
|
|
|
|
if [ "$numPass" -lt 36 ];then echo "*** Failed to pass at least 36 ! ***";exit 2;fi
|
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** Passed! ***";exit 0;fi
|
|
|
|
|
2020-06-09 22:00:49 +00:00
|
|
|
functional_virtualbox_macos:
|
2022-03-12 00:25:30 +00:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2020-06-09 22:00:49 +00:00
|
|
|
needs: [build_minikube]
|
|
|
|
env:
|
|
|
|
TIME_ELAPSED: time
|
|
|
|
JOB_NAME: "functional_virtualbox_macos"
|
|
|
|
GOPOGH_RESULT: ""
|
|
|
|
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
|
2022-08-01 18:36:21 +00:00
|
|
|
runs-on: macos-12
|
2020-06-09 22:00:49 +00:00
|
|
|
steps:
|
|
|
|
- name: Install kubectl
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-06-01 23:39:55 +00:00
|
|
|
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl"
|
2020-06-09 22:00:49 +00:00
|
|
|
sudo install kubectl /usr/local/bin/kubectl
|
|
|
|
kubectl version --client=true
|
2022-10-24 19:31:38 +00:00
|
|
|
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
2020-07-21 03:42:02 +00:00
|
|
|
with:
|
2021-03-03 21:59:59 +00:00
|
|
|
go-version: ${{env.GO_VERSION}}
|
2020-06-09 22:00:49 +00:00
|
|
|
- name: Install gopogh
|
2020-07-21 03:42:02 +00:00
|
|
|
|
2020-06-09 22:00:49 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-05-24 19:31:26 +00:00
|
|
|
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-darwin-amd64
|
2020-06-09 22:00:49 +00:00
|
|
|
sudo install gopogh-darwin-amd64 /usr/local/bin/gopogh
|
2020-06-10 03:32:23 +00:00
|
|
|
- name: Install docker
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
brew install docker-machine docker
|
|
|
|
sudo docker --version
|
2020-07-08 21:38:40 +00:00
|
|
|
- name: Info
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
hostname
|
|
|
|
VBoxManage --version
|
|
|
|
sysctl hw.physicalcpu hw.logicalcpu
|
2020-07-08 23:49:58 +00:00
|
|
|
- name: Disable firewall
|
|
|
|
run: |
|
|
|
|
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
|
|
|
|
sudo /usr/libexec/ApplicationFirewall/socketfilterfw -k
|
2020-06-09 22:00:49 +00:00
|
|
|
- name: Download Binaries
|
2022-10-24 19:31:33 +00:00
|
|
|
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
|
2020-06-09 22:00:49 +00:00
|
|
|
with:
|
|
|
|
name: minikube_binaries
|
2022-08-22 21:05:40 +00:00
|
|
|
path: minikube_binaries
|
2020-06-09 22:00:49 +00:00
|
|
|
- name: Run Integration Test
|
|
|
|
continue-on-error: false
|
|
|
|
# bash {0} to allow test to continue to next step. in case of
|
|
|
|
shell: bash {0}
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
mkdir -p report
|
|
|
|
mkdir -p testhome
|
|
|
|
chmod a+x e2e-*
|
|
|
|
chmod a+x minikube-*
|
2021-07-12 18:48:29 +00:00
|
|
|
MINIKUBE_HOME=$(pwd)/testhome ./minikube-darwin-amd64 delete --all --purge
|
2020-06-09 22:00:49 +00:00
|
|
|
START_TIME=$(date -u +%s)
|
2021-04-20 16:48:30 +00:00
|
|
|
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome ./e2e-darwin-amd64 -minikube-start-args=--vm-driver=virtualbox -test.run "TestFunctional" -test.timeout=35m -test.v -timeout-multiplier=1.5 -binary=./minikube-darwin-amd64 2>&1 | tee ./report/testout.txt
|
2020-06-09 22:00:49 +00:00
|
|
|
END_TIME=$(date -u +%s)
|
|
|
|
TIME_ELAPSED=$(($END_TIME-$START_TIME))
|
|
|
|
min=$((${TIME_ELAPSED}/60))
|
|
|
|
sec=$((${TIME_ELAPSED}%60))
|
|
|
|
TIME_ELAPSED="${min} min $sec seconds "
|
2020-10-23 21:32:14 +00:00
|
|
|
echo "TIME_ELAPSED=${TIME_ELAPSED}" >> $GITHUB_ENV
|
2020-06-09 22:00:49 +00:00
|
|
|
- name: Generate HTML Report
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
export PATH=${PATH}:`go env GOPATH`/bin
|
|
|
|
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
|
2021-02-19 20:05:34 +00:00
|
|
|
STAT=$(gopogh -in ./report/testout.json -out_html ./report/testout.html -out_summary ./report/testout_summary.json -name "${JOB_NAME} ${GITHUB_REF}" -repo "${GITHUB_REPOSITORY}" -details "${GITHUB_SHA}") || true
|
2020-06-09 22:00:49 +00:00
|
|
|
echo status: ${STAT}
|
|
|
|
FailNum=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
TestsNum=$(echo $STAT | jq '.NumberOfTests')
|
|
|
|
GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${TIME_ELAPSED}"
|
2020-10-23 21:32:14 +00:00
|
|
|
echo "GOPOGH_RESULT=${GOPOGH_RESULT}" >> $GITHUB_ENV
|
2020-10-23 22:55:38 +00:00
|
|
|
echo 'STAT<<EOF' >> $GITHUB_ENV
|
|
|
|
echo "${STAT}" >> $GITHUB_ENV
|
|
|
|
echo 'EOF' >> $GITHUB_ENV
|
2022-10-24 19:31:28 +00:00
|
|
|
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
|
2020-06-09 22:00:49 +00:00
|
|
|
with:
|
|
|
|
name: functional_virtualbox_macos
|
|
|
|
path: minikube_binaries/report
|
|
|
|
- name: The End Result functional_virtualbox_macos
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo ${GOPOGH_RESULT}
|
|
|
|
numFail=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
numPass=$(echo $STAT | jq '.NumberOfPass')
|
2020-07-21 03:18:49 +00:00
|
|
|
echo "*******************${numPass} Passes :) *******************"
|
|
|
|
echo $STAT | jq '.PassedTests' || true
|
|
|
|
echo "*******************************************************"
|
2020-07-21 03:42:02 +00:00
|
|
|
echo "----------------${numFail} Failures :(----------------------------"
|
|
|
|
echo $STAT | jq '.FailedTests' || true
|
|
|
|
echo "-------------------------------------------------------"
|
2020-06-09 22:00:49 +00:00
|
|
|
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
|
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** 0 Passed! ***";exit 2;fi
|
2020-06-10 21:55:35 +00:00
|
|
|
if [ "$numPass" -lt 33 ];then echo "*** Failed to pass at least 33 ! ***";exit 2;fi
|
2020-06-09 22:00:49 +00:00
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** Passed! ***";exit 0;fi
|
2020-06-10 04:43:15 +00:00
|
|
|
functional_baremetal_ubuntu18_04:
|
2022-03-12 00:25:30 +00:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2020-06-10 04:43:15 +00:00
|
|
|
needs: [build_minikube]
|
2020-02-13 06:13:12 +00:00
|
|
|
env:
|
2020-02-13 23:33:54 +00:00
|
|
|
TIME_ELAPSED: time
|
2020-06-10 04:43:15 +00:00
|
|
|
JOB_NAME: "functional_baremetal_ubuntu18_04"
|
2020-02-15 02:08:33 +00:00
|
|
|
GOPOGH_RESULT: ""
|
2020-02-17 04:00:01 +00:00
|
|
|
SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643
|
2020-06-10 04:43:15 +00:00
|
|
|
runs-on: ubuntu-18.04
|
2020-01-31 03:28:33 +00:00
|
|
|
steps:
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Install kubectl
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-06-01 23:39:55 +00:00
|
|
|
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
|
2020-04-21 06:22:36 +00:00
|
|
|
sudo install kubectl /usr/local/bin/kubectl
|
|
|
|
kubectl version --client=true
|
2022-10-24 19:31:38 +00:00
|
|
|
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
2022-05-19 22:09:04 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{env.GO_VERSION}}
|
2020-06-10 04:43:15 +00:00
|
|
|
# conntrack is required for kubernetes 1.18 and higher
|
|
|
|
# socat is required for kubectl port forward which is used in some tests such as validateHelmTillerAddon
|
2022-05-19 22:09:04 +00:00
|
|
|
# cri-dockerd is required for Kubernetes 1.24 and higher for none driver
|
2020-06-10 04:43:15 +00:00
|
|
|
- name: Install tools for none
|
2020-04-21 06:22:36 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-06-10 04:43:15 +00:00
|
|
|
sudo apt-get update -qq
|
|
|
|
sudo apt-get -qq -y install conntrack
|
|
|
|
sudo apt-get -qq -y install socat
|
2022-08-03 20:28:50 +00:00
|
|
|
CRI_DOCKERD_VERSION="0737013d3c48992724283d151e8a2a767a1839e9"
|
|
|
|
CRI_DOCKERD_BASE_URL="https://storage.googleapis.com/kicbase-artifacts/cri-dockerd/${CRI_DOCKERD_VERSION}"
|
2022-08-03 21:51:17 +00:00
|
|
|
sudo curl -L "${CRI_DOCKERD_BASE_URL}/amd64/cri-dockerd" -o /usr/bin/cri-dockerd
|
|
|
|
sudo curl -L "${CRI_DOCKERD_BASE_URL}/cri-docker.socket" -o /usr/lib/systemd/system/cri-docker.socket
|
|
|
|
sudo curl -L "${CRI_DOCKERD_BASE_URL}/cri-docker.service" -o /usr/lib/systemd/system/cri-docker.service
|
|
|
|
sudo chmod +x /usr/bin/cri-dockerd
|
2022-08-03 20:28:50 +00:00
|
|
|
CRICTL_VERSION="v1.17.0"
|
|
|
|
curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz --output crictl-${CRICTL_VERSION}-linux-amd64.tar.gz
|
|
|
|
sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Install gopogh
|
2020-07-21 03:42:02 +00:00
|
|
|
|
2020-04-21 06:22:36 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-05-24 19:31:26 +00:00
|
|
|
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.13.0/gopogh-linux-amd64
|
2020-04-21 06:22:36 +00:00
|
|
|
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
|
|
|
|
- name: Download Binaries
|
2022-10-24 19:31:33 +00:00
|
|
|
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
|
2020-04-21 06:22:36 +00:00
|
|
|
with:
|
|
|
|
name: minikube_binaries
|
2022-08-22 21:05:40 +00:00
|
|
|
path: minikube_binaries
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Run Integration Test
|
|
|
|
continue-on-error: true
|
|
|
|
# bash {0} to allow test to continue to next step. in case of
|
|
|
|
shell: bash {0}
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
mkdir -p report
|
|
|
|
mkdir -p testhome
|
|
|
|
chmod a+x e2e-*
|
|
|
|
chmod a+x minikube-*
|
2021-07-12 18:48:29 +00:00
|
|
|
MINIKUBE_HOME=$(pwd)/testhome ./minikube-linux-amd64 delete --all --purge
|
2020-04-21 06:22:36 +00:00
|
|
|
START_TIME=$(date -u +%s)
|
2020-06-10 04:43:15 +00:00
|
|
|
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome sudo -E ./e2e-linux-amd64 -minikube-start-args=--driver=none -test.timeout=10m -test.v -timeout-multiplier=1.5 -test.run TestFunctional -binary=./minikube-linux-amd64 2>&1 | tee ./report/testout.txt
|
2020-04-21 06:22:36 +00:00
|
|
|
END_TIME=$(date -u +%s)
|
|
|
|
TIME_ELAPSED=$(($END_TIME-$START_TIME))
|
|
|
|
min=$((${TIME_ELAPSED}/60))
|
|
|
|
sec=$((${TIME_ELAPSED}%60))
|
|
|
|
TIME_ELAPSED="${min} min $sec seconds "
|
2020-10-23 21:32:14 +00:00
|
|
|
echo "TIME_ELAPSED=${TIME_ELAPSED}" >> $GITHUB_ENV
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: Generate HTML Report
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd minikube_binaries
|
|
|
|
export PATH=${PATH}:`go env GOPATH`/bin
|
|
|
|
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
|
2021-02-19 20:05:34 +00:00
|
|
|
STAT=$(gopogh -in ./report/testout.json -out_html ./report/testout.html -out_summary ./report/testout_summary.json -name "${JOB_NAME} ${GITHUB_REF}" -repo "${GITHUB_REPOSITORY}" -details "${GITHUB_SHA}") || true
|
2020-04-21 06:22:36 +00:00
|
|
|
echo status: ${STAT}
|
|
|
|
FailNum=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
TestsNum=$(echo $STAT | jq '.NumberOfTests')
|
|
|
|
GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${TIME_ELAPSED}"
|
2020-10-23 21:32:14 +00:00
|
|
|
echo "GOPOGH_RESULT=${GOPOGH_RESULT}" >> $GITHUB_ENV
|
2020-10-23 22:55:38 +00:00
|
|
|
echo 'STAT<<EOF' >> $GITHUB_ENV
|
|
|
|
echo "${STAT}" >> $GITHUB_ENV
|
|
|
|
echo 'EOF' >> $GITHUB_ENV
|
2022-10-24 19:31:28 +00:00
|
|
|
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
|
2020-04-21 06:22:36 +00:00
|
|
|
with:
|
2022-06-22 17:56:18 +00:00
|
|
|
name: functional_baremetal_ubuntu18_04
|
2020-04-21 06:22:36 +00:00
|
|
|
path: minikube_binaries/report
|
2022-06-22 17:56:18 +00:00
|
|
|
- name: The End Result functional_baremetal_ubuntu18_04
|
2020-04-21 06:22:36 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo ${GOPOGH_RESULT}
|
|
|
|
numFail=$(echo $STAT | jq '.NumberOfFail')
|
|
|
|
numPass=$(echo $STAT | jq '.NumberOfPass')
|
2020-07-21 03:18:49 +00:00
|
|
|
echo "*******************${numPass} Passes :) *******************"
|
|
|
|
echo $STAT | jq '.PassedTests' || true
|
|
|
|
echo "*******************************************************"
|
2020-07-21 03:42:02 +00:00
|
|
|
echo "---------------- ${numFail} Failures :( ----------------------------"
|
|
|
|
echo $STAT | jq '.FailedTests' || true
|
|
|
|
echo "-------------------------------------------------------"
|
2020-04-21 06:22:36 +00:00
|
|
|
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
|
2020-06-05 03:50:16 +00:00
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** 0 Passed! ***";exit 2;fi
|
2020-06-25 21:45:50 +00:00
|
|
|
if [ "$numPass" -lt 26 ];then echo "*** Failed to pass at least 26 ! ***";exit 2;fi
|
2020-06-05 06:29:18 +00:00
|
|
|
if [ "$numPass" -eq 0 ];then echo "*** Passed! ***";exit 0;fi
|
2020-04-19 01:15:56 +00:00
|
|
|
# After all integration tests finished
|
2020-04-19 01:20:55 +00:00
|
|
|
# collect all the reports and upload them
|
2020-02-13 23:33:54 +00:00
|
|
|
upload_all_reports:
|
2022-03-12 00:25:30 +00:00
|
|
|
permissions:
|
|
|
|
contents: none
|
2020-02-15 04:40:39 +00:00
|
|
|
if: always()
|
2020-04-21 06:22:36 +00:00
|
|
|
needs:
|
|
|
|
[
|
2020-06-25 21:45:50 +00:00
|
|
|
functional_docker_ubuntu,
|
2021-04-25 04:30:57 +00:00
|
|
|
functional_docker_containerd_ubuntu,
|
2021-05-05 20:28:39 +00:00
|
|
|
functional_podman_ubuntu,
|
2020-06-25 21:45:50 +00:00
|
|
|
functional_virtualbox_macos,
|
|
|
|
functional_baremetal_ubuntu18_04,
|
2020-04-21 06:22:36 +00:00
|
|
|
]
|
2021-09-28 03:01:27 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-02-13 23:33:54 +00:00
|
|
|
steps:
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: download all reports
|
2022-10-24 19:31:33 +00:00
|
|
|
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7
|
2020-04-21 06:22:36 +00:00
|
|
|
- name: upload all reports
|
|
|
|
shell: bash {0}
|
|
|
|
continue-on-error: true
|
|
|
|
run: |
|
|
|
|
mkdir -p all_reports
|
|
|
|
ls -lah
|
2020-06-10 01:18:48 +00:00
|
|
|
cp -r ./functional_docker_ubuntu ./all_reports/
|
2021-04-25 04:30:57 +00:00
|
|
|
cp -r ./functional_docker_containerd_ubuntu ./all_reports/
|
2021-05-05 20:28:39 +00:00
|
|
|
cp -r ./functional_podman_ubuntu ./all_reports/
|
2020-06-24 00:03:09 +00:00
|
|
|
cp -r ./functional_virtualbox_macos ./all_reports/
|
|
|
|
cp -r ./functional_baremetal_ubuntu18_04 ./all_reports/
|
2021-04-19 19:10:20 +00:00
|
|
|
|
2022-10-24 19:31:28 +00:00
|
|
|
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
|
2020-04-21 06:22:36 +00:00
|
|
|
with:
|
|
|
|
name: all_reports
|
2020-10-26 21:14:38 +00:00
|
|
|
path: all_reports
|