This is an automated email from the ASF dual-hosted git repository.
bnolsen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git
The following commit(s) were added to refs/heads/main by this push:
new 235c826 reenalbe autest for quiche branch build (#284)
235c826 is described below
commit 235c826058d769b9fa16a53e728c777782833611
Author: Brian Olsen <[email protected]>
AuthorDate: Tue Nov 7 08:19:16 2023 -0700
reenalbe autest for quiche branch build (#284)
---
jenkins/branch/CMakePresets.json | 1 +
jenkins/branch/quiche.pipeline | 38 ++++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/jenkins/branch/CMakePresets.json b/jenkins/branch/CMakePresets.json
index 47c0fa2..c30cf7d 100644
--- a/jenkins/branch/CMakePresets.json
+++ b/jenkins/branch/CMakePresets.json
@@ -77,6 +77,7 @@
"description": "CI Pipeline quiche build",
"inherits": ["ci"],
"cacheVariables": {
+ "ENABLE_AUTEST": "ON",
"OPENSSL_ROOT_DIR": "/opt/boringssl",
"quiche_ROOT": "/opt/quiche",
"ENABLE_QUICHE": true
diff --git a/jenkins/branch/quiche.pipeline b/jenkins/branch/quiche.pipeline
index b4d37d7..a7e48ed 100644
--- a/jenkins/branch/quiche.pipeline
+++ b/jenkins/branch/quiche.pipeline
@@ -87,8 +87,46 @@ pipeline {
echo 'Finished Tests'
}
}
+ stage('AuTest') {
+ steps {
+ echo 'Starting AuTest'
+ dir('src/build/tests') {
+ sh '''#!/bin/bash
+ #set +e
+ set -x
+ # We want to pick up the
OpenSSL-QUIC version of curl in /opt/bin.
+ # The HTTP/3 AuTests depend
upon this, so update the PATH accordingly.
+ export PATH=/opt/bin:${PATH}
+ export PATH=/opt/go/bin:${PATH}
+
+
export_dir="${WORKSPACE}/output/${GITHUB_BRANCH}"
+ mkdir -p ${export_dir}
+
+ pipenv install
+ ./autest.sh --sandbox
/tmp/sandbox || true
+
+ if [ -n "$(ls -A
/tmp/sandbox/)" ]; then
+ touch
${export_dir}/Autest_failures
+ cp -rf /tmp/sandbox/
"${export_dir}"
+ ls "${export_dir}"
+ sudo chmod -R 777
${WORKSPACE}
+ exit 1
+ else
+ touch
${export_dir}/No_autest_failures
+ sudo chmod -R 777
${WORKSPACE}
+ exit 0
+ fi
+ '''
+ }
+ }
+ }
}
post {
+ always {
+ // We exclude socket files because archiveArtifacts
doesn't deal well with
+ // their file type.
+ archiveArtifacts artifacts: 'output/**/*', fingerprint:
false, allowEmptyArchive: true, excludes: '**/*.sock, **/cache.db'
+
cleanup {
cleanWs()
}