Commit Graph

23 Commits

Author SHA1 Message Date
Jorge Martin Espinosa
494e425de0 CI: Add failed tests to summary (#6271)
* Fix maestro CI flow not writing the successful summary

* Add the test failures to the summary of the `test` CI flow
2026-03-02 11:23:41 +01:00
Jorge Martin Espinosa
f5c250ed7a Fix Maestro tests again (#6167)
* Increase the timeout for asserting 'Be in your element' is visible

* Disable the chrome onboarding flow. This simplifies the code a lot and helps avoid corner cases.

* More delays with timeout!

* Add more info to the summary, specially when the tests fail, so we can quickly check what failed.

* Make sure Maestro tests can't run in parallel, but APK builds can
2026-02-12 16:24:19 +01:00
Benoit Marty
1292da2a72 Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
Benoit Marty
b748fcc631 Copyright: Add final period 2025-11-10 10:13:41 +01:00
Benoit Marty
b71a7056ec Fix CI on screeshot recording 2025-10-06 11:00:30 +02:00
Benoit Marty
8bc92a2a87 Import Compound tests from project https://github.com/element-hq/compound-android 2025-10-06 10:47:31 +02:00
Benoit Marty
6bec767808 Fix shellcheck issue on local-recording.sh 2025-06-30 17:00:58 +02:00
Jorge Martin Espinosa
d5c0a00a0c Make Maestro run for each PR push (#4121)
- Remove the `workflow_run` configuration for the Maestro job.
- Make the 'build apk' job always run again too.
- Make sure the test results are uploaded when the Maestro job fails too (this broke somehow).
2025-01-13 21:06:59 +01:00
Jorge Martin Espinosa
40699dd3fa Test using Maestro CLI + emulator instead of Cloud (#4092)
Add Maestro local CI workflow:
- Remove previous Maestro Cloud.
- Use an emulator with Pixel 7 Pro - API 35.
- Allow to record several videos in the background to verify the run.
- Upload test results.
- Allow either dispatching a new flow, running the 'build apk' job or run with a PR after the 'Build APK' flow has succeeded.
2025-01-07 14:05:14 +01:00
Benoit Marty
05fc76822a Apply dual licenses: AGPL + Element Commercial to file headers.
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Jorge Martín
f818b28a06 Fix screenshot recording in CI 2024-10-04 15:53:14 +02:00
Benoit Marty
5ec61619e1 Change ElementBot mail to android@element.io 2024-09-19 11:22:58 +02:00
Benoit Marty
e21938933e Migrate license to AGPL - sh files. 2024-09-06 17:52:37 +02:00
Jorge Martin Espinosa
950e502ca6 Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
Jorge Martin Espinosa
f3fa7e57a5 Try to workaround OOM errors and the runners dying (#3013)
* Try to workaround OOM errors and the runner dying

* Some more tweaks:

- Add `-XX:MaxMetaspaceSize` (https://github.com/gradle/gradle/issues/19750)
- Remove `-PpreDexEnable` as it's deprecated and no longer used.
- Remove `--max-workers` as gradle will automatically use the optimal amount.

* Remove `--max-workers` in recording screenshots too
2024-06-12 15:35:51 +02:00
Jorge Martín
0cef150147 Fix record screenshots workflow and script 2024-01-02 10:43:57 +01:00
Jorge Martin Espinosa
b1f2370e72 Run 'record screenshots' flow if label is present (#1860)
* Run 'record screenshots' flow if label is present

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-23 08:25:33 +01:00
Benoit Marty
589e785c62 Ensure previous screenshots are deleted. Sometimes, the registered task is not trigger, I do not know why... 2023-07-18 14:56:48 +02:00
Chris Smith
8f03948e32 Improve screenshot action error handling
If the gradle build fails for some reason, the script should
bail out instead of carrying on and pushing a commit that
deletes all the screenshots[1]!

`set -e` simply makes the script return the appropriate
exit code immediately if any of the subcommands fails.

[1] e.g.
529a7c87ef
2023-06-30 10:14:32 +01:00
Jorge Martin Espinosa
d55b1d5fce Try using ElementBot for recording screenshots too (#641) 2023-06-20 14:31:52 +02:00
Benoit Marty
470902d281 Iterate on the script #2 2023-06-02 17:20:36 +02:00
Benoit Marty
26fb2ea238 Iterate on the script 2023-06-02 16:40:41 +02:00
Benoit Marty
bc352ba9de Add GitHub workflow to record screenshots when manually triggered. 2023-06-02 16:16:29 +02:00