@@ -21,7 +21,6 @@ PLUGINS_SLACK = "plugins/slack:1"
2121SELENIUM_STANDALONE_CHROME_DEBUG = "selenium/standalone-chrome-debug:3.141.59-oxygen"
2222SELENIUM_STANDALONE_FIREFOX_DEBUG = "selenium/standalone-firefox-debug:3.8.1"
2323SONARSOURCE_SONAR_SCANNER_CLI = "sonarsource/sonar-scanner-cli"
24- THEGEEKLAB_DRONE_GITHUB_COMMENT = "thegeeklab/drone-github-comment:1"
2524
2625DEFAULT_PHP_VERSION = "7.4"
2726DEFAULT_NODEJS_VERSION = "14"
@@ -997,7 +996,6 @@ def acceptance(ctx):
997996 "skip" : False ,
998997 "debugSuites" : [],
999998 "skipExceptParts" : [],
1000- "earlyFail" : True ,
1001999 "enableApp" : True ,
10021000 "selUserNeeded" : False ,
10031001 }
@@ -1035,14 +1033,6 @@ def acceptance(ctx):
10351033 if params ["skip" ]:
10361034 continue
10371035
1038- # switch off earlyFail if the PR title contains full-ci
1039- if ("full-ci" in ctx .build .title .lower ()):
1040- params ["earlyFail" ] = False
1041-
1042- # switch off earlyFail when running cron builds (for example, nightly CI)
1043- if (ctx .build .event == "cron" ):
1044- params ["earlyFail" ] = False
1045-
10461036 if "externalScality" in params and len (params ["externalScality" ]) != 0 :
10471037 # We want to use an external scality server for this pipeline.
10481038 # That uses some "standard" extraSetup and extraTeardown.
@@ -1254,7 +1244,7 @@ def acceptance(ctx):
12541244 "path" : "%s/downloads" % dir ["server" ],
12551245 }],
12561246 }),
1257- ] + testConfig ["extraTeardown" ] + githubComment ( params [ "earlyFail" ]) ,
1247+ ] + testConfig ["extraTeardown" ],
12581248 "services" : databaseService (testConfig ["database" ]) +
12591249 browserService (testConfig ["browser" ]) +
12601250 emailService (testConfig ["emailNeeded" ]) +
@@ -2081,33 +2071,6 @@ def buildTestConfig(params):
20812071 configs .append (config )
20822072 return configs
20832073
2084- def githubComment (earlyFail ):
2085- if (earlyFail ):
2086- return [{
2087- "name" : "github-comment" ,
2088- "image" : THEGEEKLAB_DRONE_GITHUB_COMMENT ,
2089- "pull" : "if-not-exists" ,
2090- "settings" : {
2091- "message" : ":boom: Acceptance tests pipeline <strong>${DRONE_STAGE_NAME}</strong> failed. The build has been cancelled.\\ n\\ n${DRONE_BUILD_LINK}/${DRONE_JOB_NUMBER}${DRONE_STAGE_NUMBER}" ,
2092- "key" : "pr-${DRONE_PULL_REQUEST}" ,
2093- "update" : "true" ,
2094- "api_key" : {
2095- "from_secret" : "github_token" ,
2096- },
2097- },
2098- "when" : {
2099- "status" : [
2100- "failure" ,
2101- ],
2102- "event" : [
2103- "pull_request" ,
2104- ],
2105- },
2106- }]
2107-
2108- else :
2109- return []
2110-
21112074def checkStarlark ():
21122075 return [{
21132076 "kind" : "pipeline" ,
0 commit comments