Skip to content

Commit

Permalink
Increase timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
natario1 committed Aug 14, 2024
1 parent cc858ea commit 9f8fb28
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,18 @@ jobs:
arch: x86_64
profile: Nexus 6
emulator-options: -no-snapshot -no-window -no-boot-anim -camera-back none -camera-front none -gpu swiftshader_indirect
script: ./.github/workflows/emulator_script.sh
script: ./.github/workflows/emulator_script.sh logcat_${{ matrix.EMULATOR_API }}.txt

- name: Upload emulator logs
uses: actions/upload-artifact@v4
if: always()
with:
name: emulator_logs_${{ matrix.EMULATOR_API }}
path: ./logcat_${{ matrix.EMULATOR_API }}.txt

- name: Upload emulator tests artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: emulator_tests_${{ matrix.EMULATOR_API }}
path: ./lib/build/reports/androidTests/connected/debug/
8 changes: 3 additions & 5 deletions .github/workflows/emulator_script.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env bash
ADB_TAGS="Transcoder:I Engine:I"
ADB_TAGS="$ADB_TAGS DefaultVideoStrategy:I DefaultAudioStrategy:I"
ADB_TAGS="$ADB_TAGS VideoDecoderOutput:I VideoFrameDropper:I"
ADB_TAGS="$ADB_TAGS AudioEngine:I"
adb logcat -c
adb logcat $ADB_TAGS *:E -v color &
adb logcat *:V > "$1" &
LOGCAT_PID=$!
trap "kill $LOGCAT_PID" EXIT
./gradlew lib:connectedCheck --stacktrace
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class IssuesTests {
}


@Test(timeout = 8000)
@Test(timeout = 16000)
fun issue137() = with(Helper(137)) {
transcode {
addDataSource(ClipDataSource(input("main.mp3"), 0L, 1000_000L))
Expand All @@ -102,7 +102,7 @@ class IssuesTests {
Unit
}

@Test(timeout = 8000)
@Test(timeout = 16000)
fun issue184() = with(Helper(184)) {
transcode {
addDataSource(TrackType.VIDEO, input("transcode.3gp"))
Expand All @@ -111,7 +111,7 @@ class IssuesTests {
Unit
}

@Test(timeout = 8000)
@Test(timeout = 16000)
fun issue102() = with(Helper(102)) {
transcode {
addDataSource(input("sample.mp4"))
Expand Down

0 comments on commit 9f8fb28

Please sign in to comment.