Compare commits
2 Commits
develop
...
michaelk/d
Author | SHA1 | Date |
---|---|---|
Michael Kaye | 65f70252a8 | |
Michael Kaye | 5258e3a1cc |
|
@ -1,92 +0,0 @@
|
||||||
name: APK Build
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request: { }
|
|
||||||
push:
|
|
||||||
branches: [ main, develop ]
|
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
|
||||||
env:
|
|
||||||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
|
|
||||||
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
debug:
|
|
||||||
name: Build debug APKs (${{ matrix.target }})
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.ref != 'refs/heads/main'
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
target: [ Gplay, Fdroid ]
|
|
||||||
# Allow all jobs on develop. Just one per PR.
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref == 'refs/heads/develop' && format('integration-tests-develop-{0}-{1}', matrix.target, github.sha) || format('build-debug-{0}-{1}', matrix.target, github.ref) }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: Assemble ${{ matrix.target }} debug apk
|
|
||||||
run: ./gradlew assemble${{ matrix.target }}Debug $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
- name: Upload ${{ matrix.target }} debug APKs
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: vector-${{ matrix.target }}-debug
|
|
||||||
path: |
|
|
||||||
vector-app/build/outputs/apk/*/debug/*.apk
|
|
||||||
|
|
||||||
release:
|
|
||||||
name: Build unsigned GPlay APKs
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref == 'refs/head/main' && format('build-release-apk-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('build-release-apk-develop-{0}', github.sha) || format('build-debug-{0}', github.ref) }}
|
|
||||||
cancel-in-progress: ${{ github.ref != 'refs/head/main' }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: Assemble GPlay unsigned apk
|
|
||||||
run: ./gradlew clean assembleGplayRelease $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
- name: Upload Gplay unsigned APKs
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: vector-gplay-release-unsigned
|
|
||||||
path: |
|
|
||||||
vector-app/build/outputs/apk/*/release/*.apk
|
|
||||||
|
|
||||||
exodus:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: release
|
|
||||||
steps:
|
|
||||||
- name: Obtain apk from artifact
|
|
||||||
id: download
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: vector-gplay-release-unsigned
|
|
||||||
- name: Show apks in artifact
|
|
||||||
run: ls -R ${{steps.download.outputs.download-path}}
|
|
||||||
- name: Execute exodus-standalone
|
|
||||||
uses: docker://exodusprivacy/exodus-standalone:latest
|
|
||||||
with:
|
|
||||||
args: /github/workspace/gplay/release/vector-gplay-universal-release-unsigned.apk -j -o /github/workspace/exodus.json
|
|
||||||
- name: Upload exodus json report
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: exodus.json
|
|
||||||
path: |
|
|
||||||
exodus.json
|
|
||||||
- name: Check for trackers
|
|
||||||
run: "jq -e '.trackers == []' exodus.json > /dev/null || { echo '::error static analysis identified user tracking library' ; exit 1; }"
|
|
|
@ -1,20 +0,0 @@
|
||||||
name: Danger CI
|
|
||||||
|
|
||||||
on: [pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Danger
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: |
|
|
||||||
npm install --save-dev @babel/plugin-transform-flow-strip-types
|
|
||||||
- name: Danger
|
|
||||||
uses: danger/danger-js@11.1.3
|
|
||||||
with:
|
|
||||||
args: "--dangerfile tools/danger/dangerfile.js"
|
|
||||||
env:
|
|
||||||
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
|
||||||
# Fallback for forks
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
@ -1,22 +0,0 @@
|
||||||
name: Documentation
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ develop ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
docs:
|
|
||||||
name: Generate and publish Android Matrix SDK documentation
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Build docs
|
|
||||||
run: ./gradlew dokkaHtml
|
|
||||||
|
|
||||||
- name: Deploy docs
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
publish_dir: ./matrix-sdk-android/build/dokka/html
|
|
|
@ -1,14 +0,0 @@
|
||||||
name: "Validate Gradle Wrapper"
|
|
||||||
on:
|
|
||||||
pull_request: { }
|
|
||||||
push:
|
|
||||||
branches: [ main, develop ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
validation:
|
|
||||||
name: "Validation"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# No concurrency required, this is a prerequisite to other actions and should run every time.
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
|
|
@ -1,46 +0,0 @@
|
||||||
name: Build and release nightly APK
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
# Every nights at 4
|
|
||||||
- cron: "0 4 * * *"
|
|
||||||
|
|
||||||
env:
|
|
||||||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
|
|
||||||
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
nightly:
|
|
||||||
name: Build and publish nightly Gplay APK to Firebase
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python 3.8
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.8
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: Install towncrier
|
|
||||||
run: |
|
|
||||||
python3 -m pip install towncrier
|
|
||||||
- name: Prepare changelog file
|
|
||||||
run: |
|
|
||||||
mv towncrier.toml towncrier.toml.bak
|
|
||||||
sed 's/CHANGES\.md/CHANGES_NIGHTLY\.md/' towncrier.toml.bak > towncrier.toml
|
|
||||||
rm towncrier.toml.bak
|
|
||||||
yes n | towncrier build --version nightly
|
|
||||||
- name: Build and upload Gplay Nightly APK
|
|
||||||
run: |
|
|
||||||
./gradlew assembleGplayNightly appDistributionUploadGplayNightly $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
env:
|
|
||||||
ELEMENT_ANDROID_NIGHTLY_KEYID: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_KEYID }}
|
|
||||||
ELEMENT_ANDROID_NIGHTLY_KEYPASSWORD: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_KEYPASSWORD }}
|
|
||||||
ELEMENT_ANDROID_NIGHTLY_STOREPASSWORD: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_STOREPASSWORD }}
|
|
||||||
FIREBASE_TOKEN: ${{ secrets.ELEMENT_ANDROID_NIGHTLY_FIREBASE_TOKEN }}
|
|
|
@ -1,105 +0,0 @@
|
||||||
name: Integration Tests
|
|
||||||
|
|
||||||
# This runs for all closed pull requests against main, including those closed without merge.
|
|
||||||
# Further filtering occurs in 'should-i-run'
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [closed]
|
|
||||||
branches: [develop]
|
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
|
||||||
env:
|
|
||||||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
|
|
||||||
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
# More info on should-i-run:
|
|
||||||
# If this fails to run (the IF doesn't complete) then the needs will not be satisfied for any of the
|
|
||||||
# other jobs below, so none will run.
|
|
||||||
# except for the notification job at the bottom which will run all the time, unless should-i-run isn't
|
|
||||||
# successful, or all the other jobs have succeeded
|
|
||||||
|
|
||||||
should-i-run:
|
|
||||||
name: Check if PR is suitable for analysis
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.event.pull_request.merged # Additionally require PR to have been completely merged.
|
|
||||||
steps:
|
|
||||||
- run: echo "Run those tests!" # no-op success
|
|
||||||
|
|
||||||
ui-tests:
|
|
||||||
name: UI Tests (Synapse)
|
|
||||||
needs: should-i-run
|
|
||||||
runs-on: buildjet-4vcpu-ubuntu-2204
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
api-level: [ 28 ]
|
|
||||||
# No concurrency required, runs every time on a schedule.
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python 3.8
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.8
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: Start synapse server
|
|
||||||
uses: michaelkaye/setup-matrix-synapse@v1.0.3
|
|
||||||
with:
|
|
||||||
uploadLogs: true
|
|
||||||
httpPort: 8080
|
|
||||||
disableRateLimiting: true
|
|
||||||
public_baseurl: "http://10.0.2.2:8080/"
|
|
||||||
- uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
distribution: 'adopt'
|
|
||||||
java-version: '11'
|
|
||||||
- name: Run sanity tests on API ${{ matrix.api-level }}
|
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
|
||||||
with:
|
|
||||||
api-level: ${{ matrix.api-level }}
|
|
||||||
arch: x86
|
|
||||||
profile: Nexus 5X
|
|
||||||
force-avd-creation: false
|
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
emulator-build: 7425822 # workaround to emulator bug: https://github.com/ReactiveCircus/android-emulator-runner/issues/160
|
|
||||||
script: |
|
|
||||||
adb root
|
|
||||||
adb logcat -c
|
|
||||||
touch emulator.log
|
|
||||||
chmod 777 emulator.log
|
|
||||||
adb logcat >> emulator.log &
|
|
||||||
./gradlew $CI_GRADLE_ARG_PROPERTIES connectedGplayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest || (adb pull storage/emulated/0/Pictures/failure_screenshots && exit 1 )
|
|
||||||
- name: Upload Test Report Log
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: uitest-error-results
|
|
||||||
path: |
|
|
||||||
emulator.log
|
|
||||||
failure_screenshots/
|
|
||||||
|
|
||||||
# Notify the channel about delayed failures
|
|
||||||
notify:
|
|
||||||
name: Notify matrix
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- should-i-run
|
|
||||||
- ui-tests
|
|
||||||
if: always() && (needs.should-i-run.result == 'success' ) && (needs.ui-tests.result != 'success')
|
|
||||||
# No concurrency required, runs every time on a schedule.
|
|
||||||
steps:
|
|
||||||
- uses: michaelkaye/matrix-hookshot-action@v1.0.0
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
hookshot_url: ${{ secrets.ELEMENT_ANDROID_HOOKSHOT_URL }}
|
|
||||||
text_template: "Post-merge validation of ${{ github.head_ref }} into ${{ github.base_ref }} by ${{ github.event.pull_request.merged_by.login }} failed: {{#each job_statuses }}{{#with this }}{{#if completed }} {{name}} {{conclusion}} at {{completed_at}}, {{/if}}{{/with}}{{/each}}"
|
|
||||||
html_template: "Post-merge validation of ${{ github.head_ref }} into ${{ github.base_ref }} by ${{ github.event.pull_request.merged_by.login }} failed: {{#each job_statuses }}{{#with this }}{{#if completed }}<br />{{icon conclusion}} {{name}} <font color='{{color conclusion}}'>{{conclusion}} at {{completed_at}} <a href=\"{{html_url}}\">[details]</a></font>{{/if}}{{/with}}{{/each}}"
|
|
|
@ -1,94 +0,0 @@
|
||||||
name: Code Quality Checks
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request: { }
|
|
||||||
push:
|
|
||||||
branches: [ main, develop ]
|
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
|
||||||
env:
|
|
||||||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -XX:MaxPermSize=512m -Dkotlin.daemon.jvm.options="-Xmx2g" -Dkotlin.incremental=false
|
|
||||||
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check:
|
|
||||||
name: Project Check Suite
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Run code quality check suite
|
|
||||||
run: ./tools/check/check_code_quality.sh
|
|
||||||
|
|
||||||
# Knit for all the modules (https://github.com/Kotlin/kotlinx-knit)
|
|
||||||
knit:
|
|
||||||
name: Knit
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Run knit
|
|
||||||
run: |
|
|
||||||
./gradlew knitCheck $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
|
|
||||||
# Check the project: ktlint, detekt, lint
|
|
||||||
lint:
|
|
||||||
name: Android Linter
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Allow all jobs on main and develop. Just one per PR.
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref == 'refs/heads/main' && format('lint-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('lint-develop-{0}', github.sha) || format('lint-{0}', github.ref) }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Run ktlint
|
|
||||||
run: |
|
|
||||||
./gradlew ktlintCheck $CI_GRADLE_ARG_PROPERTIES --continue
|
|
||||||
- name: Run detekt
|
|
||||||
if: always()
|
|
||||||
run: |
|
|
||||||
./gradlew detekt $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
- name: Run lint
|
|
||||||
# Not always, if ktlint or detekt fail, avoid running the long lint check.
|
|
||||||
run: |
|
|
||||||
./gradlew vector-app:lintGplayRelease $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
./gradlew vector-app:lintFdroidRelease $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
- name: Upload reports
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: linting-report
|
|
||||||
path: |
|
|
||||||
*/build/reports/**/*.*
|
|
||||||
- name: Prepare Danger
|
|
||||||
if: always()
|
|
||||||
run: |
|
|
||||||
npm install --save-dev @babel/core
|
|
||||||
npm install --save-dev @babel/plugin-transform-flow-strip-types
|
|
||||||
yarn add danger-plugin-lint-report --dev
|
|
||||||
- name: Danger lint
|
|
||||||
if: always()
|
|
||||||
uses: danger/danger-js@11.1.3
|
|
||||||
with:
|
|
||||||
args: "--dangerfile tools/danger/dangerfile-lint.js"
|
|
||||||
env:
|
|
||||||
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
|
||||||
# Fallback for forks
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# Gradle dependency analysis using https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin
|
|
||||||
dependency-analysis:
|
|
||||||
name: Dependency analysis
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Allow all jobs on main and develop. Just one per PR.
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref == 'refs/heads/main' && format('dep-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('dep-develop-{0}', github.sha) || format('dep-{0}', github.ref) }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Dependency analysis
|
|
||||||
run: ./gradlew dependencyCheckAnalyze $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
- name: Upload dependency analysis
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: dependency-analysis
|
|
||||||
path: build/reports/dependency-check-report.html
|
|
|
@ -1,83 +0,0 @@
|
||||||
name: Sync Data From External Sources
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
# At 00:00 on every Monday UTC
|
|
||||||
- cron: '0 0 * * 1'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
sync-emojis:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: github.repository == 'vector-im/element-android'
|
|
||||||
# No concurrency required, runs every time on a schedule.
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python 3.8
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.8
|
|
||||||
- name: Install Prerequisite dependencies
|
|
||||||
run: |
|
|
||||||
pip install BeautifulSoup4
|
|
||||||
pip install requests
|
|
||||||
- name: Run Emoji script
|
|
||||||
run: ./tools/import_emojis.py
|
|
||||||
- name: Create Pull Request for Emojis
|
|
||||||
uses: peter-evans/create-pull-request@v4
|
|
||||||
with:
|
|
||||||
commit-message: Sync Emojis
|
|
||||||
title: Sync Emojis
|
|
||||||
body: |
|
|
||||||
- Update Emojis from Unicode.org
|
|
||||||
branch: sync-emojis
|
|
||||||
base: develop
|
|
||||||
|
|
||||||
sync-sas-strings:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: github.repository == 'vector-im/element-android'
|
|
||||||
# No concurrency required, runs every time on a schedule.
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python 3.8
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.8
|
|
||||||
- name: Install Prerequisite dependencies
|
|
||||||
run: |
|
|
||||||
pip install requests
|
|
||||||
- name: Run SAS String script
|
|
||||||
run: ./tools/import_sas_strings.py
|
|
||||||
- name: Create Pull Request for SAS Strings
|
|
||||||
uses: peter-evans/create-pull-request@v4
|
|
||||||
with:
|
|
||||||
commit-message: Sync SAS Strings
|
|
||||||
title: Sync SAS Strings
|
|
||||||
body: |
|
|
||||||
- Update SAS Strings from matrix-doc.
|
|
||||||
branch: sync-sas-strings
|
|
||||||
base: develop
|
|
||||||
|
|
||||||
sync-analytics-plan:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: github.repository == 'vector-im/element-android'
|
|
||||||
# No concurrency required, runs every time on a schedule.
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Run analytics import script
|
|
||||||
run: ./tools/import_analytic_plan.sh
|
|
||||||
- name: Create Pull Request for analytics plan
|
|
||||||
uses: peter-evans/create-pull-request@v4
|
|
||||||
with:
|
|
||||||
commit-message: Sync analytics plan
|
|
||||||
title: Sync analytics plan
|
|
||||||
body: |
|
|
||||||
### Update analytics plan
|
|
||||||
Reviewers:
|
|
||||||
- [ ] Please remove usage of Event or Enum which may have been removed or updated
|
|
||||||
- [ ] please ensure new Events or new Enums are used to send analytics by pushing new commit(s) to this PR.
|
|
||||||
|
|
||||||
*Note*: Change are coming from [this project](https://github.com/matrix-org/matrix-analytics-events)
|
|
||||||
branch: sync-analytics-plan
|
|
||||||
base: develop
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
name: "tests"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- michaelk/dont_look_now
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
||||||
|
steps:
|
||||||
|
- name: report cpu
|
||||||
|
run: 'echo "INITIAL_CPU=`cat /proc/stat | grep "cpu "`" >> $GITHUB_ENV'
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
|
- name: Run synapse
|
||||||
|
uses: michaelkaye/setup-matrix-synapse@v1.0.3
|
||||||
|
with:
|
||||||
|
uploadLogs: true
|
||||||
|
httpPort: 8008
|
||||||
|
customConfig: |
|
||||||
|
registration_shared_secret: RegistrationSharedSecret
|
||||||
|
- name: timed test setup
|
||||||
|
run: synapse/env/bin/pip install -r requirements.txt
|
||||||
|
- name: create user
|
||||||
|
run: synapse/env/bin/register_new_matrix_user -u tester -p password --no-admin -k RegistrationSharedSecret http://localhost:8008
|
||||||
|
- name: timed One
|
||||||
|
run: synapse/env/bin/python ./timed_test.py
|
||||||
|
- name: timed Two
|
||||||
|
run: synapse/env/bin/python ./timed_test.py
|
||||||
|
- name: timed Three
|
||||||
|
run: synapse/env/bin/python ./timed_test.py
|
||||||
|
- name: timed Four
|
||||||
|
run: synapse/env/bin/python ./timed_test.py
|
||||||
|
- name: report cpu after
|
||||||
|
run: "./eval_cpu.sh"
|
||||||
|
|
|
@ -1,151 +0,0 @@
|
||||||
name: Test
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request: { }
|
|
||||||
push:
|
|
||||||
branches: [ main, develop ]
|
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
|
||||||
env:
|
|
||||||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
|
|
||||||
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 4 --no-daemon
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
tests:
|
|
||||||
name: Runs all tests
|
|
||||||
runs-on: buildjet-4vcpu-ubuntu-2204
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
api-level: [28]
|
|
||||||
# Allow all jobs on main and develop. Just one per PR.
|
|
||||||
concurrency:
|
|
||||||
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('unit-tests-{0}', github.ref) }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
lfs: true
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
distribution: 'adopt'
|
|
||||||
java-version: '11'
|
|
||||||
- uses: gradle/gradle-build-action@v2
|
|
||||||
with:
|
|
||||||
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
|
|
||||||
gradle-home-cache-cleanup: ${{ github.ref == 'refs/heads/develop' }}
|
|
||||||
|
|
||||||
- name: Run screenshot tests
|
|
||||||
run: ./gradlew verifyScreenshots $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
|
|
||||||
- name: Archive Screenshot Results on Error
|
|
||||||
if: failure()
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: screenshot-results
|
|
||||||
path: |
|
|
||||||
**/out/failures/
|
|
||||||
**/build/reports/tests/*UnitTest/
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.8
|
|
||||||
- uses: michaelkaye/setup-matrix-synapse@v1.0.3
|
|
||||||
with:
|
|
||||||
uploadLogs: true
|
|
||||||
httpPort: 8080
|
|
||||||
disableRateLimiting: true
|
|
||||||
public_baseurl: "http://10.0.2.2:8080/"
|
|
||||||
|
|
||||||
- name: Run all the codecoverage tests at once
|
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
|
||||||
# continue-on-error: true
|
|
||||||
with:
|
|
||||||
api-level: ${{ matrix.api-level }}
|
|
||||||
arch: x86
|
|
||||||
profile: Nexus 5X
|
|
||||||
target: playstore
|
|
||||||
force-avd-creation: false
|
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
disable-animations: true
|
|
||||||
# emulator-build: 7425822
|
|
||||||
script: |
|
|
||||||
./gradlew gatherGplayDebugStringTemplates $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
./gradlew unitTestsWithCoverage $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
./gradlew instrumentationTestsWithCoverage $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
./gradlew generateCoverageReport $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
# NB: continue-on-error marks steps.tests.conclusion = 'success' but leaves steps.tests.outcome = 'failure'
|
|
||||||
### - name: Run all the codecoverage tests at once (retry if emulator failed)
|
|
||||||
### uses: reactivecircus/android-emulator-runner@v2
|
|
||||||
### if: always() && steps.tests.outcome == 'failure' # don't run if previous step succeeded.
|
|
||||||
### with:
|
|
||||||
### api-level: 28
|
|
||||||
### arch: x86
|
|
||||||
### profile: Nexus 5X
|
|
||||||
### force-avd-creation: false
|
|
||||||
### emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
### disable-animations: true
|
|
||||||
### emulator-build: 7425822
|
|
||||||
### script: |
|
|
||||||
### ./gradlew gatherGplayDebugStringTemplates $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
### ./gradlew unitTestsWithCoverage $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
### ./gradlew instrumentationTestsWithCoverage $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
### ./gradlew generateCoverageReport $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
|
|
||||||
- name: Upload Integration Test Report Log
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: integration-test-error-results
|
|
||||||
path: |
|
|
||||||
*/build/outputs/androidTest-results/connected/
|
|
||||||
*/build/reports/androidTests/connected/
|
|
||||||
|
|
||||||
# we may have failed a previous step and retried, that's OK
|
|
||||||
- name: Publish results to Sonar
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.SONARQUBE_GITHUB_API_TOKEN }} # Needed to get PR information, if any
|
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
ORG_GRADLE_PROJECT_SONAR_LOGIN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
if: ${{ always() && env.GITHUB_TOKEN != '' && env.SONAR_TOKEN != '' && env.ORG_GRADLE_PROJECT_SONAR_LOGIN != '' }}
|
|
||||||
run: ./gradlew sonarqube $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
|
|
||||||
- name: Format unit test results
|
|
||||||
if: always()
|
|
||||||
run: python3 ./tools/ci/render_test_output.py unit ./**/build/test-results/**/*.xml
|
|
||||||
|
|
||||||
# can't be run on macos due to containers.
|
|
||||||
# - name: Publish Unit Test Results
|
|
||||||
# uses: EnricoMi/publish-unit-test-result-action@v1
|
|
||||||
# if: always() &&
|
|
||||||
# github.event.sender.login != 'dependabot[bot]' &&
|
|
||||||
# ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository )
|
|
||||||
# with:
|
|
||||||
# files: ./**/build/test-results/**/*.xml
|
|
||||||
|
|
||||||
# Unneeded as part of the test suite above, kept around in case we want to re-enable them.
|
|
||||||
#
|
|
||||||
# # Build Android Tests
|
|
||||||
# build-android-tests:
|
|
||||||
# name: Build Android Tests
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# concurrency:
|
|
||||||
# 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) }}
|
|
||||||
# cancel-in-progress: true
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v3
|
|
||||||
# - uses: actions/setup-java@v3
|
|
||||||
# with:
|
|
||||||
# distribution: 'adopt'
|
|
||||||
# java-version: 11
|
|
||||||
# - uses: actions/cache@v3
|
|
||||||
# with:
|
|
||||||
# path: |
|
|
||||||
# ~/.gradle/caches
|
|
||||||
# ~/.gradle/wrapper
|
|
||||||
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-gradle-
|
|
||||||
# - name: Build Android Tests
|
|
||||||
# run: ./gradlew clean assembleAndroidTest $CI_GRADLE_ARG_PROPERTIES
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
name: Move new issues onto Issue triage board
|
|
||||||
|
|
||||||
on:
|
|
||||||
issues:
|
|
||||||
types: [opened]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
automate-project-columns:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: github.repository == 'vector-im/element-android'
|
|
||||||
steps:
|
|
||||||
- uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
|
|
||||||
with:
|
|
||||||
project: Issue triage
|
|
||||||
column: Incoming
|
|
||||||
repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
@ -1,248 +0,0 @@
|
||||||
name: Move labelled issues to correct boards and columns
|
|
||||||
|
|
||||||
on:
|
|
||||||
issues:
|
|
||||||
types: [labeled]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
apply_Z-Labs_label:
|
|
||||||
name: Add Z-Labs label for features behind labs flags
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: >
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Maths') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Message-Pinning') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Polls') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Location-Sharing') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Message-Bubbles') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-IA') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Themes-Custom') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-E2EE-Dehydration') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Tags')
|
|
||||||
steps:
|
|
||||||
- uses: actions/github-script@v5
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
github.rest.issues.addLabels({
|
|
||||||
issue_number: context.issue.number,
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
labels: ['Z-Labs']
|
|
||||||
})
|
|
||||||
|
|
||||||
move_needs_info_issues:
|
|
||||||
name: X-Needs-Info issues to Need info column on triage board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: github.repository == 'vector-im/element-android'
|
|
||||||
steps:
|
|
||||||
- uses: konradpabjan/move-labeled-or-milestoned-issue@219d384e03fa4b6460cd24f9f37d19eb033a4338
|
|
||||||
with:
|
|
||||||
action-token: "${{ secrets.ELEMENT_BOT_TOKEN }}"
|
|
||||||
project-url: "https://github.com/vector-im/element-android/projects/4"
|
|
||||||
column-name: "Need info"
|
|
||||||
label-name: "X-Needs-Info"
|
|
||||||
|
|
||||||
add_design_issues_to_project:
|
|
||||||
name: X-Needs-Design to Design project board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'X-Needs-Design')
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
id: add_to_project
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.issue.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc0sUA"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
add_product_issues:
|
|
||||||
name: X-Needs-Product to Design project board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: >
|
|
||||||
contains(github.event.issue.labels.*.name, 'X-Needs-Product')
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
id: add_to_project
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.issue.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc4AAg6N"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
delight_issues_to_board:
|
|
||||||
name: Spaces issues to Delight project board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
(contains(github.event.issue.labels.*.name, 'Team: Delight') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-AppLayout'))
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.issue.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc1HvQ"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
move_voice-message_issues:
|
|
||||||
name: A-Voice Messages to voice message board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Voice Messages')
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.issue.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc2KCw"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
move_message_bubbles_issues:
|
|
||||||
name: A-Message-Bubbles to Message bubbles board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Message-Bubbles')
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.issue.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc3m-g"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
move_ftue_issues:
|
|
||||||
name: Z-FTUE to Mobile FTUE board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-FTUE')
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.issue.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc4AAqVx"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
move_WTF_issues:
|
|
||||||
name: Z-WTF to WTF board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-WTF')
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.issue.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc4AArk0"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
move_element_x_issues:
|
|
||||||
name: ElementX issues to ElementX project board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
(contains(github.event.issue.labels.*.name, 'Z-BBQ-Alpha') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-BBQ-Beta') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-BBQ-Release') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-Banquet-Alpha') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-Banquet-Beta') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-Banquet-Release'))
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!,$contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.issue.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc4ABTXY"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
@ -1,143 +0,0 @@
|
||||||
name: Move pull requests asking for review to the relevant project
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: [review_requested]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
add_design_pr_to_project:
|
|
||||||
name: Move PRs asking for design review to the design board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: github.repository == 'vector-im/element-android'
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
id: find_team_members
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
query find_team_members($team: String!) {
|
|
||||||
organization(login: "vector-im") {
|
|
||||||
team(slug: $team) {
|
|
||||||
members {
|
|
||||||
nodes {
|
|
||||||
login
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
team: ${{ env.TEAM }}
|
|
||||||
env:
|
|
||||||
TEAM: "design"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
- id: any_matching_reviewers
|
|
||||||
run: |
|
|
||||||
# Fetch requested reviewers, and people who are on the team
|
|
||||||
echo '${{ tojson(fromjson(steps.find_team_members.outputs.data).organization.team.members.nodes[*].login) }}' | tee /tmp/team_members.json
|
|
||||||
echo '${{ tojson(github.event.pull_request.requested_reviewers[*].login) }}' | tee /tmp/reviewers.json
|
|
||||||
jq --raw-output .[] < /tmp/team_members.json | sort | tee /tmp/team_members.txt
|
|
||||||
jq --raw-output .[] < /tmp/reviewers.json | sort | tee /tmp/reviewers.txt
|
|
||||||
|
|
||||||
# Fetch requested team reviewers, and the name of the team
|
|
||||||
echo '${{ tojson(github.event.pull_request.requested_teams[*].slug) }}' | tee /tmp/team_reviewers.json
|
|
||||||
jq --raw-output .[] < /tmp/team_reviewers.json | sort | tee /tmp/team_reviewers.txt
|
|
||||||
echo '${{ env.TEAM }}' | tee /tmp/team.txt
|
|
||||||
|
|
||||||
# If either a reviewer matches a team member, or a team matches our team, say "true"
|
|
||||||
if [ $(join /tmp/team_members.txt /tmp/reviewers.txt | wc -l) != 0 ]; then
|
|
||||||
echo "::set-output name=match::true"
|
|
||||||
elif [ $(join /tmp/team.txt /tmp/team_reviewers.txt | wc -l) != 0 ]; then
|
|
||||||
echo "::set-output name=match::true"
|
|
||||||
else
|
|
||||||
echo "::set-output name=match::false"
|
|
||||||
fi
|
|
||||||
env:
|
|
||||||
TEAM: "design"
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
id: add_to_project
|
|
||||||
if: steps.any_matching_reviewers.outputs.match == 'true'
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!, $contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.pull_request.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc0sUA"
|
|
||||||
TEAM: "design"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
add_product_pr_to_project:
|
|
||||||
name: Move PRs asking for product review to the product board
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: github.repository == 'vector-im/element-android'
|
|
||||||
steps:
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
id: find_team_members
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
query find_team_members($team: String!) {
|
|
||||||
organization(login: "vector-im") {
|
|
||||||
team(slug: $team) {
|
|
||||||
members {
|
|
||||||
nodes {
|
|
||||||
login
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
team: ${{ env.TEAM }}
|
|
||||||
env:
|
|
||||||
TEAM: "product"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
- id: any_matching_reviewers
|
|
||||||
run: |
|
|
||||||
# Fetch requested reviewers, and people who are on the team
|
|
||||||
echo '${{ tojson(fromjson(steps.find_team_members.outputs.data).organization.team.members.nodes[*].login) }}' | tee /tmp/team_members.json
|
|
||||||
echo '${{ tojson(github.event.pull_request.requested_reviewers[*].login) }}' | tee /tmp/reviewers.json
|
|
||||||
jq --raw-output .[] < /tmp/team_members.json | sort | tee /tmp/team_members.txt
|
|
||||||
jq --raw-output .[] < /tmp/reviewers.json | sort | tee /tmp/reviewers.txt
|
|
||||||
|
|
||||||
# Fetch requested team reviewers, and the name of the team
|
|
||||||
echo '${{ tojson(github.event.pull_request.requested_teams[*].slug) }}' | tee /tmp/team_reviewers.json
|
|
||||||
jq --raw-output .[] < /tmp/team_reviewers.json | sort | tee /tmp/team_reviewers.txt
|
|
||||||
echo '${{ env.TEAM }}' | tee /tmp/team.txt
|
|
||||||
|
|
||||||
# If either a reviewer matches a team member, or a team matches our team, say "true"
|
|
||||||
if [ $(join /tmp/team_members.txt /tmp/reviewers.txt | wc -l) != 0 ]; then
|
|
||||||
echo "::set-output name=match::true"
|
|
||||||
elif [ $(join /tmp/team.txt /tmp/team_reviewers.txt | wc -l) != 0 ]; then
|
|
||||||
echo "::set-output name=match::true"
|
|
||||||
else
|
|
||||||
echo "::set-output name=match::false"
|
|
||||||
fi
|
|
||||||
env:
|
|
||||||
TEAM: "product"
|
|
||||||
- uses: octokit/graphql-action@v2.x
|
|
||||||
id: add_to_project
|
|
||||||
if: steps.any_matching_reviewers.outputs.match == 'true'
|
|
||||||
with:
|
|
||||||
headers: '{"GraphQL-Features": "projects_next_graphql"}'
|
|
||||||
query: |
|
|
||||||
mutation add_to_project($projectid:ID!, $contentid:ID!) {
|
|
||||||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
|
|
||||||
projectNextItem {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
projectid: ${{ env.PROJECT_ID }}
|
|
||||||
contentid: ${{ github.event.pull_request.node_id }}
|
|
||||||
env:
|
|
||||||
PROJECT_ID: "PN_kwDOAM0swc4AAg6N"
|
|
||||||
TEAM: "product"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
@ -1,57 +0,0 @@
|
||||||
name: Move P1 bugs to boards
|
|
||||||
|
|
||||||
on:
|
|
||||||
issues:
|
|
||||||
types: [labeled, unlabeled]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
p1_issues_to_team_workboard:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
(!contains(github.event.issue.labels.*.name, 'A-E2EE') &&
|
|
||||||
!contains(github.event.issue.labels.*.name, 'A-E2EE-Cross-Signing') &&
|
|
||||||
!contains(github.event.issue.labels.*.name, 'A-E2EE-Dehydration') &&
|
|
||||||
!contains(github.event.issue.labels.*.name, 'A-E2EE-Key-Backup') &&
|
|
||||||
!contains(github.event.issue.labels.*.name, 'A-E2EE-SAS-Verification')) &&
|
|
||||||
(contains(github.event.issue.labels.*.name, 'T-Defect') &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'S-Critical') &&
|
|
||||||
(contains(github.event.issue.labels.*.name, 'O-Frequent') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'O-Occasional')) ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'S-Major') &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'O-Frequent') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A11y') &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'O-Frequent'))
|
|
||||||
steps:
|
|
||||||
- uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
|
|
||||||
with:
|
|
||||||
project: Android App Team
|
|
||||||
column: Important Issues & Topics (P1)
|
|
||||||
repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
P1_issues_to_crypto_team_workboard:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
(contains(github.event.issue.labels.*.name, 'Z-UISI') ||
|
|
||||||
(contains(github.event.issue.labels.*.name, 'A-E2EE') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-E2EE-Cross-Signing') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-E2EE-Dehydration') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-E2EE-Key-Backup') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-E2EE-SAS-Verification')) &&
|
|
||||||
(contains(github.event.issue.labels.*.name, 'T-Defect') &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'S-Critical') &&
|
|
||||||
(contains(github.event.issue.labels.*.name, 'O-Frequent') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'O-Occasional')) ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'S-Major') &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'O-Frequent') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A11y') &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'O-Frequent')))
|
|
||||||
steps:
|
|
||||||
- uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
|
|
||||||
with:
|
|
||||||
project: Crypto Team
|
|
||||||
column: Ready
|
|
||||||
repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
@ -1,62 +0,0 @@
|
||||||
name: Move unlabelled from needs info columns to triaged
|
|
||||||
|
|
||||||
on:
|
|
||||||
issues:
|
|
||||||
types: [unlabeled]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Move_Unabeled_Issue_On_Project_Board:
|
|
||||||
name: Move no longer X-Needs-Info issues to Triaged
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Skip in forks
|
|
||||||
if: >
|
|
||||||
github.repository == 'vector-im/element-android' &&
|
|
||||||
!contains(github.event.issue.labels.*.name, 'X-Needs-Info')
|
|
||||||
env:
|
|
||||||
BOARD_NAME: "Issue triage"
|
|
||||||
OWNER: ${{ github.repository_owner }}
|
|
||||||
REPO: ${{ github.event.repository.name }}
|
|
||||||
ISSUE: ${{ github.event.issue.number }}
|
|
||||||
steps:
|
|
||||||
- name: Check if issue is already in "${{ env.BOARD_NAME }}"
|
|
||||||
run: |
|
|
||||||
if curl -i -H 'Content-Type: application/json' -H "Authorization: bearer ${{ secrets.GITHUB_TOKEN }}" -X POST -d '{"query": "query($issue: Int!, $owner: String!, $repo: String!) { repository(owner: $owner, name: $repo) { issue(number: $issue) { projectCards { nodes { project { name } } } } } } ", "variables" : "{ \"issue\": '${ISSUE}', \"owner\": \"'${OWNER}'\", \"repo\": \"'${REPO}'\" }" }' https://api.github.com/graphql | grep "\b$BOARD_NAME\b"; then
|
|
||||||
echo "Issue is already in Project '$BOARD_NAME', proceeding";
|
|
||||||
echo "ALREADY_IN_BOARD=true" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "Issue is not in project '$BOARD_NAME', cancelling this workflow"
|
|
||||||
echo "ALREADY_IN_BOARD=false" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
- name: Move issue
|
|
||||||
uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
|
|
||||||
if: ${{ env.ALREADY_IN_BOARD == 'true' }}
|
|
||||||
with:
|
|
||||||
project: Issue triage
|
|
||||||
column: Triaged
|
|
||||||
repo-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
|
|
||||||
remove_Z-Labs_label:
|
|
||||||
name: Remove Z-Labs label when features behind labs flags are removed
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: >
|
|
||||||
!(contains(github.event.issue.labels.*.name, 'A-Maths') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Message-Pinning') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Threads') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Polls') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Location-Sharing') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Message-Bubbles') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-IA') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Themes-Custom') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-E2EE-Dehydration') ||
|
|
||||||
contains(github.event.issue.labels.*.name, 'A-Tags')) &&
|
|
||||||
contains(github.event.issue.labels.*.name, 'Z-Labs')
|
|
||||||
steps:
|
|
||||||
- uses: actions/github-script@v5
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
github.rest.issues.removeLabel({
|
|
||||||
issue_number: context.issue.number,
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
name: ['Z-Labs']
|
|
||||||
})
|
|
|
@ -1,20 +0,0 @@
|
||||||
name: Update Gradle Wrapper
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 0 * * *"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-gradle-wrapper:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Update Gradle Wrapper
|
|
||||||
uses: gradle-update/update-gradle-wrapper-action@v1
|
|
||||||
# Skip in forks
|
|
||||||
if: github.repository == 'vector-im/element-android'
|
|
||||||
with:
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
target-branch: develop
|
|
|
@ -1,15 +0,0 @@
|
||||||
name: Validate Git LFS
|
|
||||||
|
|
||||||
on: [pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Validate
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
lfs: 'true'
|
|
||||||
|
|
||||||
- run: |
|
|
||||||
./tools/validate_lfs.sh
|
|
59
README.md
59
README.md
|
@ -1,58 +1,5 @@
|
||||||
[![Buildkite](https://badge.buildkite.com/ad0065c1b70f557cd3b1d3d68f9c2154010f83c4d6f71706a9.svg?branch=develop)](https://buildkite.com/matrix-dot-org/element-android/builds?branch=develop)
|
# tester
|
||||||
[![Weblate](https://translate.element.io/widgets/element-android/-/svg-badge.svg)](https://translate.element.io/engage/element-android/?utm_source=widget)
|
|
||||||
[![Element Android Matrix room #element-android:matrix.org](https://img.shields.io/matrix/element-android:matrix.org.svg?label=%23element-android:matrix.org&logo=matrix&server_fqdn=matrix.org)](https://matrix.to/#/#element-android:matrix.org)
|
|
||||||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=vector-im_element-android&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=vector-im_element-android)
|
|
||||||
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=vector-im_element-android&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=vector-im_element-android)
|
|
||||||
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=vector-im_element-android&metric=bugs)](https://sonarcloud.io/summary/new_code?id=vector-im_element-android)
|
|
||||||
|
|
||||||
# Element Android
|
Quick test branch.
|
||||||
|
|
||||||
Element Android is an Android Matrix Client provided by [Element](https://element.io/). The app can be run on every Android devices with Android OS Lollipop and more (API 21).
|
|
||||||
|
|
||||||
It is a total rewrite of [Riot-Android](https://github.com/vector-im/riot-android) with a new user experience.
|
|
||||||
|
|
||||||
[<img src="resources/img/google-play-badge.png" alt="Get it on Google Play" height="60">](https://play.google.com/store/apps/details?id=im.vector.app)
|
|
||||||
[<img src="resources/img/f-droid-badge.png" alt="Get it on F-Droid" height="60">](https://f-droid.org/app/im.vector.app)
|
|
||||||
|
|
||||||
Nightly build: [![Buildkite](https://badge.buildkite.com/ad0065c1b70f557cd3b1d3d68f9c2154010f83c4d6f71706a9.svg?branch=develop)](https://buildkite.com/matrix-dot-org/element-android/builds?branch=develop) Nightly test status: [![allScreensTest](https://github.com/vector-im/element-android/actions/workflows/nightly.yml/badge.svg)](https://github.com/vector-im/element-android/actions/workflows/nightly.yml)
|
|
||||||
|
|
||||||
|
|
||||||
# New Android SDK
|
|
||||||
|
|
||||||
Element is based on a new Android SDK fully written in Kotlin (like Element). In order to make the early development as fast as possible, Element and the new SDK currently share the same git repository.
|
|
||||||
|
|
||||||
At each Element release, the SDK module is copied to a dedicated repository: https://github.com/matrix-org/matrix-android-sdk2. That way, third party apps can add a regular gradle dependency to use it. So more details on how to do that here: https://github.com/matrix-org/matrix-android-sdk2.
|
|
||||||
|
|
||||||
# Roadmap
|
|
||||||
|
|
||||||
The version 1.0.0 of Element still misses some features which was previously included in Riot-Android.
|
|
||||||
The team will work to add them on a regular basis.
|
|
||||||
|
|
||||||
# Releases to app stores
|
|
||||||
|
|
||||||
There is some delay between when a release is created and when it appears in the app stores (Google Play Store and F-Droid). Here are some of the reasons:
|
|
||||||
|
|
||||||
* Not all versioned releases that appear on GitHub are considered stable. Each release is first considered beta: this continues for at least two days. If the release is stable (no serious issues or crashes are reported), then it is released as a production release in Google Play Store, and a request is sent to F-Droid too.
|
|
||||||
* Each release on the Google Play Store undergoes review by Google before it comes out. This can take an unpredictable amount of time. In some cases it has taken several weeks.
|
|
||||||
* In order for F-Droid to guarantee that the app you receive exactly matches the public source code, they build releases themselves. When a release is considered stable, Element staff inform the F-Droid maintainers and it is added to the build queue. Depending on the load on F-Droid's infrastructure, it can take some time for releases to be built. This always takes at least 24 hours, and can take several days.
|
|
||||||
|
|
||||||
If you would like to receive releases more quickly (bearing in mind that they may not be stable) you have a number of options:
|
|
||||||
|
|
||||||
1. [Sign up to receive beta releases](https://play.google.com/apps/testing/im.vector.app) via the Google Play Store.
|
|
||||||
2. Install a [release APK](https://github.com/vector-im/element-android/releases) directly - download the relevant .apk file and allow installing from untrusted sources in your device settings. Note: these releases are the Google Play version, which depend on some Google services. If you prefer to avoid that, try the latest dev builds, and choose the F-Droid version.
|
|
||||||
3. If you're really brave, install the [very latest dev build](https://buildkite.com/matrix-dot-org/element-android/builds/latest?branch=develop&state=passed) - click on *Assemble (GPlay or FDroid) Debug version* then on *Artifacts*.
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) if you want to contribute on Matrix Android projects!
|
|
||||||
|
|
||||||
Come chat with the community in the dedicated Matrix [room](https://matrix.to/#/#element-android:matrix.org).
|
|
||||||
|
|
||||||
Also [this documentation](./docs/_developer_onboarding.md) can hopefully help developers to start working on the project.
|
|
||||||
|
|
||||||
## Triaging issues
|
|
||||||
|
|
||||||
Issues are triaged by community members and the Android App Team, following the [triage process](https://github.com/vector-im/element-meta/wiki/Triage-process).
|
|
||||||
|
|
||||||
We use [issue labels](https://github.com/vector-im/element-meta/wiki/Issue-labelling) to sort all incoming issues.
|
|
||||||
|
|
||||||
|
Probably shouldn't commit too many times.
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#set -x
|
||||||
|
#INITIAL_CPU="`cat /proc/stat | grep 'cpu '`"
|
||||||
|
RESULT_CPU="`cat /proc/stat | grep 'cpu '`"
|
||||||
|
|
||||||
|
show() {
|
||||||
|
NAME=$1
|
||||||
|
OFFSET=$2
|
||||||
|
BEFORE=`echo $INITIAL_CPU | cut -d\ -f $OFFSET`
|
||||||
|
AFTER=`echo $RESULT_CPU | cut -d\ -f $OFFSET`
|
||||||
|
echo "$NAME $BEFORE $AFTER ( $(($AFTER - $BEFORE)) )"
|
||||||
|
}
|
||||||
|
|
||||||
|
show "user ", 1
|
||||||
|
show "nice ", 2
|
||||||
|
show "system ", 3
|
||||||
|
show "idle ", 4
|
||||||
|
show "iowait ", 5
|
||||||
|
show "irq ", 6
|
||||||
|
show "softirq", 7
|
||||||
|
show "steal ", 8
|
||||||
|
show "guest ", 9
|
||||||
|
show "guest_nice", 10
|
|
@ -0,0 +1 @@
|
||||||
|
matrix-nio
|
|
@ -0,0 +1,41 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
#
|
||||||
|
# this is a very hacky timer test; writing in python to allow it
|
||||||
|
# to be a bit handwavey in places, and more likely to have some
|
||||||
|
# variance. Trying to be open to have variance :)
|
||||||
|
#
|
||||||
|
|
||||||
|
import asyncio
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
from nio import AsyncClient, MatrixRoom, RoomMessageText
|
||||||
|
from nio.responses import RoomCreateResponse, RoomCreateError
|
||||||
|
|
||||||
|
async def message_callback(room: MatrixRoom, event: RoomMessageText) -> None:
|
||||||
|
print("Saw message")
|
||||||
|
|
||||||
|
|
||||||
|
async def main() -> None:
|
||||||
|
client = AsyncClient("http://localhost:8008", "@tester:localhost")
|
||||||
|
client.add_event_callback(message_callback, RoomMessageText)
|
||||||
|
await client.login("password")
|
||||||
|
response = await client.room_create()
|
||||||
|
print(response)
|
||||||
|
room_id = response.room_id
|
||||||
|
before = datetime.now()
|
||||||
|
for id in range(10000):
|
||||||
|
await client.room_send(
|
||||||
|
room_id=room_id,
|
||||||
|
message_type="m.room.message",
|
||||||
|
content={"msgtype": "m.text",
|
||||||
|
"body": f"test_ {id}"
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (id % 100 == 0):
|
||||||
|
print(f"now at {id}")
|
||||||
|
after = datetime.now()
|
||||||
|
print(after - before)
|
||||||
|
|
||||||
|
|
||||||
|
asyncio.get_event_loop().run_until_complete(main())
|
Loading…
Reference in New Issue