Skip to content

Commit 2892a57

Browse files
author
NIkita Fedrunov
committed
Merge branch 'develop' into feature/nfe/app_layout_tests
2 parents 9f8d377 + 882c58e commit 2892a57

File tree

904 files changed

+29201
-6738
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

904 files changed

+29201
-6738
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
**/snapshots/**/*.png filter=lfs diff=lfs merge=lfs -text
2+
**/src/androidTest/assets/*.realm filter=lfs diff=lfs merge=lfs -text

.github/ISSUE_TEMPLATE/release.yml

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ body:
1010
id: checklist
1111
attributes:
1212
label: Release checklist
13-
description: For the template example, we are releasing the version 1.2.3. Replace 1.2.3 with the version in the issue body.
1413
placeholder: |
1514
If you are reading this, you have deleted the content of the release template: undo the deletion or start again.
1615
value: |
@@ -20,34 +19,11 @@ body:
2019
- [ ] Check the update of the store descriptions (using Google Translate if necessary) to ensure that the changes are acceptable to be published to the stores.
2120
- [ ] While Weblate is locked, and after the PR from Weblate has been merged, handle all the TODOs in the main `strings.xml` file
2221
- [ ] Run the script `./tools/release/pushPlayStoreMetaData.sh`. You can check in the GooglePlay console the Activity log to check the effect.
23-
2422
- [ ] Ensure all [the required PRs](https://github.com/vector-im/element-android/pulls?q=is%3Aopen+is%3Apr+label%3AZ-NextRelease) have been merged
2523
2624
### Do the release
2725
28-
- [ ] Make sure `develop` and `main` are up to date (git pull)
29-
- [ ] Checkout develop and create a release with gitflow, branch name `release/1.2.3`
30-
- [ ] Check the crashes from the PlayStore
31-
- [ ] Check the rageshake with the current dev version: https://github.com/matrix-org/element-android-rageshakes/labels/1.2.3-dev
32-
- [ ] Run the integration test, and especially `UiAllScreensSanityTest.allScreensTest()`
33-
- [ ] Create an account on matrix.org and do some smoke tests that the sanity test does not cover like: 1-1 call, 1-1 video call, Jitsi call for instance
34-
- [ ] Run towncrier: `towncrier build --version v1.2.3 --draft` (remove `--draft` do write the file CHANGES.md)
35-
- [ ] Check that the folder `changelog.d` is empty. It can happen that some remaining files stay here
36-
- [ ] Check the file CHANGES.md consistency. It's possible to reorder items (most important changes first) or change their section if relevant. Also an opportunity to fix some typo, or rewrite things
37-
- [ ] Add file for fastlane under ./fastlane/metadata/android/en-US/changelogs
38-
- [ ] (optional) Push the branch and start a draft PR (will not be merged), to check that the CI is happy with all the changes.
39-
- [ ] Finish release with gitflow, delete the draft PR (if created)
40-
- [ ] Push `main` and the new tag `v1.2.3` to origin
41-
- [ ] Checkout `develop`
42-
- [ ] Increase version (versionPatch + 2) in `./vector/build.gradle`
43-
- [ ] Change the value of SDK_VERSION in the file `./matrix-sdk-android/build.gradle`
44-
- [ ] Commit and push `develop`
45-
- [ ] Wait for [Buildkite](https://buildkite.com/matrix-dot-org/element-android/builds?branch=main) to build the `main` branch.
46-
- [ ] Run the script `~/scripts/releaseElement.sh`. It will download the APKs from Buildkite check them and sign them.
47-
- [ ] Install the APK on your phone to check that the upgrade went well (no init sync, etc.)
48-
- [ ] Create the release on gitHub [from the tag](https://github.com/vector-im/element-android/tags), copy paste the block from the file CHANGES.md
49-
- [ ] Add the 4 signed APKs to the GitHub release
50-
- [ ] Ping the Android Internal room
26+
- [ ] Run the script ./tools/release/releaseScript.sh and follow the steps.
5127
5228
### Once tested and validated internally
5329
@@ -84,45 +60,16 @@ body:
8460
8561
The SDK2 and the sample app are released only when Element has been pushed to production.
8662
87-
- [ ] Checkout the `main` branch on Element Android project
88-
89-
#### On the SDK2 project
90-
91-
https://github.com/matrix-org/matrix-android-sdk2
92-
93-
- [ ] Create a release with GitFlow
94-
- [ ] Update the value of VERSION_NAME in the file gradle.properties
95-
- [ ] Update the files `./build.gradle` and `./gradle/gradle-wrapper.properties` manually, to use the latest version for the dependency. You can get inspired by the same files on Element Android project.
96-
- [ ] Run the script `./tools/import_from_element.sh`
97-
- [ ] Check the diff in the file `./matrix-sdk-android/build.gradle` and restore what may have been erased (in particular the line `apply plugin: "com.vanniktech.maven.publish"` and the line about the version)
98-
- [ ] Let the script finish to build the library
99-
- [ ] Update the file `CHANGES.md`
100-
- [ ] Finish the release using GitFlow
101-
- [ ] Push the branch `main`, the new tag and the branch `develop` to origin
102-
103-
##### Release on MavenCentral
63+
- [ ] On the [SDK2 project](https://github.com/matrix-org/matrix-android-sdk2), run the script ./tools/releaseScript.sh and follow the instructions.
10464
105-
- [ ] Checkout the branch `main`
106-
- [ ] Run the command `./gradlew publish --no-daemon --no-parallel`. You'll need some non-public element to do so
107-
- [ ] Run the command `./gradlew closeAndReleaseRepository`. If it is working well, you can jump directly to the final step of this section.
108-
109-
If `./gradlew closeAndReleaseRepository` fails (for instance, several repositories are waiting to be handled), you have to close and release the repository manually. Do the following steps:
65+
Note: if the step `./gradlew closeAndReleaseRepository` fails (for instance, several repositories are waiting to be handled), you have to close and release the repository manually. Do the following steps:
11066
11167
- [ ] Connect to https://s01.oss.sonatype.org
11268
- [ ] Click on Staging Repositories and check the the files have been uploaded
11369
- [ ] Click on close
11470
- [ ] Wait (check Activity tab until step "Repository closed" is displayed)
11571
- [ ] Click on release. The staging repository will disappear
11672
117-
Final step
118-
119-
- [ ] Check that the release is available in https://repo1.maven.org/maven2/org/matrix/android/matrix-android-sdk2/ (it can take a few minutes)
120-
121-
##### Release on GitHub
122-
123-
- [ ] Create the release on GitHub from [the tag](https://github.com/matrix-org/matrix-android-sdk2/tags)
124-
- [ ] Upload the AAR on the GitHub release
125-
12673
### Android SDK2 sample
12774
12875
https://github.com/matrix-org/matrix-android-sdk2-sample

.github/workflows/danger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
- run: |
1212
npm install --save-dev @babel/plugin-transform-flow-strip-types
1313
- name: Danger
14-
uses: danger/danger-js@11.1.3
14+
uses: danger/danger-js@11.2.0
1515
with:
16-
args: "--dangerfile tools/danger/dangerfile.js"
16+
args: "--dangerfile ./tools/danger/dangerfile.js"
1717
env:
1818
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
1919
# Fallback for forks

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414

1515
- name: Build docs
1616
run: ./gradlew dokkaHtml

.github/workflows/post-pr.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
jobs:
1717

1818
# More info on should-i-run:
19-
# If this fails to run (the IF doesn't complete) then the needs will not be satisfied for any of the
19+
# If this fails to run (the IF doesn't complete) then the needs will not be satisfied for any of the
2020
# other jobs below, so none will run.
2121
# except for the notification job at the bottom which will run all the time, unless should-i-run isn't
2222
# successful, or all the other jobs have succeeded
@@ -27,11 +27,12 @@ jobs:
2727
if: github.event.pull_request.merged # Additionally require PR to have been completely merged.
2828
steps:
2929
- run: echo "Run those tests!" # no-op success
30-
30+
3131
ui-tests:
3232
name: UI Tests (Synapse)
3333
needs: should-i-run
3434
runs-on: buildjet-4vcpu-ubuntu-2204
35+
timeout-minutes: 90 # We might need to increase it if the time for tests grows
3536
strategy:
3637
fail-fast: false
3738
matrix:
@@ -52,7 +53,7 @@ jobs:
5253
restore-keys: |
5354
${{ runner.os }}-gradle-
5455
- name: Start synapse server
55-
uses: michaelkaye/setup-matrix-synapse@v1.0.3
56+
uses: michaelkaye/setup-matrix-synapse@v1.0.4
5657
with:
5758
uploadLogs: true
5859
httpPort: 8080
@@ -94,7 +95,7 @@ jobs:
9495
needs:
9596
- should-i-run
9697
- ui-tests
97-
if: always() && (needs.should-i-run.result == 'success' ) && ((needs.codecov-units.result != 'success' ) || (needs.ui-tests.result != 'success') || (needs.integration-tests.result != 'success'))
98+
if: always() && (needs.should-i-run.result == 'success' ) && (needs.ui-tests.result != 'success')
9899
# No concurrency required, runs every time on a schedule.
99100
steps:
100101
- uses: michaelkaye/matrix-hookshot-action@v1.0.0

.github/workflows/quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ jobs:
6666
yarn add danger-plugin-lint-report --dev
6767
- name: Danger lint
6868
if: always()
69-
uses: danger/danger-js@11.1.3
69+
uses: danger/danger-js@11.2.0
7070
with:
71-
args: "--dangerfile tools/danger/dangerfile-lint.js"
71+
args: "--dangerfile ./tools/danger/dangerfile-lint.js"
7272
env:
7373
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
7474
# Fallback for forks

.github/workflows/tests.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
tests:
1515
name: Runs all tests
1616
runs-on: buildjet-4vcpu-ubuntu-2204
17+
timeout-minutes: 90 # We might need to increase it if the time for tests grows
1718
strategy:
1819
matrix:
1920
api-level: [28]
@@ -50,7 +51,7 @@ jobs:
5051
- uses: actions/setup-python@v4
5152
with:
5253
python-version: 3.8
53-
- uses: michaelkaye/setup-matrix-synapse@v1.0.3
54+
- uses: michaelkaye/setup-matrix-synapse@v1.0.4
5455
with:
5556
uploadLogs: true
5657
httpPort: 8080
@@ -126,26 +127,26 @@ jobs:
126127
# Unneeded as part of the test suite above, kept around in case we want to re-enable them.
127128
#
128129
# # Build Android Tests
129-
# build-android-tests:
130-
# name: Build Android Tests
131-
# runs-on: ubuntu-latest
130+
# build-android-tests:
131+
# name: Build Android Tests
132+
# runs-on: ubuntu-latest
132133
# concurrency:
133134
# group: ${{ github.ref == 'refs/heads/main' && format('unit-tests-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('unit-tests-develop-{0}', github.sha) || format('build-android-tests-{0}', github.ref) }}
134135
# cancel-in-progress: true
135-
# steps:
136-
# - uses: actions/checkout@v3
137-
# - uses: actions/setup-java@v3
138-
# with:
139-
# distribution: 'adopt'
140-
# java-version: 11
141-
# - uses: actions/cache@v3
142-
# with:
143-
# path: |
144-
# ~/.gradle/caches
145-
# ~/.gradle/wrapper
146-
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
147-
# restore-keys: |
148-
# ${{ runner.os }}-gradle-
149-
# - name: Build Android Tests
136+
# steps:
137+
# - uses: actions/checkout@v3
138+
# - uses: actions/setup-java@v3
139+
# with:
140+
# distribution: 'adopt'
141+
# java-version: 11
142+
# - uses: actions/cache@v3
143+
# with:
144+
# path: |
145+
# ~/.gradle/caches
146+
# ~/.gradle/wrapper
147+
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
148+
# restore-keys: |
149+
# ${{ runner.os }}-gradle-
150+
# - name: Build Android Tests
150151
# run: ./gradlew clean assembleAndroidTest $CI_GRADLE_ARG_PROPERTIES
151152

.github/workflows/triage-incoming.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
# Skip in forks
1111
if: github.repository == 'vector-im/element-android'
1212
steps:
13-
- uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
13+
- uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d
1414
with:
1515
project: Issue triage
1616
column: Incoming

0 commit comments

Comments
 (0)