Skip to content

Commit

Permalink
gen .make/go-pkgdeps.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoxu committed Nov 15, 2024
1 parent 556548b commit 05e18d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion hack/test_cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ make generated_files kubeadm
./build/run.sh make all WHAT=cmd/kubeadm
mkdir -p _output/local/go/bin/ && cp _output/dockerized/bin/linux/amd64/kubeadm _output/local/go/bin/
./hack/install-etcd.sh
TERM=linux PATH=$(pwd)/third_party/etcd:${PATH} make test-cmd
' 2>&1 | grep -v -E '^I\w+ ' && exit 0
done
14 changes: 14 additions & 0 deletions hack/test_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set -o pipefail

source "kit/helper.sh"
cd "${WORKDIR}"
export KUBE_ROOT=$(dirname "$(readlink -f "$0")")/../src/github.com/kubernetes/kubernetes/
export TERM=linux
echo "KUBE_ROOT directory: $KUBE_ROOT"

TMPFILE="${TMPDIR}/test-integration.log"

Expand All @@ -14,11 +17,22 @@ function test-integration() {
./build/shell.sh -c '
./hack/install-etcd.sh
PATH=$(pwd)/third_party/etcd:${PATH} make test-integration
'
./build/shell.sh -c '
# v1.24-v1.25
echo `pwd`
mkdir -p .make
touch .make/go-pkgdeps.mk
TERM=linux PATH=$(pwd)/third_party/etcd:${PATH} DBG_CODEGEN=1 make test-integration
'
}

test-integration 2>&1 | tee "${TMPFILE}" | grep -v -E '^I\w+ ' && exit 0

echo "print tmpfile:"
cat "${TMPFILE}"

RETRY_CASES=$(cat "${TMPFILE}" | grep -E '^FAIL\s+k8s.io/kubernetes' | awk '{print $2}' || echo "")

TAG=$(helper::workdir::version)
Expand Down

0 comments on commit 05e18d8

Please sign in to comment.