mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-21 08:43:35 +00:00
* Feat: bootstrap multicluster testing * Fix: update action step name in .github/workflows/e2e-multicluster-test:yml Co-authored-by: Jianbo Sun <wonderflow@icloud.com> * Fix: update setup-core wait condition * Fix: add apply envbinding app test & upgrade gomega * Fix: remove end_e2e duplicate script Co-authored-by: Jianbo Sun <wonderflow@icloud.com>
23 lines
872 B
Bash
23 lines
872 B
Bash
. ./hack/e2e/end_e2e_core.sh
|
|
|
|
OAM_CONTAINER_ID=$(docker exec kind-control-plane crictl ps | grep oam-runtime | grep --regexp '^.............' -o)
|
|
OAM_DOCKER_DIR=$(docker exec kind-control-plane crictl inspect --output go-template --template '{{range .info.runtimeSpec.mounts}}{{if (eq .destination "/workspace/data")}}{{.source}}{{end}}{{end}}' "${OAM_CONTAINER_ID}")
|
|
echo "${OAM_CONTAINER_ID}"
|
|
echo "${OAM_DOCKER_DIR}"
|
|
|
|
docker exec kind-control-plane crictl exec "${OAM_CONTAINER_ID}" kill -2 1
|
|
|
|
file=$OAM_DOCKER_DIR/e2e-profile.out
|
|
echo $file
|
|
n=1
|
|
while [ $n -le 60 ];do
|
|
if_exist=$(docker exec kind-control-plane sh -c "test -f $file && echo 'ok'")
|
|
echo $if_exist
|
|
if [ -n "$if_exist" ];then
|
|
docker exec kind-control-plane cat $file > /tmp/oam-e2e-profile.out
|
|
break
|
|
fi
|
|
echo file not generated yet
|
|
n=$(expr $n + 1)
|
|
sleep 1
|
|
done |