Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 31 additions & 15 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ config = {
"apiLocks",
],
"skip": False,
"k8s": False,
"k8s": True,
},
"settingsAndNotification": {
"suites": [
Expand All @@ -109,6 +109,7 @@ config = {
"apiCors",
],
"skip": False,
"k8s": True,
"withRemotePhp": [False],
"emailNeeded": True,
"extraEnvironment": {
Expand All @@ -130,21 +131,21 @@ config = {
],
"skip": False,
"withRemotePhp": [False],
"k8s": False,
"k8s": True,
},
"spaces": {
"suites": [
"apiSpaces",
],
"skip": False,
"k8s": False,
"k8s": True,
},
"spacesShares": {
"suites": [
"apiSpacesShares",
],
"skip": False,
"k8s": False,
"k8s": True,
},
"davOperations": {
"suites": [
Expand All @@ -156,6 +157,7 @@ config = {
"apiActivities",
],
"skip": False,
"k8s": True,
},
"groupAndSearch1": {
"suites": [
Expand All @@ -165,7 +167,7 @@ config = {
"apiServiceAvailability",
],
"skip": False,
"k8s": False,
"k8s": True,
},
"search2": {
"suites": [
Expand All @@ -174,7 +176,7 @@ config = {
],
"tikaNeeded": True,
"skip": False,
"k8s": False,
"k8s": True,
},
"sharingNg1": {
"suites": [
Expand All @@ -184,14 +186,14 @@ config = {
],
"skip": False,
"withRemotePhp": [False],
"k8s": False,
"k8s": True,
},
"sharingNgAdditionalShareRole": {
"suites": [
"apiSharingNgAdditionalShareRole",
],
"skip": False,
"k8s": False,
"k8s": True,
"withRemotePhp": [False],
},
"sharingNgShareInvitation": {
Expand All @@ -200,6 +202,7 @@ config = {
"apiSharingNgItemInvitation",
],
"skip": False,
"k8s": True,
"withRemotePhp": [False],
},
"sharingNgLinkShare": {
Expand All @@ -209,13 +212,15 @@ config = {
"apiSharingNgLinkShareManagement",
],
"skip": False,
"k8s": True,
"withRemotePhp": [False],
},
"antivirus": {
"suites": [
"apiAntivirus",
],
"skip": False,
"k8s": True,
"antivirusNeeded": True,
"extraServerEnvironment": {
"ANTIVIRUS_SCANNER_TYPE": "clamav",
Expand All @@ -231,6 +236,7 @@ config = {
"apiAuthApp",
],
"skip": False,
"k8s": True,
"withRemotePhp": [False],
"federationServer": True,
"emailNeeded": True,
Expand Down Expand Up @@ -259,6 +265,7 @@ config = {
"apiCollaboration",
],
"skip": False,
"k8s": True,
"withRemotePhp": [False],
"collaborationServiceNeeded": True,
"extraServerEnvironment": {
Expand All @@ -270,6 +277,7 @@ config = {
"cliCommands",
],
"skip": False,
"k8s": True,
"withRemotePhp": [False],
"antivirusNeeded": True,
"emailNeeded": True,
Expand Down Expand Up @@ -299,6 +307,7 @@ config = {
"coreApiVersions",
],
"skip": False,
"k8s": True,
"withRemotePhp": [False],
},
"2": {
Expand All @@ -307,7 +316,7 @@ config = {
"coreApiShareManagementToShares",
],
"skip": False,
"k8s": False,
"k8s": True,
"withRemotePhp": [False],
},
"3": {
Expand All @@ -316,6 +325,7 @@ config = {
"coreApiSharePublicLink2",
],
"skip": False,
"k8s": True,
"withRemotePhp": [False],
},
"4": {
Expand All @@ -328,7 +338,7 @@ config = {
"coreApiShareUpdateToShares",
],
"skip": False,
"k8s": False,
"k8s": True,
"withRemotePhp": [False],
},
"5": {
Expand All @@ -339,7 +349,7 @@ config = {
"coreApiWebdavEtagPropagation2",
],
"skip": False,
"k8s": False,
"k8s": True,
},
"6": {
"suites": [
Expand All @@ -348,13 +358,14 @@ config = {
"coreApiWebdavMove2",
],
"skip": False,
"k8s": True,
},
"7": {
"suites": [
"coreApiWebdavProperties",
],
"skip": False,
"k8s": False,
"k8s": True,
},
"8": {
"suites": [
Expand All @@ -364,21 +375,25 @@ config = {
"coreApiWebdavUploadTUS",
],
"skip": False,
"k8s": True,
},
},
"e2eTests": {
"part": {
"skip": False,
"k8s": True,
"totalParts": 4, # divide and run all suites in parts (divide pipelines)
"xsuites": ["search", "app-provider", "oidc", "ocm", "keycloak"], # suites to skip
},
"search": {
"skip": False,
"suites": ["search"], # suites to run
"tikaNeeded": True,
"k8s": True,
},
"keycloak": {
"skip": False,
"k8s": True,
"suites": ["journeys", "keycloak"],
"keycloakNeeded": True,
},
Expand All @@ -395,6 +410,7 @@ config = {
"spaces",
],
"tikaNeeded": True,
"k8s": True,
},
},
"binaryReleases": {
Expand Down Expand Up @@ -1091,7 +1107,7 @@ def localApiTestPipeline(ctx):
params[item] = matrix[item] if item in matrix else defaults[item]
for storage in params["storages"]:
for run_with_remote_php in params["withRemotePhp"]:
run_on_k8s = params["k8s"] and ctx.build.event == "cron"
run_on_k8s = params["k8s"]
ocis_url = OCIS_URL
if run_on_k8s:
ocis_url = "https://%s" % OCIS_SERVER_NAME
Expand Down Expand Up @@ -1393,7 +1409,7 @@ def coreApiTestPipeline(ctx):
for run_with_remote_php in params["withRemotePhp"]:
filter_tags = "~@skipOnGraph&&~@skipOnOcis-%s-Storage" % ("OC" if storage == "owncloud" else "OCIS")
expected_failures_file = "%s/expected-failures-API-on-%s-storage.md" % (test_dir, storage.upper())
run_on_k8s = params["k8s"] and ctx.build.event == "cron"
run_on_k8s = params["k8s"]
ocis_url = OCIS_URL
if run_on_k8s:
ocis_url = "https://%s" % OCIS_SERVER_NAME
Expand Down Expand Up @@ -3871,7 +3887,7 @@ def exposeEmailServiceK8s():

def exposeAntivirusServiceK8s():
return [{
"name": EMAIL_SMTP_HOST,
"name": "expose-antivirus",
"image": "ghcr.io/k3d-io/k3d:5-dind",
"commands": [
"kubectl port-forward svc/antivirus 9297:9277 -n ocis",
Expand Down