Commit Graph

55 Commits

Author SHA1 Message Date
renovate[bot] 00ee1ce473 Update mobile-dev-inc/action-maestro-cloud action to v1.9.7 2024-11-21 11:36:48 +00:00
renovate[bot] d33d22d577 Update mobile-dev-inc/action-maestro-cloud action to v1.9.6 2024-11-08 20:00:19 +00:00
renovate[bot] 104358502d Update mobile-dev-inc/action-maestro-cloud action to v1.9.4 (#3820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-07 11:42:09 +01:00
renovate[bot] e885b58d41 chore(deps): update mobile-dev-inc/action-maestro-cloud action to v1.9.2 2024-10-10 01:02:21 +00:00
Jorge Martin Espinosa f9cdb5af70 Disable configuration cache in the CI by default (#3601) 2024-10-04 13:57:46 +02:00
Jorge Martin Espinosa f8fa218146 Upgrade the used JDK in the project to v21 (#3582)
* Upgrade the used JDK in the project to v21

* Use it for CI too

* Centralise java language version

* Fix deprecations, tests and lint issues

* Fix coverage taking into account `@Preview` annotated code.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-03 09:38:03 +00:00
Jorge Martin Espinosa 79c17f714f Use Anvil KSP instead of the Square KAPT one (#3564)
* Use Anvil KSP instead of the Square KAPT one

* Fix several configuration cache, lint and test issues

* Allow incremental kotlin compilation in the CI

* Workaround Robolectric + Compose issue that caused `AppNotIdleException`

* Update the `enterprise` commit hash

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 11:52:17 +00:00
Jorge Martin Espinosa 7e37bf4a36 Try adding a memory limit for the kotlin compiler (#3377)
* Try adding a memory limit for the kotlin compiler

* Tweak values for all flows
2024-09-04 19:33:50 +00:00
renovate[bot] 5419fa003a Update mobile-dev-inc/action-maestro-cloud action to v1.9.1 2024-09-02 15:17:25 +00:00
renovate[bot] 250f0706fb Update gradle/actions action to v4 (#3265)
* Update gradle/actions action to v4

* Remove unnecessary gradle validation after action update to v4

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-08-09 15:03:14 +02:00
Jorge Martin Espinosa c9e0db26d8 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 Martin Espinosa 58c05ade65 Try fixing OOM by changing GC and adding RAM to the kotlin compiler (#2965)
* Try fixing OOM by changing GC and adding RAM to the kotlin compiler

* Add gradle cache to build apk job in maestro flow.

- Remove unnecessary dependency in `:features:call` module.

* Fix sonar in nightly reports

* Bump heap size of nightly reports
2024-06-03 11:28:51 +02:00
Jorge Martin Espinosa bb672d3bc7 Bump max heap size for building the debug APK for Maestro (#2960)
* Bump max heap size for building the debug APK for Maestro
* Enable `sonar.gradle.skipCompile`
* Fix sonar job
* Bump the MaxMetaspaceSize
* Don't try to upload failed test results to codecov, it doesn't work
2024-05-31 14:44:33 +00:00
Jorge Martin Espinosa 0ed4109c70 Split Maestro CI flow in 2 jobs. (#2823)
* Split Maestro CI flow in 2 jobs.

This way, if the Maestro test fails for some runtime reason we don't have to build the APK again to re-test it.
2024-05-09 10:25:53 +02:00
Jorge Martin Espinosa edf01cf8a7 Bump CI max JVM heap size and CPU usage (#2444)
* Bump CI max JVM heap size and CPU usage

* Bump Heap size a bit more for `build`

* Bump Heap size for tests too
2024-02-27 11:26:56 +01:00
Benoit Marty 15728d6b58 Add prefix MAESTRO_ to Maestro env variable. 2024-02-22 09:29:05 +01:00
Benoit Marty a2e00801b7 Add RECOVERY_KEY to Maestro env variable. 2024-02-22 09:24:45 +01:00
renovate[bot] 216ed575b9 Update mobile-dev-inc/action-maestro-cloud action to v1.8.1 2024-02-16 12:12:29 +00:00
Benoit Marty db6b52f8bf Update gradle tasks and paths regarding the new gplay and fdroid flavor. 2024-01-11 21:42:04 +01:00
renovate[bot] 3a8bc4cd9c Update actions/github-script action to v7 (#2152)
* Update actions/github-script action to v7

* Fix issues with both the PR from fork welcome comment and skipping Maestro for PRs coming from forks.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-01-04 09:36:40 +01:00
Jorge Martin Espinosa 0381027dae Restore Github PAT in record screenshots, disable Maestro for forks (#2147)
* Restore PAT for `recoverScreenshots.yml` flow.

This is needed to trigger CI jobs automatically. In the case where this is not possible (forks) a message will be added to ask the user to add an empty commit to trigger the CI.

* Add community PR notice

* Disable Maestro steps for fork PRs
2024-01-03 12:26:46 +01:00
renovate[bot] 2ea79709d1 Update actions/setup-java action to v4 2023-11-29 16:04:07 +00:00
Jorge Martin Espinosa e269303361 Run Maestro flow only then Run-Maestro label is present in a PR (#1852)
* Run Maestro only when the `Run-Maestro` label is present in a PR.
2023-11-22 15:45:52 +01:00
renovate[bot] bb51862fc4 Update mobile-dev-inc/action-maestro-cloud action to v1.8.0 2023-11-21 13:14:21 +00:00
renovate[bot] 2647a9861b Update mobile-dev-inc/action-maestro-cloud action to v1.7.0 2023-11-10 14:01:20 +00:00
renovate[bot] 9e66180d20 Update kotlin (#1697)
* Update kotlin

* Lower Sonar RAM usage, remove redundant `Dkotlin.daemon.jvm.options`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-08 12:58:14 +00:00
Jorge Martin Espinosa b57fddf19c Lower max RAM usage for gradle to avoid CI issues (#1766) 2023-11-08 09:45:55 +00:00
Jorge Martin Espinosa 1f5a135072 Use Parallel GC and bump RAM usage (#1734)
* Use Parallel GC and bump RAM usage

* Build only `app` project in `Build APKs (debug)` flow.

* Remove redundant JNA dependency
2023-11-03 10:34:49 +01:00
Jorge Martin Espinosa 56a024fc00 Only build app module for Maestro tests. (#1727)
This should save some time since the sample module would no longer be built.
2023-11-02 17:01:33 +01:00
renovate[bot] 28bb47c7b9 Update mobile-dev-inc/action-maestro-cloud action to v1.6.0 2023-10-06 15:47:02 +00:00
Benoit Marty 995d4e9f6d Just try using actions/checkout@v4 2023-09-11 14:51:12 +02:00
renovate[bot] ff3fd793ff Update actions/checkout action to v4 2023-09-04 12:50:03 +00:00
renovate[bot] d4ae0ec226 Update mobile-dev-inc/action-maestro-cloud action to v1.5.0 2023-08-31 10:54:01 +00:00
Benoit Marty d2bb8817a3 No need to upload artifact in this job. This is done by the build job. 2023-07-27 23:03:40 +02:00
Benoit Marty f431e76d29 Upload smaller APK to Maestro Cloud. 2023-07-21 10:28:47 +02:00
Marco Romano e8e4542a75 Extract maptiler's map ids (#926)
Maptiler custom map ids are only useable by the account that create them. So if we hardcode them forkers won't be able to use the maps even if the bring in their own api key (because they can't access our maps with their api key).

Requires to set our map ids in `local.properties` for local development:
```
services.maptiler.lightMapId=9bc819c8-e627-474a-a348-ec144fe3d810
services.maptiler.darkMapId=dea61faf-292b-4774-9660-58fcef89a7f3
```
2023-07-20 14:29:06 +02:00
Marco Romano 8986cf5669 Add maestro test for send location (#914)
Originally part of https://github.com/vector-im/element-x-android/pull/770
It's been extracted out since it's currently blocked by our lack of maestro cloud credits.

- https://github.com/vector-im/element-meta/issues/1682
2023-07-19 14:46:56 +02:00
Marco Romano 38ecac7b59 Add Maestro tests for create & join rooms (#472)
I created 2 additional test users to use them as MXID we lookup during room creation.

I.e. we will not login as those users, it's just 2 known MXIDs that we know exist so we can look them up.

- https://github.com/vector-im/element-x-android/issues/409
2023-07-04 13:33:59 +02:00
renovate[bot] 38a42cba27 Update mobile-dev-inc/action-maestro-cloud action to v1.4.1 2023-06-19 11:58:55 +00:00
renovate[bot] efcd969b4c Update mobile-dev-inc/action-maestro-cloud action to v1.3.3 (#457)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-26 11:04:18 +02:00
renovate[bot] ac50d08377 Update mobile-dev-inc/action-maestro-cloud action to v1.3.2 2023-05-23 08:24:56 +00:00
Jorge Martin Espinosa 0389f782c9 Fix: Maestro tests fail when using settings (#358)
* Fix Maestro tests using 'Settings' to open the settings screen.

* Try to allow manually running Maestro tests.

* Also adjust logout flow.
2023-04-25 18:01:54 +02:00
Jorge Martin Espinosa 97917e7a2d Update the Rust SDK to v0.1.9 (#318)
* Update the Rust SDK to v0.1.7.

* Try to have the same setup for the build apk job and maestro.

* Add option to run maestro manually.

* Update to v0.1.9 (0.1.7 and 0.1.8 were broken in x86_64).
2023-04-17 17:43:21 +02:00
Jorge Martin Espinosa de010545fb Update Gradle to 8.1 and AGP to v8.0 (#329)
* Update AGP to 8.0.0.

* Set JAVA_HOME to JDK17

* Update lint version.

* Use right JDK for dependency analysis, replace deprecated env var.

* Upgrade to Gradle 8.1.

* Remove `@Supress(DSL_SCOPE_VIOLATION)` as it's no longer needed.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 08:49:52 +00:00
Jorge Martin Espinosa 610e4aa8b6 Revert "Update Gradle and AGP to v8.0 (#283)" (#295)
This reverts commit cda0606a0d.
2023-04-04 14:44:01 +00:00
Jorge Martin Espinosa cda0606a0d Update Gradle and AGP to v8.0 (#283)
* Update dependency gradle to v8

* Handle upgrading Gradle to v8.0.2

* Update AGP to 8.0.0-RC01

* Try to set JAVA_HOME to JDK17

* Update lint version.

* Use right JDK for dependency analysis, replace deprecated env var

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 18:02:34 +02:00
Benoit Marty a1a86ce52b Run maestro only on pull request, and only when the pull request has been approved, to limit our usage of maestro cloud. #121
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-when-a-pull-request-is-approved
2023-03-10 10:24:11 +01:00
Benoit Marty 065daa4899 Split APK per ABI 2023-03-01 10:26:05 +01:00
dependabot[bot] 96198dbe86 Bump mobile-dev-inc/action-maestro-cloud from 1.2.3 to 1.3.1
Bumps [mobile-dev-inc/action-maestro-cloud](https://github.com/mobile-dev-inc/action-maestro-cloud) from 1.2.3 to 1.3.1.
- [Release notes](https://github.com/mobile-dev-inc/action-maestro-cloud/releases)
- [Commits](https://github.com/mobile-dev-inc/action-maestro-cloud/compare/v1.2.3...v1.3.1)

---
updated-dependencies:
- dependency-name: mobile-dev-inc/action-maestro-cloud
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-24 23:05:21 +00:00
dependabot[bot] b1990716a0 Bump mobile-dev-inc/action-maestro-cloud from 1.2.2 to 1.2.3
Bumps [mobile-dev-inc/action-maestro-cloud](https://github.com/mobile-dev-inc/action-maestro-cloud) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/mobile-dev-inc/action-maestro-cloud/releases)
- [Commits](https://github.com/mobile-dev-inc/action-maestro-cloud/compare/v1.2.2...v1.2.3)

---
updated-dependencies:
- dependency-name: mobile-dev-inc/action-maestro-cloud
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-24 22:11:13 +00:00