Skip to content

Commit 602ae18

Browse files
authored
Merge pull request apache#457 from mrhillsman/theopenlab/openlab#211
Add kind testing against ARM64
2 parents 70db21f + 4e6e301 commit 602ae18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1489
-13
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
- hosts: all
2+
# TODO create a role export-kind-gcp-account and add here
3+
become: yes
4+
tasks:
5+
- name: Upload conformance test result to testgrid
6+
shell:
7+
cmd: |
8+
set -e
9+
set -x
10+
# install gsutil, upload_e2e.py depends on it
11+
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
12+
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
13+
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add
14+
apt-get update && apt-get install google-cloud-sdk --yes
15+
apt-get install google-cloud-sdk-app-engine-java --yes
16+
export LOG_DIR='{{ k8s_log_dir }}'
17+
# get upload_e2e.py
18+
wget https://raw.githubusercontent.com/kubernetes/test-infra/master/testgrid/conformance/upload_e2e.py
19+
# TODO(RuiChen): Add timestamp for e2e.log in order to workaround upload_e2e.py bug
20+
date +"%b %e %H:%M:%S.999: DONE" >> $LOG_DIR/e2e.log
21+
PIPELINE_LOGS_DIR='periodic-logs'
22+
if [ '{{ zuul.pipeline }}' != 'periodic' ]; then
23+
PIPELINE_LOGS_DIR='pr-logs'
24+
fi
25+
# upload e2e log to google storage
26+
python upload_e2e.py --junit=$LOG_DIR/junit*.xml --log=$LOG_DIR/e2e.log \
27+
--bucket=gs://k8s-conformance-openstack/$PIPELINE_LOGS_DIR/ci-'{{ zuul.job }}' \
28+
--key-file='{{ hostvars[inventory_hostname]["gcp_key_file"] }}'
29+
executable: /bin/bash
30+
environment: '{{ global_env }}'
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
- hosts: all
3+
become: yes
4+
roles:
5+
- config-golang
6+
- install-docker-ce
7+
- andrewrothstein.bazel
8+
vars:
9+
- go_version: 1.12
10+
- bazel_ver: '0.23.1'
11+
12+
tasks:
13+
- name: git required repositories
14+
shell:
15+
cmd: |
16+
go get sigs.k8s.io/kind
17+
go get k8s.io/kubeadm
18+
go get k8s.io/kubernetes
19+
go get k8s.io/test-infra
20+
executable: /bin/bash
21+
environment: '{{ global_env }}'
22+
- name: build KIND against k/k master using bazel
23+
shell:
24+
cmd: |
25+
cd $GOPATH/src/sigs.k8s.io/kind && go install .
26+
kind build base-image --image kindest/base:latest --source $GOPATH/src/sigs.k8s.io/kind/images/base --loglevel debug
27+
kind build node-image --type bazel --image kindest/node:latest --base-image kindest/base:latest --kube-root=$GOPATH/src/k8s.io/kubernetes/ --loglevel debug
28+
executable: /bin/bash
29+
environment: '{{ global_env }}'
30+
31+
- name: run with kubetest
32+
shell:
33+
cmd: |
34+
cd $GOPATH/src/k8s.io/test-infra/kubetest && go install .
35+
cd $GOPATH/src/k8s.io/kubernetes && kubetest \
36+
--provider=skeleton \
37+
--deployment=kind \
38+
--kind-binary-version=build \
39+
--kind-base-image="kindest/base:latest" \
40+
--kind-config-path=./../../k8s.io/kubeadm/tests/e2e/kind/single-cp/single-cp.yaml \
41+
--build=bazel \
42+
--up \
43+
--test \
44+
--check-version-skew=false \
45+
--down \
46+
--test_args="--ginkgo.focus=\[Conformance\] --ginkgo.skip=\[Serial\]|Alpha|Kubectl|\[(Disruptive|Feature:[^\]]+|Flaky)\] --num-nodes=3" \
47+
--timeout=120m
48+
executable: /bin/bash
49+
environment: '{{ global_env }}'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**~
2+
*.retry
3+
.ansible-roles/
4+
Dockerfile.*
5+
requirements.yml
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
sudo: required
3+
4+
services:
5+
- docker
6+
7+
language: python
8+
python: "2.7"
9+
10+
addons:
11+
apt:
12+
packages:
13+
- python-pip
14+
15+
branches:
16+
except:
17+
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
18+
19+
env:
20+
- OS=alpine_3.6
21+
- OS=alpine_3.7
22+
- OS=alpine_3.8
23+
- OS=alpine_edge
24+
25+
before_install:
26+
- pip install ansible-galaxy-local-deps dcb==0.0.14
27+
- ansible-galaxy-local-deps-write
28+
29+
script:
30+
- >-
31+
dcb
32+
--upstreamgroup andrewrothstein
33+
--upstreamapp docker-ansible-role
34+
--pull ${OS}
35+
--write ${OS}
36+
--build ${OS}
37+
--push ${OS}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Andrew Rothstein
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
andrewrothstein.alpine-glibc-shim
2+
=========
3+
[![Build Status](https://travis-ci.org/andrewrothstein/ansible-alpine-glibc-shim.svg?branch=master)](https://travis-ci.org/andrewrothstein/ansible-alpine-glibc-shim)
4+
5+
Mostly pieced together from [alpine-pkg-glibc](https://github.com/sgerrand/alpine-pkg-glibc) and [docker-alpine-glibc](https://github.com/frol/docker-alpine-glibc). Ideally allows me to use glibc compiled stuffs on Alpine Linux.
6+
7+
Requirements
8+
------------
9+
10+
See [meta/main.yml](meta/main.yml)
11+
12+
Role Variables
13+
--------------
14+
15+
See [defaults/main.yml](defaults/main.yml)
16+
17+
Dependencies
18+
------------
19+
20+
See [meta/main.yml](meta/main.yml)
21+
22+
Example Playbook
23+
----------------
24+
25+
```yml
26+
- hosts: servers
27+
roles:
28+
- andrewrothstein.alpine-glibc-shim
29+
```
30+
31+
License
32+
-------
33+
34+
MIT
35+
36+
Author Information
37+
------------------
38+
39+
Andrew Rothstein <[email protected]>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
machine:
3+
services:
4+
- docker
5+
6+
dependencies:
7+
pre:
8+
- sudo -H pip install --upgrade pip
9+
- sudo -H pip install circleci-helpers ansible-galaxy-local-deps dcb==0.0.14
10+
- ansible-galaxy-local-deps-write
11+
12+
test:
13+
override:
14+
- ? |
15+
circle-matrix <<"EHD"
16+
env:
17+
- OS=alpine_3.6
18+
- OS=alpine_3.7
19+
- OS=alpine_3.8
20+
- OS=alpine_edge
21+
22+
script:
23+
- >-
24+
dcb
25+
--upstreamgroup andrewrothstein
26+
--upstreamapp docker-ansible-role
27+
--write ${OS}
28+
--build ${OS}
29+
--push ${OS}
30+
31+
EHD
32+
:
33+
parallel: true
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
alpine_glibc_shim_key_mirror: https://alpine-pkgs.sgerrand.com
3+
alpine_glibc_shim_key: sgerrand.rsa.pub
4+
alpine_glibc_shim_mirror: https://github.com/sgerrand/alpine-pkg-glibc/releases/download
5+
alpine_glibc_shim_ver: '2.28-r0'
6+
alpine_glibc_shim_pkg_prefixes:
7+
- glibc
8+
- glibc-bin
9+
- glibc-i18n
10+
alpine_glibc_shim_checksums:
11+
'2.26-r0':
12+
glibc: sha256:cece2d9ae482be7278c3122e4d26606db47a903cd011e1a27794261e8e6bfb39
13+
glibc-bin: sha256:5ebd010410d014d6b6469902fdc0eb9adf7abfce0d3fa79d0b93ced59a358f8c
14+
glibc-i18n: sha256:af7177bd8722d4b18c1bd5065fbcfcd001d9a13bafdde1912b369717c54886fc
15+
'2.27-r0':
16+
glibc: sha256:938bceae3b83c53e7fa9cc4135ce45e04aae99256c5e74cf186c794b97473bc7
17+
glibc-bin: sha256:3a87874e57b9d92e223f3e90356aaea994af67fb76b71bb72abfb809e948d0d6
18+
glibc-i18n: sha256:78aff62b3185673c3434334b419ab3dc618af8ed6aeb3afe52a7dc585acb62c8
19+
'2.28-r0':
20+
# https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
21+
glibc: sha256:f0a00f56fdee9dc888bafec0bf8f54fb188e99b5346032251abb79ef9c99f079
22+
# https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-bin-2.28-r0.apk
23+
glibc-bin: sha256:b9a0d8359b12a9768f6378156f160d40f8e432e78e0b2aabc9d0a81e216e7f49
24+
# https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-i18n-2.28-r0.apk
25+
glibc-i18n: sha256:948aa0a87b2b93cef561d31c02060a162d592a3545af56171c3f8b0d6f918a48
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# handlers file for alpine-glibc-shim
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{install_date: 'Mon Mar 11 21:19:55 2019', version: v2.0.7}

0 commit comments

Comments
 (0)