[tests-only][ci] separate k6 tests pipeline (#7896)

* separate k6 pipeline

* separate k6 pipeline
This commit is contained in:
Sawjan Gurung
2023-12-06 19:33:39 +05:45
committed by GitHub
parent e2bd5d35fe
commit 1aa6112d1e

View File

@@ -281,6 +281,8 @@ def main(ctx):
),
)
pipelines = pipelines + k6LoadTests(ctx)
pipelines += checkStarlark()
pipelineSanityChecks(ctx, pipelines)
return pipelines
@@ -339,9 +341,6 @@ def testPipelines(ctx):
if "skip" not in config["e2eTests"] or not config["e2eTests"]["skip"]:
pipelines += e2eTests(ctx)
if "skip" not in config["k6LoadTests"] or not config["k6LoadTests"]["skip"]:
pipelines += k6LoadTests(ctx)
return pipelines
def getGoBinForTesting(ctx):
@@ -2785,6 +2784,9 @@ def logRequests():
}]
def k6LoadTests(ctx):
if "skip" in config["k6LoadTests"] and config["k6LoadTests"]["skip"]:
return []
ocis_git_base_url = "https://raw.githubusercontent.com/owncloud/ocis"
script_link = "%s/%s/tests/config/drone/run_k6_tests.sh" % (ocis_git_base_url, ctx.build.commit)
return [{