Skip to content

Commit

Permalink
Skip S3 tests for 10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanLiviuVarzaru committed Dec 11, 2024
1 parent 71cbb23 commit 73dd9f9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions common_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,11 @@ def addGaleraTests(factory, mtrDbPool):


def addS3Tests(factory, mtrDbPool):
runS3 = (
lambda props: hasS3(props)
and props.hasProperty("compile_step_completed")
and "10.5" not in str(props.getProperty("master_branch"))
)
factory.addStep(
steps.MasterShellCommand(
name="Create minio S3 bucket",
Expand All @@ -463,8 +468,7 @@ def addS3Tests(factory, mtrDbPool):
"mb",
util.Interpolate("minio/%(prop:buildername)s-%(prop:buildnumber)s"),
],
doStepIf=lambda props: hasS3(props)
and props.hasProperty("compile_step_completed"),
doStepIf=runS3,
)
)
factory.addStep(
Expand Down Expand Up @@ -502,8 +506,7 @@ def addS3Tests(factory, mtrDbPool):
"S3_USE_HTTP": "OFF",
"S3_SSL_NO_VERIFY": "ON",
},
doStepIf=lambda props: hasS3(props)
and props.hasProperty("compile_step_completed"),
doStepIf=runS3,
)
)

Expand All @@ -517,8 +520,7 @@ def addS3Tests(factory, mtrDbPool):
"--force",
util.Interpolate("minio/%(prop:buildername)s-%(prop:buildnumber)s"),
],
doStepIf=lambda props: hasS3(props)
and props.hasProperty("compile_step_completed"),
doStepIf=runS3,
)
)

Expand All @@ -534,8 +536,7 @@ def addS3Tests(factory, mtrDbPool):
jobs=util.Property("jobs", default="$(getconf _NPROCESSORS_ONLN)"),
),
],
doStepIf=lambda props: hasS3(props)
and props.hasProperty("compile_step_completed"),
doStepIf=runS3,
)
)
return factory
Expand Down

0 comments on commit 73dd9f9

Please sign in to comment.