Skip to content

Commit 1b6ddef

Browse files
authored
[ci][full-ci] update config to use new smaller squish image (#11713)
* ci: update drone config for new smaller squish image ci: share lib64 path ci: refactor squish options * ci: fix volumen name
1 parent 52b3031 commit 1b6ddef

File tree

1 file changed

+37
-14
lines changed

1 file changed

+37
-14
lines changed

.drone.star

+37-14
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ dir = {
5151
"guiTestReport": "/drone/src/test/gui/guiReportUpload",
5252
"build": "/drone/src/build",
5353
"pythonModules": "/usr/local/lib/python3.10/site-packages",
54+
"pythonModules64": "/usr/local/lib64/python3.10/site-packages",
5455
}
5556

5657
notify_channels = {
@@ -77,14 +78,26 @@ build_config = {
7778
"command": "ninja",
7879
}
7980

80-
pip_pipeline_volume = [{
81-
"name": "python",
82-
"temp": {},
83-
}]
84-
pip_step_volume = [{
85-
"name": "python",
86-
"path": dir["pythonModules"],
87-
}]
81+
pip_pipeline_volume = [
82+
{
83+
"name": "python",
84+
"temp": {},
85+
},
86+
{
87+
"name": "python64",
88+
"temp": {},
89+
},
90+
]
91+
pip_step_volume = [
92+
{
93+
"name": "python",
94+
"path": dir["pythonModules"],
95+
},
96+
{
97+
"name": "python64",
98+
"path": dir["pythonModules64"],
99+
},
100+
]
88101

89102
config = {
90103
"gui-tests": {
@@ -186,7 +199,14 @@ def unit_test_pipeline(ctx):
186199
def gui_test_pipeline(ctx):
187200
pipelines = []
188201
for server, params in config["gui-tests"]["servers"].items():
189-
squish_parameters = "--reportgen html,%s --envvar QT_LOGGING_RULES=sync.httplogger=true;gui.socketapi=false --tags ~@skip --tags ~@skipOnLinux" % dir["guiTestReport"]
202+
squish_parameters = [
203+
"--testsuite %s" % dir["guiTest"],
204+
"--reportgen html,%s" % dir["guiTestReport"],
205+
"--envvar QT_LOGGING_RULES=sync.httplogger=true;gui.socketapi=false",
206+
"--tags ~@skip",
207+
"--tags ~@skipOnLinux",
208+
]
209+
190210
if params.get("skip", False):
191211
continue
192212
if ctx.build.event == "pull_request" and params.get("skip_in_pr", False) and not "full-ci" in ctx.build.title.lower():
@@ -199,7 +219,8 @@ def gui_test_pipeline(ctx):
199219
pipeline_name = "GUI-tests-%s" % server
200220

201221
if params["tags"]:
202-
squish_parameters += " --tags %s" % params["tags"]
222+
squish_parameters.append("--tags %s" % params["tags"])
223+
squish_parameters = " ".join(squish_parameters)
203224

204225
steps = skipIfUnchanged(ctx, "gui-tests") + \
205226
build_client(OC_CI_SQUISH, False)
@@ -216,7 +237,7 @@ def gui_test_pipeline(ctx):
216237
databaseService()
217238
else:
218239
steps += ocisService(params["version"]) + \
219-
waitForOcisService()
240+
waitForService("ocis", "ocis:9200")
220241

221242
steps += installPnpm() + \
222243
install_python_modules() + \
@@ -599,12 +620,14 @@ def ocisService(server_version = "latest"):
599620
],
600621
}]
601622

602-
def waitForOcisService():
623+
def waitForService(name, servers):
624+
if type(servers) == "string":
625+
servers = [servers]
603626
return [{
604-
"name": "wait-for-ocis",
627+
"name": "wait-for-%s" % name,
605628
"image": OC_CI_WAIT_FOR,
606629
"commands": [
607-
"wait-for -it ocis:9200 -t 300",
630+
"wait-for -it %s -t 300" % ",".join(servers),
608631
],
609632
}]
610633

0 commit comments

Comments
 (0)