Commit Graph

126 Commits

Author SHA1 Message Date
Marco Romano
3bc5dfa2dc 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
Kat Gerasimova
2df6cc3ee7 Quote out broken issue automation for now
Need to figure out why it's not working
2023-07-03 12:12:20 +01:00
Benoit Marty
8b579d1951 Merge pull request #734 from vector-im/misc/cjs/dont-delete-all-the-screenshots
Improve screenshot action error handling
2023-07-03 10:23:29 +02:00
Chris Smith
6c82c02dc8 Reformat workflow 2023-06-30 13:25:36 +01:00
Kat Gerasimova
20cb329105 Add issues to new triage board
All new issues should go to the V2 triage board
2023-06-30 13:25:36 +01:00
Chris Smith
3d63a6cbff Merge pull request #730 from vector-im/renovate/gradle-gradle-build-action-2.x
Update gradle/gradle-build-action action to v2.5.1
2023-06-30 13:15:21 +01:00
Kat Gerasimova
9431ec42a2 Move X-Needs-Info issues on triage board 2023-06-30 12:38:06 +01: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
renovate[bot]
fb2b12cbd1 Update gradle/gradle-build-action action to v2.5.1 2023-06-29 19:30:55 +00:00
renovate[bot]
818c868f02 Update gradle/gradle-build-action action to v2.5.0 2023-06-28 22:27:46 +00:00
Benoit Marty
764f48f192 Merge pull request #589 from vector-im/renovate/mobile-dev-inc-action-maestro-cloud-1.x
Update mobile-dev-inc/action-maestro-cloud action to v1.4.1
2023-06-27 21:28:25 +02:00
Benoit Marty
c3f74ba039 Do not fail the whole build if Diawi upload fails 2023-06-27 16:16:11 +02:00
Marco Romano
465ce0fc9b Use github action that caches LFS files when checking out the repo (#647)
Uses https://github.com/nschloe/action-cached-lfs-checkout where we're using git-lfs.

This is a wrapper around `actions/checkout@v3` which uses `actions/cache@v3` to cache the files on LFS to avoid downloading them every time and spare LFS bandwidth.
2023-06-21 09:12:47 +00:00
Benoit Marty
02aee0fe15 Merge pull request #626 from vector-im/feature/bma/sonar
Sonar
2023-06-21 10:41:26 +02:00
Jorge Martin Espinosa
d55b1d5fce Try using ElementBot for recording screenshots too (#641) 2023-06-20 14:31:52 +02:00
Jorge Martín
2cac32ef31 Change the token used by the localazy sync so workflows are triggered in the resulting PR 2023-06-19 18:00:32 +02:00
Benoit Marty
eba78ff722 Add workflow_dispatch to be able to trigger this action. 2023-06-19 17:33:07 +02:00
Benoit Marty
bf979576cc Create PR to sync Localazy strings in the name of ElementBot, to that created PR can trigger other GitHub actions.
Ref: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
2023-06-19 14:12:15 +02:00
renovate[bot]
dae776311a Update mobile-dev-inc/action-maestro-cloud action to v1.4.1 2023-06-19 11:58:55 +00:00
Benoit Marty
b602a4cd5d Restore sonar task on PR, we want to have sonarcloud comment on PR to track code quality (#619) 2023-06-16 18:00:40 +02:00
Chris Smith
5707aedfa2 GH Workflows: move deps check, fix nightly
Move the dependency check job from the quality workflow that
runs on every PR to the nightly reports workflow. This sometimes
flakes as it does a _lot_ of HTTP requests. It's less intrusive
if that happens outside of the PR workflow.

Also change the nightly job that runs tests to use LFS, so it
actually has access to screenshots :)

The sonar task is still broken, but it seems like an upstream bug:
https://community.sonarsource.com/t/sonar-plugin-4-1-0-3113-4-2-0-3129-errors/91568
2023-06-06 16:32:18 +01:00
Jorge Martín
b7235cf3e0 Add gradle cache to record screenshots flow 2023-06-05 09:03:47 +02:00
Benoit Marty
029c0a15b5 Iterate on the script #3 2023-06-02 17:37:51 +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
Benoit Marty
cb6611bdd2 Rename job - try to fix conflict. 2023-06-01 15:34:45 +02:00
Benoit Marty
7054224451 Search for forbidden patterns in Kotlin files. 2023-05-31 15:30:18 +02:00
Kat Gerasimova
94ee4f476d Merge pull request #466 from vector-im/kittykat-patch-2
Update triage automation for signoff
2023-05-30 11:12:25 +01:00
renovate[bot]
081b8cc4db Update rnkdsh/action-upload-diawi action to v1.5.0 2023-05-26 20:47:47 +00:00
Kat Gerasimova
e51e62087d Update triage automation for signoff 2023-05-26 11:40:02 +01:00
renovate[bot]
3a2da3aa75 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
Benoit Marty
dfeb4d3c91 Reduce logging level to --warn to reduce verbosity for testing and checking quality workflows. Keep default (lifecycle) for build workflow.
https://docs.gradle.org/current/userguide/logging.html
2023-05-25 12:09:18 +02:00
Benoit Marty
a7339cb9c4 Reduce time to run test from 15 minutes to about 8 by disabling creating artifact and uploading to sonar.
Instead those 2 steps are now run once a day in a separate GitHub action.
2023-05-23 14:59:28 +02:00
renovate[bot]
1ae98b8f66 Update mobile-dev-inc/action-maestro-cloud action to v1.3.2 2023-05-23 08:24:56 +00:00
Benoit Marty
6a2cb1bbb5 No need to duplicate the workflow, the workflow can have several on sections. 2023-05-11 16:36:46 +02:00
Benoit Marty
43070f7c59 Upgrade gradle/gradle-build-action to v2.4.2 2023-05-02 10:55:05 +02:00
Jorge Martin Espinosa
27824a279a 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
Kat Gerasimova
dbbc14f683 Update labelled issue automation
Migrate from graphql to actions.

Add QA team
2023-04-25 13:29:27 +01:00
Jorge Martin Espinosa
32d028c50e Fix: JNA issue in release mode (#335)
* Restore checkout config for nightly workflows.

* Add missing proguard config line for JNA.
2023-04-18 11:31:25 +00:00
Benoit Marty
b557260bb7 Merge pull request #311 from vector-im/renovate/danger-danger-js-11.x
Update danger/danger-js action to v11.2.6
2023-04-18 10:51:33 +02:00
Jorge Martin Espinosa
c8fcf9549b 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
renovate[bot]
fa39a5ded8 Update danger/danger-js action to v11.2.6 2023-04-17 11:34:09 +00:00
Jorge Martin Espinosa
afd58f1634 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
renovate[bot]
1ba6054301 Update danger/danger-js action to v11.2.5 (#309)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-10 09:24:55 +02:00
Benoit Marty
ad0886391b Revert "Run every 10 minutes to check the script. (to be reverted!)"
This reverts commit 32be8f29e6.
2023-04-08 01:06:23 +02:00
Benoit Marty
ea9f9ccdc3 Use Python 3.9
CI complain with:
 Traceback (most recent call last):
  File "./tools/localazy/generateLocalazyConfig.py", line 39, in <module>
    action = baseAction | {
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'
2023-04-07 15:03:02 +02:00
Benoit Marty
67955988cf Use Python 3.9
CI complain with:
 Traceback (most recent call last):
  File "./tools/localazy/generateLocalazyConfig.py", line 39, in <module>
    action = baseAction | {
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'
2023-04-07 15:01:34 +02:00
Benoit Marty
32be8f29e6 Run every 10 minutes to check the script. (to be reverted!) 2023-04-07 12:29:35 +02:00
Benoit Marty
6af4057e74 Setup localazy before running it.
From https://localazy.com/docs/cli/installation#debianubuntu
2023-04-07 12:26:25 +02:00