From ad02b40c3c92affadb4be89939fcb956de202a3c Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 2 Jul 2021 11:42:48 +0545 Subject: [PATCH] Override earlyFail if PR title contains full-ci --- .drone.star | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.drone.star b/.drone.star index 8fa08ed749..c95eda042a 100644 --- a/.drone.star +++ b/.drone.star @@ -389,6 +389,10 @@ def uploadScanResults(ctx): def localApiTests(ctx, storage = "owncloud", suite = "apiBugDemonstration", accounts_hash_difficulty = 4): earlyFail = config["localApiTests"]["earlyFail"] if "earlyFail" in config["localApiTests"] else False + + if ("full-ci" in ctx.build.title.lower()): + earlyFail = False + return { "kind": "pipeline", "type": "docker", @@ -435,6 +439,10 @@ def localApiTests(ctx, storage = "owncloud", suite = "apiBugDemonstration", acco def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "owncloud", accounts_hash_difficulty = 4): earlyFail = config["apiTests"]["earlyFail"] if "earlyFail" in config["apiTests"] else False + + if ("full-ci" in ctx.build.title.lower()): + earlyFail = False + return { "kind": "pipeline", "type": "docker", @@ -509,6 +517,9 @@ def uiTests(ctx): filterTags = params["filterTags"] earlyFail = params["earlyFail"] + if ("full-ci" in ctx.build.title.lower()): + earlyFail = False + if ("full-ci" in ctx.build.title.lower() or ctx.build.event == "tag"): numberOfParts = params["numberOfParts"] skipExceptParts = params["skipExceptParts"] @@ -594,6 +605,10 @@ def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, s def accountsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4): earlyFail = config["accountsUITests"]["earlyFail"] if "earlyFail" in config["accountsUITests"] else False + + if ("full-ci" in ctx.build.title.lower()): + earlyFail = False + return { "kind": "pipeline", "type": "docker", @@ -659,6 +674,10 @@ def accountsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4): def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4): earlyFail = config["settingsUITests"]["earlyFail"] if "earlyFail" in config["settingsUITests"] else False + + if ("full-ci" in ctx.build.title.lower()): + earlyFail = False + return { "kind": "pipeline", "type": "docker",