Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion vars/functionalTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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') ==
Expand Down
11 changes: 11 additions & 0 deletions vars/functionalTestPostV2.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down