From 1aa6112d1e7e7279ff7dbf716dab096d9c98fb95 Mon Sep 17 00:00:00 2001 From: Sawjan Gurung Date: Wed, 6 Dec 2023 19:33:39 +0545 Subject: [PATCH] [tests-only][ci] separate k6 tests pipeline (#7896) * separate k6 pipeline * separate k6 pipeline --- .drone.star | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.drone.star b/.drone.star index e6ca75f643..eaa0834c52 100644 --- a/.drone.star +++ b/.drone.star @@ -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 [{