Skip to content

Commit 5966b3e

Browse files
Get a subset from Launchable to test with (#346)
Add a Launchable subset analysis compared to our own tests set. Signed-off-by: Brian J. Murrell <[email protected]>
1 parent 1560ea4 commit 5966b3e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

vars/functionalTest.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ void call(Map config = [:]) {
110110
sh label: 'Send build data',
111111
/* groovylint-disable-next-line GStringExpressionWithinString */
112112
script: '''export PATH=$PATH:$HOME/.local/bin
113-
launchable record build --name ${BUILD_TAG//%2F/-} --source src=.'''
113+
launchable record build --name ${BUILD_TAG//%2F/-} --source src=.
114+
launchable subset --time 60m --build ${BUILD_TAG//%2F/-} ''' +
115+
'--get-tests-from-previous-sessions --rest=rest.txt raw > subset.txt'
114116
}
115117

116118
if (config.get('test_function', 'runTestFunctional') ==

vars/functionalTestPostV2.groovy

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ void call(Map config = [:]) {
7979
config.get('artifacts', env.STAGE_NAME + '/**')
8080
archiveArtifacts(artifacts: artifacts)
8181

82+
// Analyze test failures
83+
String jobName = env.JOB_NAME.replace('/', '_')
84+
jobName += '_' + env.BUILD_NUMBER
85+
String fileName = env.DAOS_STACK_JOB_STATUS_DIR + '/' + jobName
86+
87+
if (fileExists('ci/functional/launchable_analysis')) {
88+
sh(label: 'Analyze failed tests vs. Launchable subset',
89+
script: 'ci/functional/launchable_analysis "' + fileName + '"')
90+
91+
}
92+
8293
sh(label: 'Install Launchable',
8394
script: 'pip3 install --user --upgrade launchable~=1.0')
8495

0 commit comments

Comments
 (0)