-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
397 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,3 +142,37 @@ jobs: | |
with: | ||
name: none_on_ubuntu_latest_report | ||
path: report | ||
podman_ubuntu_18_04: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install podman | ||
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 | ||
- name: build binaries | ||
run : | | ||
make minikube-linux-amd64 | ||
make e2e-linux-amd64 | ||
- name: install gopogh | ||
run: | | ||
cd /tmp | ||
GO111MODULE="on" go get github.com/medyagh/[email protected] || true | ||
cd - | ||
- name: run integration test | ||
run: | | ||
mkdir -p /tmp/testhome | ||
MINIKUBE_HOME=/tmp/testhome sudo -E ./out/e2e-linux-amd64 -minikube-start-args=--vm-driver=podman -expected-default-driver= -test.timeout=70m -test.v -binary=out/minikube-linux-amd64 2>&1 | tee ./report/testout.txt | ||
- name: generate gopogh report | ||
run: | | ||
export PATH=${PATH}:`go env GOPATH`/bin | ||
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true | ||
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/ || true | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: podman_on_ubuntu_latest_report | ||
path: report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,13 @@ | |
readonly TEST_ROOT="${HOME}/minikube-integration" | ||
readonly TEST_HOME="${TEST_ROOT}/${OS_ARCH}-${VM_DRIVER}-${MINIKUBE_LOCATION}-$$-${COMMIT}" | ||
export GOPATH="$HOME/go" | ||
export KUBECONFIG="${TEST_HOME}/kubeconfig" | ||
export PATH=$PATH:"/usr/local/bin/:/usr/local/go/bin/:$GOPATH/bin" | ||
|
||
# installing golang so we could do go get for gopogh | ||
sudo ./installers/check_install_golang.sh "1.13.4" "/usr/local" || true | ||
|
||
|
||
echo ">> Starting at $(date)" | ||
echo "" | ||
echo "arch: ${OS_ARCH}" | ||
|
@@ -42,6 +47,7 @@ echo "uptime: $(uptime)" | |
# Setting KUBECONFIG prevents the version ceck from erroring out due to permission issues | ||
echo "kubectl: $(env KUBECONFIG=${TEST_HOME} kubectl version --client --short=true)" | ||
echo "docker: $(docker version --format '{{ .Client.Version }}')" | ||
echo "podman: $(sudo podman version --format '{{.Version}}' || true)" | ||
echo "go: $(go version || true)" | ||
|
||
|
||
|
@@ -235,7 +241,6 @@ cleanup_stale_routes || true | |
|
||
mkdir -p "${TEST_HOME}" | ||
export MINIKUBE_HOME="${TEST_HOME}/.minikube" | ||
export KUBECONFIG="${TEST_HOME}/kubeconfig" | ||
|
||
|
||
# Build the gvisor image so that we can integration test changes to pkg/gvisor | ||
|
@@ -319,7 +324,7 @@ touch "${JSON_OUT}" | |
echo ">> Running go test2json" | ||
go tool test2json -t < "${TEST_OUT}" > "${JSON_OUT}" || true | ||
echo ">> Installing gopogh" | ||
cd /tmp | ||
cd $(mktemp -d) | ||
GO111MODULE="on" go get -u github.com/medyagh/[email protected] || true | ||
cd - | ||
echo ">> Running gopogh" | ||
|
@@ -347,7 +352,7 @@ fi | |
|
||
echo ">> Cleaning up after ourselves ..." | ||
${SUDO_PREFIX}${MINIKUBE_BIN} tunnel --cleanup || true | ||
${SUDO_PREFIX}${MINIKUBE_BIN} delete --all >/dev/null 2>/dev/null || true | ||
${SUDO_PREFIX}${MINIKUBE_BIN} delete --all --purge >/dev/null 2>/dev/null || true | ||
cleanup_stale_routes || true | ||
|
||
${SUDO_PREFIX} rm -Rf "${MINIKUBE_HOME}" || true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2019 The Kubernetes Authors All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
|
||
# This script runs the integration tests on a Linux machine for the KVM Driver | ||
|
||
# The script expects the following env variables: | ||
# MINIKUBE_LOCATION: GIT_COMMIT from upstream build. | ||
# COMMIT: Actual commit ID from upstream build | ||
# EXTRA_BUILD_ARGS (optional): Extra args to be passed into the minikube integrations tests | ||
# access_token: The Github API access token. Injected by the Jenkins credential provider. | ||
|
||
set -e | ||
|
||
OS_ARCH="linux-amd64" | ||
VM_DRIVER="podman" | ||
JOB_NAME="Podman_Linux" | ||
|
||
mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES" | ||
sudo install cron/cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot || echo "FAILED TO INSTALL CLEANUP" | ||
SUDO_PREFIX="sudo -E " | ||
|
||
EXTRA_ARGS="--container-runtime=containerd" | ||
|
||
# remove possible left over podman containers | ||
sudo podman rm -f -v $(sudo podman ps -aq) || true | ||
|
||
source ./common.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.