Split web UI test pipelines

This commit is contained in:
Phil Davis committed 2021-08-05 15:34:32 +05:45
1 parent 309374cda5
commit ed3a5a7f5f
1 file changed
+13 -6
+13 -6
View File
@@ -555,7 +555,7 @@ def uiTests(ctx):
"skip": False, "skip": False,
"earlyFail": False, "earlyFail": False,
# only used if 'full-ci' is in build title # only used if 'full-ci' is in build title
"numberOfParts": 10, "numberOfParts": 20,
"skipExceptParts": [], "skipExceptParts": [],
} }
params = {} params = {}
@@ -582,11 +582,12 @@ def uiTests(ctx):
# For ordinary PRs, always run the "minimal" UI test pipeline # For ordinary PRs, always run the "minimal" UI test pipeline
# That has its own expected-failures file, and we always want to know that it is correct, # That has its own expected-failures file, and we always want to know that it is correct,
if (ctx.build.event != "tag"): if (ctx.build.event != "tag"):
pipelines.append(uiTestPipeline(ctx, filterTags, earlyFail)) pipelines.append(uiTestPipeline(ctx, filterTags, earlyFail, 1, 2, "ocis", "smoke"))
pipelines.append(uiTestPipeline(ctx, filterTags, earlyFail, 2, 2, "ocis", "smoke"))
return pipelines return pipelines
def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, storage = "ocis", accounts_hash_difficulty = 4): def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, storage = "ocis", uniqueName = "", accounts_hash_difficulty = 4):
standardFilterTags = "not @skipOnOCIS and not @skip and not @notToImplementOnOCIS and not @federated-server-needed" standardFilterTags = "not @skipOnOCIS and not @skip and not @notToImplementOnOCIS and not @federated-server-needed"
if filterTags == "": if filterTags == "":
finalFilterTags = standardFilterTags finalFilterTags = standardFilterTags
@@ -595,10 +596,16 @@ def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, s
finalFilterTags = filterTags + " and " + standardFilterTags finalFilterTags = filterTags + " and " + standardFilterTags
expectedFailuresFileFilterTags = "-" + filterTags.lstrip("@") expectedFailuresFileFilterTags = "-" + filterTags.lstrip("@")
if numberOfParts == 1: if uniqueName == "":
pipelineName = "Web-Tests-ocis-%s-storage" % storage uniqueNameString = ""
else: else:
pipelineName = "Web-Tests-ocis-%s-storage-%s" % (storage, runPart) finalFilterTags = filterTags + " and " + standardFilterTags
uniqueNameString = "-" + uniqueName
if numberOfParts == 1:
pipelineName = "Web-Tests-ocis%s-%s-storage" % (uniqueNameString, storage)
else:
pipelineName = "Web-Tests-ocis%s-%s-storage-%s" % (uniqueNameString, storage, runPart)
return { return {
"kind": "pipeline", "kind": "pipeline",