Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
85b69ce4
M
minikube
项目概览
Chu Peng 楚鹏
/
minikube
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
minikube
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
85b69ce4
编写于
4月 13, 2020
作者:
M
Medya Ghazizadeh
提交者:
GitHub
4月 13, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #7652 from medyagh/gh_action_smaller
github actions: remove some of the not working tests
上级
1ee990a3
74602ccc
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
183 deletion
+7
-183
.github/workflows/main.yml
.github/workflows/main.yml
+7
-183
未找到文件。
.github/workflows/main.yml
浏览文件 @
85b69ce4
...
...
@@ -6,10 +6,6 @@ jobs:
# Runs before all other jobs
# builds the minikube binaries
build_minikube
:
env
:
TIME_ELAPSED
:
time
JOB_NAME
:
"
Docker_Ubuntu_16_04"
GOPOGH_RESULT
:
"
"
runs-on
:
ubuntu-18.04
steps
:
-
uses
:
actions/checkout@v2
...
...
@@ -35,10 +31,6 @@ jobs:
name
:
minikube_binaries
path
:
out
lint
:
env
:
TIME_ELAPSED
:
time
JOB_NAME
:
"
lint"
GOPOGH_RESULT
:
"
"
runs-on
:
ubuntu-18.04
steps
:
-
uses
:
actions/checkout@v2
...
...
@@ -54,10 +46,6 @@ jobs:
run
:
make test
continue-on-error
:
false
unit_test
:
env
:
TIME_ELAPSED
:
time
JOB_NAME
:
"
unit_test"
GOPOGH_RESULT
:
"
"
runs-on
:
ubuntu-18.04
steps
:
-
uses
:
actions/checkout@v2
...
...
@@ -75,7 +63,7 @@ jobs:
continue-on-error
:
false
# Run the following integration tests after the build_minikube
# They will run in parallel and use the binaries in previous step
docker_ubuntu_16_04
:
functional_test_
docker_ubuntu_16_04
:
needs
:
[
build_minikube
]
env
:
TIME_ELAPSED
:
time
...
...
@@ -129,7 +117,7 @@ jobs:
chmod a+x e2e-*
chmod a+x minikube-*
START_TIME=$(date -u +%s)
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome ./e2e-linux-amd64 -minikube-start-args=--vm-driver=docker
-test.timeout=8
0m -test.v -timeout-multiplier=1.5 -binary=./minikube-linux-amd64 2>&1 | tee ./report/testout.txt
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome ./e2e-linux-amd64 -minikube-start-args=--vm-driver=docker
-test.run TestFunctional -test.timeout=3
0m -test.v -timeout-multiplier=1.5 -binary=./minikube-linux-amd64 2>&1 | tee ./report/testout.txt
END_TIME=$(date -u +%s)
TIME_ELAPSED=$(($END_TIME-$START_TIME))
min=$((${TIME_ELAPSED}/60))
...
...
@@ -164,7 +152,7 @@ jobs:
numPass=$(echo $STAT | jq '.NumberOfPass')
echo "*** $numPass Passed ***"
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
docker_ubuntu_18_04
:
functional_test_
docker_ubuntu_18_04
:
runs-on
:
ubuntu-18.04
env
:
TIME_ELAPSED
:
time
...
...
@@ -218,7 +206,7 @@ jobs:
chmod a+x e2e-*
chmod a+x minikube-*
START_TIME=$(date -u +%s)
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome ./e2e-linux-amd64 -minikube-start-args=--driver=docker
-test.timeout=8
0m -test.v -timeout-multiplier=1.5 -binary=./minikube-linux-amd64 2>&1 | tee ./report/testout.txt
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome ./e2e-linux-amd64 -minikube-start-args=--driver=docker
-test.run TestFunctional -test.timeout=3
0m -test.v -timeout-multiplier=1.5 -binary=./minikube-linux-amd64 2>&1 | tee ./report/testout.txt
END_TIME=$(date -u +%s)
TIME_ELAPSED=$(($END_TIME-$START_TIME))
min=$((${TIME_ELAPSED}/60))
...
...
@@ -253,71 +241,7 @@ jobs:
numPass=$(echo $STAT | jq '.NumberOfPass')
echo "*** $numPass Passed ***"
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
docker_on_windows
:
needs
:
[
build_minikube
]
env
:
TIME_ELAPSED
:
time
JOB_NAME
:
"
Docker_on_windows"
COMMIT_STATUS
:
"
"
runs-on
:
windows-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Docker Info
shell
:
bash
run
:
|
docker info || true
docker version || true
docker ps || true
-
name
:
Download gopogh
run
:
|
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.1.16/gopogh.exe
shell
:
bash
-
name
:
Download binaries
uses
:
actions/download-artifact@v1
with
:
name
:
minikube_binaries
-
name
:
run integration test
continue-on-error
:
true
run
:
|
set +euo pipefail
mkdir -p report
mkdir -p testhome
START_TIME=$(date -u +%s)
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome minikube_binaries/e2e-windows-amd64.exe -minikube-start-args=--vm-driver=docker -binary=minikube_binaries/minikube-windows-amd64.exe -test.v -test.timeout=65m 2>&1 | tee ./report/testout.txt
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 ::set-env name=TIME_ELAPSED::${TIME_ELAPSED}
shell
:
bash
-
name
:
Generate html report
run
:
|
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true
STAT=$(${GITHUB_WORKSPACE}/gopogh.exe -in ./report/testout.json -out ./report/testout.html -name " $GITHUB_REF" -repo "${JOB_NAME} ${GITHUB_REF} ${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 ::set-env name=GOPOGH_RESULT::${GOPOGH_RESULT}
echo ::set-env name=STAT::${STAT}
shell
:
bash
-
uses
:
actions/upload-artifact@v1
with
:
name
:
docker_on_windows
path
:
report
-
name
:
The End Result
run
:
|
echo ${GOPOGH_RESULT}
numFail=$(echo $STAT | jq '.NumberOfFail')
echo "----------------${numFail} Failures----------------------------"
echo $STAT | jq '.FailedTests' || true
echo "--------------------------------------------"
numPass=$(echo $STAT | jq '.NumberOfPass')
echo "*** $numPass Passed ***"
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
shell
:
bash
none_ubuntu16_04
:
baremetal_ubuntu16_04
:
needs
:
[
build_minikube
]
env
:
TIME_ELAPSED
:
time
...
...
@@ -398,7 +322,7 @@ jobs:
numPass=$(echo $STAT | jq '.NumberOfPass')
echo "*** $numPass Passed ***"
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
none
_ubuntu18_04
:
baremetal
_ubuntu18_04
:
needs
:
[
build_minikube
]
env
:
TIME_ELAPSED
:
time
...
...
@@ -479,92 +403,11 @@ jobs:
numPass=$(echo $STAT | jq '.NumberOfPass')
echo "*** $numPass Passed ***"
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
podman_ubuntu_18_04_experimental
:
needs
:
[
build_minikube
]
env
:
TIME_ELAPSED
:
time
JOB_NAME
:
"
Podman_Ubuntu_18_04"
GOPOGH_RESULT
:
"
"
SHELL
:
"
/bin/bash"
# To prevent https://github.com/kubernetes/minikube/issues/6643
runs-on
:
ubuntu-18.04
steps
:
-
name
:
Install kubectl
shell
:
bash
run
:
|
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl
sudo install kubectl /usr/local/bin/kubectl
kubectl version --client=true
-
name
:
Install podman
shell
:
bash
run
:
|
. /etc/os-release
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -q https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- | sudo apt-key add -
sudo apt-key add - < Release.key || true
sudo apt-get update -qq
sudo apt-get -qq -y install podman
sudo podman version || true
sudo podman info || true
-
name
:
Install gopogh
shell
:
bash
run
:
|
curl -LO https://github.com/medyagh/gopogh/releases/download/v0.1.18/gopogh-linux-amd64
sudo install gopogh-linux-amd64 /usr/local/bin/gopogh
-
name
:
Download binaries
uses
:
actions/download-artifact@v1
with
:
name
:
minikube_binaries
-
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-*
START_TIME=$(date -u +%s)
KUBECONFIG=$(pwd)/testhome/kubeconfig MINIKUBE_HOME=$(pwd)/testhome sudo -E ./e2e-linux-amd64 -minikube-start-args=--driver=podman -test.timeout=30m -test.v -timeout-multiplier=1 -binary=./minikube-linux-amd64 2>&1 | tee ./report/testout.txt
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 ::set-env name=TIME_ELAPSED::${TIME_ELAPSED}
-
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 ./report/testout.html -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 ::set-env name=GOPOGH_RESULT::${GOPOGH_RESULT}
echo ::set-env name=STAT::${STAT}
-
uses
:
actions/upload-artifact@v1
with
:
name
:
podman_ubuntu_18_04
path
:
minikube_binaries/report
-
name
:
The End Result - Podman On Ubuntu 18:04
shell
:
bash
run
:
|
echo ${GOPOGH_RESULT}
numFail=$(echo $STAT | jq '.NumberOfFail')
echo "----------------${numFail} Failures----------------------------"
echo $STAT | jq '.FailedTests' || true
echo "-------------------------------------------------------"
numPass=$(echo $STAT | jq '.NumberOfPass')
echo "*** $numPass Passed ***"
if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi
# After all 4 integration tests finished
# collect all the reports and upload
upload_all_reports
:
if
:
always()
needs
:
[
docker_ubuntu_16_04
,
docker_ubuntu_18_04
,
none_ubuntu16_04
,
none_ubuntu18_04
,
podman_ubuntu_18_04_experimental
]
needs
:
[
functional_test_docker_ubuntu_16_04
,
functional_test_docker_ubuntu_18_04
,
baremetal_ubuntu16_04
,
baremetal_ubuntu18_04
]
runs-on
:
ubuntu-18.04
steps
:
-
name
:
Download Results docker_ubuntu_16_04
...
...
@@ -587,15 +430,6 @@ jobs:
run
:
|
mkdir -p all_reports
cp -r docker_ubuntu_18_04 ./all_reports/
-
name
:
download results docker_on_windows
uses
:
actions/download-artifact@v1
with
:
name
:
docker_on_windows
-
name
:
cp to all_report
shell
:
bash
run
:
|
mkdir -p all_reports
cp -r docker_on_windows ./all_reports/
-
name
:
Download Results none_ubuntu16_04
uses
:
actions/download-artifact@v1
with
:
...
...
@@ -616,16 +450,6 @@ jobs:
run
:
|
mkdir -p all_reports
cp -r none_ubuntu18_04 ./all_reports/
-
name
:
Download Results podman_ubuntu_18_04
uses
:
actions/download-artifact@v1
with
:
name
:
podman_ubuntu_18_04
-
name
:
Copy podman_ubuntu_18_04 to all_report
continue-on-error
:
true
shell
:
bash {0}
run
:
|
mkdir -p all_reports
cp -r podman_ubuntu_18_04 ./all_reports/
-
uses
:
actions/upload-artifact@v1
with
:
name
:
all_reports
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录