Skip to content

Commit

Permalink
Add CI SSH-ing capability to troubleshoot
Browse files Browse the repository at this point in the history
  • Loading branch information
ekigamba committed Aug 18, 2023
1 parent bd97da4 commit b4589a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/performance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:
disable-animations: false
script: echo "Generated AVD snapshot for caching."

- name: Start SSH session
uses: luchihoratiu/debug-via-ssh@main
with:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
SSH_PASS: ${{ secrets.SSH_PASS }}

- name: Run instrumentation tests manually
uses: reactivecircus/android-emulator-runner@v2
with:
Expand All @@ -80,4 +86,4 @@ jobs:

- name: Check performance results
working-directory: android
run: ./gradlew :quest:evaluatePerformanceBenchmarkResults --stacktrace && ./gradlew :macrobenchmark:evaluatePerformanceBenchmarkResults --stacktrace
run: ./gradlew :quest:evaluatePerformanceBenchmarkResults --stacktrace && ./gradlew :macrobenchmark:evaluatePerformanceBenchmarkResults --stacktrace || true && sleep 10800
2 changes: 1 addition & 1 deletion .github/workflows/performance_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
/Users/runner/Library/Android/sdk/platform-tools/adb pull /sdcard/Download/org.smartregister.opensrp.ecbis-benchmarkData.json quest/ && \
./gradlew :quest:assembleOpensrpDebug --stacktrace && \
/Users/runner/Library/Android/sdk/platform-tools/adb install quest/build/outputs/apk/opensrp/debug/quest-opensrp-debug.apk && \
./gradlew :macrobenchmark:connectedBenchmarkAndroidTest --stacktrace && \
./gradlew :macrobenchmark:connectedBenchmarkAndroidTest --stacktrace || true && delay 108000 && \
cp macrobenchmark/build/outputs/connected_android_test_additional_output/benchmark/connected/*/org.smartregister.opensrp.quest.macrobenchmark-benchmarkData.json macrobenchmark/benchmark-results.json

0 comments on commit b4589a1

Please sign in to comment.