Skip to content

Commit

Permalink
[full-ci]chore: bump web to v9.0.0-alpha.3 (#8736)
Browse files Browse the repository at this point in the history
* chore: bump web to v9.0.0-alpha.3

* ci(e2e): use e2e runner to run the tests

* ci(e2e): fix e2e run command

* ci(e2e): fix e2e run command

* chore: adjust changelog item for Web 9.0.0

* Update .drone.env

---------

Co-authored-by: Saw-jan <[email protected]>
Co-authored-by: Jannik Stehle <[email protected]>
  • Loading branch information
3 people authored Mar 26, 2024
1 parent 8f0b536 commit 17b8e5b
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .drone.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# The test runner source for UI tests
WEB_COMMITID=4210a0817386127d3345eaf5fd70a2e0d1ef9f99
WEB_COMMITID=ffa48729dd7d109b8b8b7cc094ed4d18021a3fbe
WEB_BRANCH=master
123 changes: 82 additions & 41 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,16 @@ config = {
"skipExceptParts": [],
},
"e2eTests": {
"skip": False,
"basic": {
"skip": False,
"totalParts": 3, # divide and run all suites in parts (divide pipelines)
"xsuites": ["search", "app-provider"], # suites to skip
},
"search": {
"skip": False,
"suites": ["search"], # suites to run
"tikaNeeded": True,
},
},
"rocketchat": {
"channel": "infinitescale",
Expand Down Expand Up @@ -343,8 +352,7 @@ def testPipelines(ctx):
if "skip" not in config["uiTests"] or not config["uiTests"]["skip"]:
pipelines += uiTests(ctx)

if "skip" not in config["e2eTests"] or not config["e2eTests"]["skip"]:
pipelines += e2eTests(ctx)
pipelines += e2eTestPipeline(ctx)

return pipelines

Expand Down Expand Up @@ -1165,20 +1173,13 @@ def uiTestPipeline(ctx, filterTags, runPart = 1, numberOfParts = 1, storage = "o
},
}

def e2eTests(ctx):
test_suites = {
"suite1": {
"path": "tests/e2e/cucumber/features/{smoke,journeys}/*.feature",
"tikaNeeded": False,
},
"suite2": {
"path": "tests/e2e/cucumber/features/smoke/{spaces,admin-settings}/*.feature",
"tikaNeeded": False,
},
"suite3": {
"path": "tests/e2e/cucumber/features/smoke/{search,shares}/*.feature",
"tikaNeeded": True,
},
def e2eTestPipeline(ctx):
defaults = {
"skip": False,
"suites": [],
"xsuites": [],
"totalParts": 0,
"tikaNeeded": False,
}

extra_server_environment = {
Expand Down Expand Up @@ -1207,40 +1208,80 @@ def e2eTests(ctx):
pipelines = []

if ("skip-e2e" in ctx.build.title.lower()):
return []
return pipelines

if (ctx.build.event == "tag"):
return pipelines

for name, suite in test_suites.items():
steps = \
for name, suite in config["e2eTests"].items():
if "skip" in suite and suite["skip"]:
return pipelines

params = {}
for item in defaults:
params[item] = suite[item] if item in suite else defaults[item]

e2e_args = ""
if params["totalParts"] > 0:
e2e_args = "--total-parts %d" % params["totalParts"]
elif params["suites"]:
e2e_args = "--suites %s" % ",".join(params["suites"])

# suites to skip
if params["xsuites"]:
e2e_args += " --xsuites %s" % ",".join(params["xsuites"])

steps_before = \
skipIfUnchanged(ctx, "e2e-tests") + \
restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin/ocis") + \
restoreWebCache() + \
restoreWebPnpmCache() + \
(tikaService() if suite["tikaNeeded"] else []) + \
ocisServer("ocis", 4, [], extra_server_environment = extra_server_environment, tika_enabled = suite["tikaNeeded"]) + \
[{
"name": "e2e-tests",
"image": OC_CI_NODEJS % DEFAULT_NODEJS_VERSION,
"environment": {
"BASE_URL_OCIS": "ocis-server:9200",
"HEADLESS": "true",
"RETRY": "1",
"WEB_UI_CONFIG_FILE": "%s/%s" % (dirs["base"], dirs["ocisConfig"]),
"LOCAL_UPLOAD_DIR": "/uploads",
},
"commands": [
"cd %s" % dirs["web"],
"pnpm test:e2e:cucumber %s" % suite["path"],
],
}] + \
uploadTracingResult(ctx) + \
logTracingResults()
(tikaService() if params["tikaNeeded"] else []) + \
ocisServer("ocis", 4, [], extra_server_environment = extra_server_environment, tika_enabled = params["tikaNeeded"])

if (ctx.build.event != "tag"):
step_e2e = {
"name": "e2e-tests",
"image": OC_CI_NODEJS % DEFAULT_NODEJS_VERSION,
"environment": {
"BASE_URL_OCIS": "ocis-server:9200",
"HEADLESS": "true",
"RETRY": "1",
"WEB_UI_CONFIG_FILE": "%s/%s" % (dirs["base"], dirs["ocisConfig"]),
"LOCAL_UPLOAD_DIR": "/uploads",
},
"commands": [
"cd %s/tests/e2e" % dirs["web"],
],
}

steps_after = uploadTracingResult(ctx) + \
logTracingResults()

if params["totalParts"]:
for index in range(params["totalParts"]):
run_part = index + 1
run_e2e = {}
run_e2e.update(step_e2e)
run_e2e["commands"] = [
"cd %s/tests/e2e" % dirs["web"],
"bash run-e2e.sh %s --run-part %d" % (e2e_args, run_part),
]
pipelines.append({
"kind": "pipeline",
"type": "docker",
"name": "e2e-tests-%s-%s" % (name, run_part),
"steps": steps_before + [run_e2e] + steps_after,
"depends_on": getPipelineNames([buildOcisBinaryForTesting(ctx)] + buildWebCache(ctx)),
"trigger": e2e_trigger,
"volumes": e2e_volumes,
})
else:
step_e2e["commands"].append("bash run-e2e.sh %s" % e2e_args)
pipelines.append({
"kind": "pipeline",
"type": "docker",
"name": "e2e-tests-%s" % name,
"steps": steps,
"steps": steps_before + [step_e2e] + steps_after,
"depends_on": getPipelineNames([buildOcisBinaryForTesting(ctx)] + buildWebCache(ctx)),
"trigger": e2e_trigger,
"volumes": e2e_volumes,
Expand Down
14 changes: 10 additions & 4 deletions changelog/unreleased/update-web-9.0.0.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Enhancement: Update web to v9.0.0-alpha.2
Enhancement: Update web to v9.0.0-alpha.3

Tags: web

We updated ownCloud Web to v9.0.0-alpha.2. Please refer to the changelog (linked) for details on the web release.
We updated ownCloud Web to v9.0.0-alpha.3. Please refer to the changelog (linked) for details on the web release.

## Summary
* Bugfix [owncloud/web#10377](https://github.com/owncloud/web/pull/10377): User data not updated while altering own user
Expand All @@ -26,6 +26,12 @@ We updated ownCloud Web to v9.0.0-alpha.2. Please refer to the changelog (linked
* Enhancement [owncloud/web#10519](https://github.com/owncloud/web/pull/10519): Warn user before closing browser when upload is in progress
* Enhancement [owncloud/web#10544](https://github.com/owncloud/web/pull/10544): Show locked and processing next to other status indicators
* Enhancement [owncloud/web#10546](https://github.com/owncloud/web/pull/10546): Set emoji as space icon
* Enhancement [owncloud/web#10624](https://github.com/owncloud/web/pull/10624): Add details panel to trash
* Enhancement [owncloud/web#10586](https://github.com/owncloud/web/pull/10586): Add SSE events for locking, renaming, deleting, and restoring
* Enhancement [owncloud/web#10626](https://github.com/owncloud/web/pull/10626): Full text search default
* Enhancement [owncloud/web#10611](https://github.com/owncloud/web/pull/10611): Remember left nav bar state
* Enhancement [owncloud/web#10612](https://github.com/owncloud/web/pull/10612): Remember right nav bar state
* Enhancement [owncloud/web#10558](https://github.com/owncloud/web/pull/10558): Tile sizes

https://github.com/owncloud/ocis/pull/8634
https://github.com/owncloud/web/releases/tag/v9.0.0-alpha.2
https://github.com/owncloud/ocis/pull/8736
https://github.com/owncloud/web/releases/tag/v9.0.0-alpha.3
2 changes: 1 addition & 1 deletion services/web/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL := bash
NAME := web
WEB_ASSETS_VERSION = v9.0.0-alpha.2
WEB_ASSETS_VERSION = v9.0.0-alpha.3

include ../../.make/recursion.mk

Expand Down

0 comments on commit 17b8e5b

Please sign in to comment.