From a0bb1a98d64825eee97c9acb0da290c97e50beac Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Fri, 28 Oct 2022 11:35:52 -0400 Subject: [PATCH] Get a subset from Launchable to test with Add a Launchable subset analysis compared to our own tests set. Skip-PR-comments: true Signed-off-by: Brian J. Murrell --- vars/functionalTest.groovy | 4 +++- vars/functionalTestPostV2.groovy | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/vars/functionalTest.groovy b/vars/functionalTest.groovy index 41e3eb466..2babc0671 100755 --- a/vars/functionalTest.groovy +++ b/vars/functionalTest.groovy @@ -110,7 +110,9 @@ void call(Map config = [:]) { sh label: 'Send build data', /* groovylint-disable-next-line GStringExpressionWithinString */ script: '''export PATH=$PATH:$HOME/.local/bin - launchable record build --name ${BUILD_TAG//%2F/-} --source src=.''' + launchable record build --name ${BUILD_TAG//%2F/-} --source src=. + launchable subset --time 60m --build ${BUILD_TAG//%2F/-} ''' + + '--get-tests-from-previous-sessions --rest=rest.txt raw > subset.txt' } if (config.get('test_function', 'runTestFunctional') == diff --git a/vars/functionalTestPostV2.groovy b/vars/functionalTestPostV2.groovy index 7c39282dd..7027b92eb 100755 --- a/vars/functionalTestPostV2.groovy +++ b/vars/functionalTestPostV2.groovy @@ -79,6 +79,17 @@ void call(Map config = [:]) { config.get('artifacts', env.STAGE_NAME + '/**') archiveArtifacts(artifacts: artifacts) + // Analyze test failures + String jobName = env.JOB_NAME.replace('/', '_') + jobName += '_' + env.BUILD_NUMBER + String fileName = env.DAOS_STACK_JOB_STATUS_DIR + '/' + jobName + + if (fileExists('ci/functional/launchable_analysis')) { + sh(label: 'Analyze failed tests vs. Launchable subset', + script: 'ci/functional/launchable_analysis "' + fileName + '"') + + } + sh(label: 'Install Launchable', script: 'pip3 install --user --upgrade launchable~=1.0')