Merge pull request #5387 from vector-im/michaelk/nightly_tests_logcat
Nightly Tests should save logcat logs to artifact
This commit is contained in:
commit
74040c5563
68
.github/workflows/nightly.yml
vendored
68
.github/workflows/nightly.yml
vendored
@ -104,11 +104,20 @@ jobs:
|
|||||||
force-avd-creation: false
|
force-avd-creation: false
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
||||||
emulator-build: 7425822
|
emulator-build: 7425822
|
||||||
script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.package='org.matrix.android.sdk.session' matrix-sdk-android:connectedDebugAndroidTest
|
script: |
|
||||||
|
adb root
|
||||||
|
adb logcat -c
|
||||||
|
touch emulator-session.log
|
||||||
|
chmod 777 emulator-session.log
|
||||||
|
adb logcat >> emulator-session.log &
|
||||||
|
./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.package='org.matrix.android.sdk.session' matrix-sdk-android:connectedDebugAndroidTest
|
||||||
- name: Read Results [org.matrix.android.sdk.session]
|
- name: Read Results [org.matrix.android.sdk.session]
|
||||||
if: always()
|
if: always()
|
||||||
id: get-comment-body-session
|
id: get-comment-body-session
|
||||||
run: python3 ./tools/ci/render_test_output.py session ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
run: python3 ./tools/ci/render_test_output.py session ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
||||||
|
- name: Remove adb logcat
|
||||||
|
if: always()
|
||||||
|
run: pkill -9 adb
|
||||||
- name: Run integration tests for Matrix SDK [org.matrix.android.sdk.account] API[${{ matrix.api-level }}]
|
- name: Run integration tests for Matrix SDK [org.matrix.android.sdk.account] API[${{ matrix.api-level }}]
|
||||||
if: always()
|
if: always()
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
@ -119,11 +128,20 @@ jobs:
|
|||||||
force-avd-creation: false
|
force-avd-creation: false
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
||||||
emulator-build: 7425822
|
emulator-build: 7425822
|
||||||
script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.package='org.matrix.android.sdk.account' matrix-sdk-android:connectedDebugAndroidTest
|
script: |
|
||||||
|
adb root
|
||||||
|
adb logcat -c
|
||||||
|
touch emulator-account.log
|
||||||
|
chmod 777 emulator-account.log
|
||||||
|
adb logcat >> emulator-account.log &
|
||||||
|
./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.package='org.matrix.android.sdk.account' matrix-sdk-android:connectedDebugAndroidTest
|
||||||
- name: Read Results [org.matrix.android.sdk.account]
|
- name: Read Results [org.matrix.android.sdk.account]
|
||||||
if: always()
|
if: always()
|
||||||
id: get-comment-body-account
|
id: get-comment-body-account
|
||||||
run: python3 ./tools/ci/render_test_output.py account ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
run: python3 ./tools/ci/render_test_output.py account ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
||||||
|
- name: Remove adb logcat
|
||||||
|
if: always()
|
||||||
|
run: pkill -9 adb
|
||||||
# package: org.matrix.android.sdk.internal
|
# package: org.matrix.android.sdk.internal
|
||||||
- name: Run integration tests for Matrix SDK [org.matrix.android.sdk.internal] API[${{ matrix.api-level }}]
|
- name: Run integration tests for Matrix SDK [org.matrix.android.sdk.internal] API[${{ matrix.api-level }}]
|
||||||
if: always()
|
if: always()
|
||||||
@ -135,11 +153,20 @@ jobs:
|
|||||||
force-avd-creation: false
|
force-avd-creation: false
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
||||||
emulator-build: 7425822
|
emulator-build: 7425822
|
||||||
script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.package='org.matrix.android.sdk.internal' matrix-sdk-android:connectedDebugAndroidTest
|
script: |
|
||||||
|
adb root
|
||||||
|
adb logcat -c
|
||||||
|
touch emulator-internal.log
|
||||||
|
chmod 777 emulator-internal.log
|
||||||
|
adb logcat >> emulator-internal.log &
|
||||||
|
./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.package='org.matrix.android.sdk.internal' matrix-sdk-android:connectedDebugAndroidTest
|
||||||
- name: Read Results [org.matrix.android.sdk.internal]
|
- name: Read Results [org.matrix.android.sdk.internal]
|
||||||
if: always()
|
if: always()
|
||||||
id: get-comment-body-internal
|
id: get-comment-body-internal
|
||||||
run: python3 ./tools/ci/render_test_output.py internal ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
run: python3 ./tools/ci/render_test_output.py internal ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
||||||
|
- name: Remove adb logcat
|
||||||
|
if: always()
|
||||||
|
run: pkill -9 adb
|
||||||
# package: org.matrix.android.sdk.ordering
|
# package: org.matrix.android.sdk.ordering
|
||||||
- name: Run integration tests for Matrix SDK [org.matrix.android.sdk.ordering] API[${{ matrix.api-level }}]
|
- name: Run integration tests for Matrix SDK [org.matrix.android.sdk.ordering] API[${{ matrix.api-level }}]
|
||||||
if: always()
|
if: always()
|
||||||
@ -151,11 +178,20 @@ jobs:
|
|||||||
force-avd-creation: false
|
force-avd-creation: false
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
||||||
emulator-build: 7425822
|
emulator-build: 7425822
|
||||||
script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.package='org.matrix.android.sdk.ordering' matrix-sdk-android:connectedDebugAndroidTest
|
script: |
|
||||||
|
adb root
|
||||||
|
adb logcat -c
|
||||||
|
touch emulator-ordering.log
|
||||||
|
chmod 777 emulator-ordering.log
|
||||||
|
adb logcat >> emulator-ordering.log &
|
||||||
|
./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.package='org.matrix.android.sdk.ordering' matrix-sdk-android:connectedDebugAndroidTest
|
||||||
- name: Read Results [org.matrix.android.sdk.ordering]
|
- name: Read Results [org.matrix.android.sdk.ordering]
|
||||||
if: always()
|
if: always()
|
||||||
id: get-comment-body-ordering
|
id: get-comment-body-ordering
|
||||||
run: python3 ./tools/ci/render_test_output.py ordering ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
run: python3 ./tools/ci/render_test_output.py ordering ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
||||||
|
- name: Remove adb logcat
|
||||||
|
if: always()
|
||||||
|
run: pkill -9 adb
|
||||||
# package: class PermalinkParserTest
|
# package: class PermalinkParserTest
|
||||||
- name: Run integration tests for Matrix SDK class [org.matrix.android.sdk.PermalinkParserTest] API[${{ matrix.api-level }}]
|
- name: Run integration tests for Matrix SDK class [org.matrix.android.sdk.PermalinkParserTest] API[${{ matrix.api-level }}]
|
||||||
if: always()
|
if: always()
|
||||||
@ -167,11 +203,20 @@ jobs:
|
|||||||
force-avd-creation: false
|
force-avd-creation: false
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
||||||
emulator-build: 7425822
|
emulator-build: 7425822
|
||||||
script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.class='org.matrix.android.sdk.PermalinkParserTest' matrix-sdk-android:connectedDebugAndroidTest
|
script: |
|
||||||
|
adb root
|
||||||
|
adb logcat -c
|
||||||
|
touch emulator-permalink.log
|
||||||
|
chmod 777 emulator-permalink.log
|
||||||
|
adb logcat >> emulator-permalink.log &
|
||||||
|
./gradlew $CI_GRADLE_ARG_PROPERTIES -Pandroid.testInstrumentationRunnerArguments.class='org.matrix.android.sdk.PermalinkParserTest' matrix-sdk-android:connectedDebugAndroidTest
|
||||||
- name: Read Results [org.matrix.android.sdk.PermalinkParserTest]
|
- name: Read Results [org.matrix.android.sdk.PermalinkParserTest]
|
||||||
if: always()
|
if: always()
|
||||||
id: get-comment-body-permalink
|
id: get-comment-body-permalink
|
||||||
run: python3 ./tools/ci/render_test_output.py permalink ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
run: python3 ./tools/ci/render_test_output.py permalink ./matrix-sdk-android/build/outputs/androidTest-results/connected/*.xml
|
||||||
|
- name: Remove adb logcat
|
||||||
|
if: always()
|
||||||
|
run: pkill -9 adb
|
||||||
# package: class PermalinkParserTest
|
# package: class PermalinkParserTest
|
||||||
- name: Find Comment
|
- name: Find Comment
|
||||||
if: always() && github.event_name == 'pull_request'
|
if: always() && github.event_name == 'pull_request'
|
||||||
@ -196,6 +241,17 @@ jobs:
|
|||||||
- `[org.matrix.android.sdk.ordering]`<br>${{ steps.get-comment-body-ordering.outputs.ordering }}
|
- `[org.matrix.android.sdk.ordering]`<br>${{ steps.get-comment-body-ordering.outputs.ordering }}
|
||||||
- `[org.matrix.android.sdk.PermalinkParserTest]`<br>${{ steps.get-comment-body-permalink.outputs.permalink }}
|
- `[org.matrix.android.sdk.PermalinkParserTest]`<br>${{ steps.get-comment-body-permalink.outputs.permalink }}
|
||||||
edit-mode: replace
|
edit-mode: replace
|
||||||
|
- name: Upload Test Report Log
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: integrationtest-error-results
|
||||||
|
path: |
|
||||||
|
emulator-permalink.log
|
||||||
|
emulator-internal.log
|
||||||
|
emulator-ordering.log
|
||||||
|
emulator-account.log
|
||||||
|
emulator-session.log
|
||||||
|
|
||||||
ui-tests:
|
ui-tests:
|
||||||
name: UI Tests (Synapse)
|
name: UI Tests (Synapse)
|
||||||
@ -250,7 +306,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: sanity-error-results
|
name: uitest-error-results
|
||||||
path: |
|
path: |
|
||||||
emulator.log
|
emulator.log
|
||||||
failure_screenshots/
|
failure_screenshots/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user