Revision 08535f6e6db0278b1639f0f030ffe668d44fc73b authored by Paul Chaignon on 20 May 2022, 11:12:18 UTC, committed by Gilberto Bertin on 31 May 2022, 14:32:16 UTC
[ upstream commit 54d708e5d812a00451adab99dae01609447de2cf ] The SPI value is expected to take 4 bits at most so it's maximum value should be 15 not 16. Let's fix that in the key rotation documentation. The agent also rejects value 0, so allowed values are [1;15]. Reported-by: Odin Ugedal via Slack Signed-off-by: Paul Chaignon <paul@cilium.io> Signed-off-by: Gilberto Bertin <jibi@cilium.io>
1 parent a3d7371
kubernetes-upstream.Jenkinsfile
@Library('cilium') _
pipeline {
agent {
label 'baremetal'
}
environment {
PROJ_PATH = "src/github.com/cilium/cilium"
TESTDIR="${WORKSPACE}/${PROJ_PATH}/test"
VM_MEMORY = "5120"
K8S_VERSION="1.19"
KERNEL="419"
SERVER_BOX = "cilium/ubuntu-4-19"
CNI_INTEGRATION=setIfLabel("integration/cni-flannel", "FLANNEL", "")
RACE="""${sh(
returnStdout: true,
script: 'if [ "${run_with_race_detection}" = "" ]; then echo -n ""; else echo -n "1"; fi'
)}"""
LOCKDEBUG="""${sh(
returnStdout: true,
script: 'if [ "${run_with_race_detection}" = "" ]; then echo -n ""; else echo -n "1"; fi'
)}"""
BASE_IMAGE="""${sh(
returnStdout: true,
script: 'if [ "${run_with_race_detection}" = "" ]; then echo -n "scratch"; else echo -n "quay.io/cilium/cilium-runtime:2022-03-17-v1.9@sha256:69cb50b7e6be369a22d2014a90e39ab480db95c081663cc0bd23ec993aeaf117"; fi'
)}"""
}
options {
timeout(time: 300, unit: 'MINUTES')
timestamps()
ansiColor('xterm')
}
stages {
stage('Set build name') {
when {
not {
anyOf {
environment name: 'ghprbPullTitle', value: null
environment name: 'ghprbPullLink', value: null
}
}
}
steps {
script {
currentBuild.displayName = env.getProperty('ghprbPullTitle') + ' ' + env.getProperty('ghprbPullLink') + ' ' + currentBuild.displayName
}
}
}
stage('Checkout') {
steps {
sh 'env'
Status("PENDING", "${env.JOB_NAME}")
sh 'rm -rf src; mkdir -p src/github.com/cilium'
sh 'ln -s $WORKSPACE src/github.com/cilium/cilium'
checkout scm
sh '/usr/local/bin/cleanup || true'
}
}
stage('Set programmatic env vars') {
steps {
script {
if (env.ghprbActualCommit?.trim()) {
env.DOCKER_TAG = env.ghprbActualCommit
} else {
env.DOCKER_TAG = env.GIT_COMMIT
}
}
}
}
stage('Preload vagrant boxes'){
steps {
sh '/usr/local/bin/add_vagrant_box ${WORKSPACE}/${PROJ_PATH}/vagrant_box_defaults.rb'
}
}
stage('Boot VMs'){
options {
timeout(time: 70, unit: 'MINUTES')
}
steps {
retry(3){
sh 'cd ${TESTDIR}; vagrant destroy k8s1-${K8S_VERSION} --force'
sh 'cd ${TESTDIR}; vagrant destroy k8s2-${K8S_VERSION} --force'
sh 'cd ${TESTDIR}; CILIUM_REGISTRY=quay.io timeout 20m vagrant up k8s1-${K8S_VERSION} k8s2-${K8S_VERSION}'
}
}
}
stage('BDD-tests'){
options {
timeout(time: 150, unit: 'MINUTES')
}
steps {
sh 'cd ${TESTDIR}; vagrant ssh k8s1-${K8S_VERSION} -c "cd /home/vagrant/go/${PROJ_PATH}; sudo ./test/kubernetes-test.sh ${DOCKER_TAG}"'
}
}
stage('Netperf tests'){
when {
environment name: 'GIT_BRANCH', value: 'origin/master'
}
options {
timeout(time: 300, unit: 'MINUTES')
}
environment {
PROMETHEUS_URL="https://metrics.cilium.io/metrics/job/upstream_job"
PROMETHEUS=credentials("metrics")
}
steps {
sh '''
cd ${TESTDIR}; vagrant ssh k8s1-${K8S_VERSION} -c "
cd /home/vagrant/go/${PROJ_PATH}/test;
./kubernetes-netperftest.sh '$PROMETHEUS_URL' '$PROMETHEUS_USR' '$PROMETHEUS_PSW'"
'''
}
}
}
post {
always {
sh 'lscpu'
sh 'cd ${TESTDIR}; K8S_VERSION=${K8S_VERSION} vagrant destroy -f || true'
cleanWs()
sh '/usr/local/bin/cleanup || true'
}
success {
Status("SUCCESS", "$JOB_BASE_NAME")
}
failure {
Status("FAILURE", "$JOB_BASE_NAME")
}
}
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...