Skip to content

Commit 2d7d62e

Browse files
authored
DAOS-16500 test: Use daos 15.5 RPMs on Leap 15.6 image (#452)
Provision the Functional on Leap 15.6 stage with the 15.6 image but install daos 15.5 RPMs as building 15.6 daos RPMs is not yet supported. Signed-off-by: Phil Henderson <[email protected]>
1 parent 4b067c2 commit 2d7d62e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

vars/functionalTest.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ Map call(Map config = [:]) {
6565

6666
Map stage_info = parseStageInfo(config)
6767

68+
String image_version = config.get(
69+
'image_version',
70+
(stage_info['ci_target'] =~ /([a-z]+)(.*)/)[0][1] + stage_info['distro_version'])
71+
6872
// Install any additional rpms required for this stage
6973
String stage_inst_rpms = config.get('inst_rpms', '')
7074
if (stage_info['stage_rpms']) {
@@ -83,7 +87,7 @@ Map call(Map config = [:]) {
8387
Map runData = provisionNodes(
8488
NODELIST: nodelist,
8589
node_count: stage_info['node_count'],
86-
distro: (stage_info['ci_target'] =~ /([a-z]+)(.*)/)[0][1] + stage_info['distro_version'],
90+
distro: image_version,
8791
inst_repos: config.get('inst_repos', ''),
8892
inst_rpms: stage_inst_rpms)
8993

vars/getFunctionalTestStage.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
1818
* default_nvme launch.py --nvme argument to use when no parameter or commit pragma exist
1919
* provider launch.py --provider argument to use
2020
* distro functional test stage distro (VM)
21+
* image_version image version to use for provisioning, e.g. el8.8, leap15.6, etc.
2122
* base_branch if specified, checkout sources from this branch before running tests
2223
* run_if_pr whether or not the stage should run for PR builds
2324
* run_if_landing whether or not the stage should run for landing builds
@@ -35,6 +36,7 @@ Map call(Map kwargs = [:]) {
3536
String default_nvme = kwargs.get('default_nvme')
3637
String provider = kwargs.get('provider', '')
3738
String distro = kwargs.get('distro')
39+
String image_version = kwargs.get('image_version', null)
3840
String base_branch = kwargs.get('base_branch')
3941
String other_packages = kwargs.get('other_packages', '')
4042
Boolean run_if_pr = kwargs.get('run_if_pr', false)
@@ -78,6 +80,7 @@ Map call(Map kwargs = [:]) {
7880
job_status,
7981
name,
8082
functionalTest(
83+
image_version: image_version,
8184
inst_repos: daosRepos(distro),
8285
inst_rpms: functionalPackages(1, next_version, 'tests-internal') + ' ' + other_packages,
8386
test_tag: tags,

vars/parseStageInfo.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ Map call(Map config = [:]) {
103103
new_ci_target = cachedCommitPragma('LEAP15-target', result['target'])
104104
} else if (stage_name.contains('Leap 15.6')) {
105105
result['target'] = 'leap15'
106-
result['distro_version'] = cachedCommitPragma('LEAP15-version', '15.6')
106+
// Until a mock opensuse-leap-15.6-x86-64.cfg is available provision with 15.5
107+
result['distro_version'] = cachedCommitPragma('LEAP15-version', '15.5')
107108
new_ci_target = cachedCommitPragma('LEAP15-target', result['target'])
108109
} else if (stage_name.contains('Leap 15')) {
109110
result['target'] = 'leap15'

0 commit comments

Comments
 (0)