-
-
Notifications
You must be signed in to change notification settings - Fork 117
676 lines (577 loc) · 23.9 KB
/
Copy pathci.yml
File metadata and controls
676 lines (577 loc) · 23.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
name: CI
on:
push:
branches: [ main, 'v[0-9].[0-9]+.x', 'release/**' ]
pull_request:
branches: [ main, 'v[0-9].[0-9]+.x', 'release/**' ]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
validate-wrapper:
name: Validate Gradle Wrapper
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v6.3.0
lint:
name: Code Quality (ktlint + detekt + CPD + Android Lint)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
persist-credentials: false
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6.3.0
with:
cache-read-only: false
- name: Set up Python 3.11
# Android `lint` covers :rns-backend-py + the pythonBackend variants, which
# trigger Chaquopy's installPythonRequirements — and Chaquopy 17 only accepts
# buildPython 3.11 (same reason the kotlin-tests + release jobs set this up).
uses: actions/setup-python@v7
with:
python-version: '3.11'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run all lint checks (ktlint, detekt, CPD, Android Lint)
# Android `lint` enforces only the checks in `checkOnly` (round 1: NewApi);
# see the Android Lint block in the root build.gradle.kts. No baseline.
# `lint` covers each module's DEFAULT variant; the two extra variant tasks
# cover the flavor source the default misses (app/src/noSentry,
# rns-host/src/pythonBackend) so NewApi is enforced across all variants.
run: >-
./gradlew ktlintCheck detekt cpdCheck
lint :app:lintNoSentryKotlinBackendDebug :rns-host:lintPythonBackendDebug
--continue
- name: Check for forbidden test suppressions
run: |
echo "Checking for forbidden @Suppress annotations in test files..."
# Count files with NoRelaxedMocks suppression
RELAXED_COUNT=$(grep -r "Suppress.*NoRelaxedMocks" app/src/test reticulum/src/test --include="*.kt" -l 2>/dev/null | wc -l || echo "0")
# Count files with NoVerifyOnlyTests suppression
VERIFY_COUNT=$(grep -r "Suppress.*NoVerifyOnlyTests" app/src/test reticulum/src/test --include="*.kt" -l 2>/dev/null | wc -l || echo "0")
echo "Files with @Suppress(\"NoRelaxedMocks\"): $RELAXED_COUNT"
echo "Files with @Suppress(\"NoVerifyOnlyTests\"): $VERIFY_COUNT"
# These rules exist to prevent useless tests that don't test production code.
# Suppressing them defeats the purpose. Fix the tests instead.
#
# BASELINE: Ratchet down over time. Don't increase these numbers.
# Current state reflects Android framework mocks (Context, BluetoothManager, etc.)
# that are impractical to stub explicitly. Fix when possible.
RELAXED_BASELINE=37
VERIFY_BASELINE=3
FAIL=false
if [ "$RELAXED_COUNT" -gt "$RELAXED_BASELINE" ]; then
echo "::error::NoRelaxedMocks suppressions increased from $RELAXED_BASELINE to $RELAXED_COUNT"
echo "Do not add @Suppress(\"NoRelaxedMocks\"). Use explicit stubs instead of relaxed mocks."
FAIL=true
fi
if [ "$VERIFY_COUNT" -gt "$VERIFY_BASELINE" ]; then
echo "::error::NoVerifyOnlyTests suppressions increased from $VERIFY_BASELINE to $VERIFY_COUNT"
echo "Do not add @Suppress(\"NoVerifyOnlyTests\"). Add assertions to your tests."
FAIL=true
fi
if [ "$FAIL" = true ]; then
exit 1
fi
echo "✓ No new forbidden suppressions found"
- name: Upload lint reports
if: always()
uses: actions/upload-artifact@v7
with:
name: lint-reports
path: |
**/build/reports/ktlint/
**/build/reports/detekt/
**/build/reports/lint-results-*.*
build/reports/cpd/
retention-days: 7
threading-audit:
name: Threading Architecture Audit
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
- name: Make audit script executable
run: chmod +x audit-dispatchers.sh
- name: Run dispatcher audit
id: audit
run: |
echo "Running threading architecture audit..."
./audit-dispatchers.sh
exit_code=$?
echo "exit_code=$exit_code" >> $GITHUB_OUTPUT
exit $exit_code
- name: Upload audit report
if: always()
uses: actions/upload-artifact@v7
with:
name: threading-audit-report
path: dispatcher-audit-report.txt
retention-days: 30
- name: Comment audit results on PR
if: failure() && github.event_name == 'pull_request'
uses: actions/github-script@v9
with:
script: |
const fs = require('fs');
let report = 'Dispatcher audit report not found';
try {
report = fs.readFileSync('dispatcher-audit-report.txt', 'utf8');
} catch (e) {
console.log('Could not read audit report');
}
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `## ❌ Threading Architecture Audit Failed\n\n<details><summary>View Audit Report</summary>\n\n\`\`\`\n${report}\n\`\`\`\n\n</details>\n\nPlease fix the dispatcher violations before merging.`
});
kotlin-tests:
name: Kotlin Tests (Shard ${{ matrix.shard }}/4)
needs: [lint, validate-wrapper]
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
shard: [0, 1, 2, 3]
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
persist-credentials: false
- name: Set up JDK 25
uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 25
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6.3.0
with:
cache-read-only: false
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Clean AIDL generated code
run: |
# Clean AIDL generated code to avoid stale cache issues
# This MUST happen before Gradle cache restore to prevent cached stale AIDL files
rm -rf app/build/generated/aidl_source_output_dir
rm -rf */build/generated/aidl_source_output_dir
- name: Clean JaCoCo execution data
run: |
# Clean stale JaCoCo execution data to avoid "exceeds max age" errors in Codecov
rm -rf build/jacoco
rm -rf */build/jacoco
rm -rf build/reports/jacoco
rm -rf */build/reports/jacoco
- name: Cache Robolectric Android SDKs
uses: actions/cache@v6
with:
path: ~/.m2/repository/org/robolectric
key: robolectric-4.16-${{ runner.os }}
restore-keys: |
robolectric-4.16-
robolectric-
- name: Resolve dependencies (with retry)
# Pre-resolve all dependencies before running tests. This isolates transient
# Maven repository errors (e.g. 502 from dl.google.com) from actual test failures,
# and avoids retrying the entire test suite for a network blip.
run: |
for attempt in 1 2 3; do
echo "Dependency resolution attempt $attempt/3..."
if ./gradlew :app:dependencies --configuration noSentryKotlinBackendDebugUnitTestRuntimeClasspath -q 2>/dev/null; then
echo "Dependencies resolved successfully."
break
fi
if [ "$attempt" -eq 3 ]; then
echo "::error::Failed to resolve dependencies after 3 attempts"
exit 1
fi
echo "::warning::Dependency resolution failed (attempt $attempt), retrying in 15s..."
sleep 15
done
- name: Run app unit tests (shard ${{ matrix.shard }})
# Build cache enabled for faster incremental builds
# AIDL and JaCoCo caching issues are handled by clean steps above
# NOTE: For app module, only run noSentry variant (sentry/noSentry share the same test code,
# differing only in SENTRY_DSN buildConfigField which tests don't exercise).
run: ./gradlew :app:testNoSentryKotlinBackendDebugUnitTest -PtestShard=${{ matrix.shard }} -PtestShardTotal=4 --stacktrace --max-workers=4
- name: Upload unit test results
if: always()
uses: actions/upload-artifact@v7
with:
name: kotlin-test-results-shard-${{ matrix.shard }}
path: |
**/build/test-results/test*/*.xml
**/build/test-results/test*/*.html
retention-days: 7
- name: Upload unit test reports
if: failure()
uses: actions/upload-artifact@v7
with:
name: kotlin-test-reports-shard-${{ matrix.shard }}
path: |
**/build/reports/tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./**/build/reports/jacoco/**/*.xml
flags: unittests
name: codecov-shard-${{ matrix.shard }}
fail_ci_if_error: false
verbose: true
- name: Upload Kotlin coverage reports
if: always()
uses: actions/upload-artifact@v7
with:
name: kotlin-coverage-reports-shard-${{ matrix.shard }}
path: |
**/build/reports/jacoco/
retention-days: 7
module-tests:
name: Module Tests (reticulum + data + micron)
needs: [lint, validate-wrapper]
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
persist-credentials: false
- name: Set up JDK 25
uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 25
- name: Set up Python 3.11
# Required by Chaquopy's `installDebugPythonRequirements` task on
# :rns-backend-py — Chaquopy 17 only accepts buildPython 3.11.
uses: actions/setup-python@v7
with:
python-version: '3.11'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6.3.0
with:
cache-read-only: false
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Clean AIDL generated code
run: |
# Clean AIDL generated code to avoid stale cache issues
# This MUST happen before Gradle cache restore to prevent cached stale AIDL files
rm -rf app/build/generated/aidl_source_output_dir
rm -rf */build/generated/aidl_source_output_dir
- name: Clean JaCoCo execution data
run: |
# Clean stale JaCoCo execution data to avoid "exceeds max age" errors in Codecov
rm -rf build/jacoco
rm -rf */build/jacoco
rm -rf build/reports/jacoco
rm -rf */build/reports/jacoco
- name: Cache Robolectric Android SDKs
uses: actions/cache@v6
with:
path: ~/.m2/repository/org/robolectric
key: robolectric-4.16-${{ runner.os }}
restore-keys: |
robolectric-4.16-
robolectric-
- name: Run RNS, stats, data, and micron module tests
run: ./gradlew :rns-api:testDebugUnitTest :rns-ipc:testDebugUnitTest :rns-host:testKotlinBackendDebugUnitTest :rns-host:testPythonBackendDebugUnitTest :rns-backend-kt:testDebugUnitTest :rns-backend-py:testDebugUnitTest :rns-stats:testDebugUnitTest :data:testDebugUnitTest :micron:test --stacktrace --max-workers=4
- name: Upload unit test results
if: always()
uses: actions/upload-artifact@v7
with:
name: module-test-results
path: |
**/build/test-results/test*/*.xml
**/build/test-results/test*/*.html
retention-days: 7
- name: Upload unit test reports
if: failure()
uses: actions/upload-artifact@v7
with:
name: module-test-reports
path: |
**/build/reports/tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./**/build/reports/jacoco/**/*.xml
flags: unittests
name: codecov-modules
fail_ci_if_error: false
verbose: true
proguard-verification:
name: Verify Python-Kotlin Bridge (R8)
# Builds the minified pythonBackend RELEASE APK and asserts, against R8's own
# mapping.txt, that the @Keep'd Python<->Kotlin bridge classes/methods survive
# un-renamed. Chaquopy resolves them by name, so obfuscation would silently
# break the python flavor at runtime. No emulator needed — checking the rename
# table is the canonical, deterministic way to verify keep rules.
needs: [lint, validate-wrapper]
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
persist-credentials: false
- name: Set up JDK 25
uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 25
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6.3.0
with:
cache-read-only: false
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.11'
- name: Install Python build dependencies
run: pip install build
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build minified pythonBackend release (generates R8 mapping)
# noSentry + no SENTRY_AUTH_TOKEN keeps the Sentry mapping-upload path out;
# unsigned is fine — minification (and mapping.txt) happens regardless.
timeout-minutes: 40
run: ./gradlew :app:assembleNoSentryPythonBackendRelease --stacktrace --max-workers=2
- name: Assert bridge classes/methods survived R8
run: |
python scripts/assert_bridges_kept.py \
app/build/outputs/mapping/noSentryPythonBackendRelease/mapping.txt
- name: Upload R8 mapping file
# Only on failure — the mapping (~130 MB for the python flavor) is only
# useful for debugging a gate failure, and uploading it every run would
# dominate the Actions storage quota.
if: failure()
uses: actions/upload-artifact@v7
with:
name: r8-mapping-pythonBackend
path: app/build/outputs/mapping/noSentryPythonBackendRelease/mapping.txt
retention-days: 14
- name: Cleanup emulator
if: always()
run: |
adb devices | grep emulator | cut -f1 | xargs -I {} adb -s {} emu kill || true
pkill -9 qemu-system || true
adb kill-server || true
instrumented-tests:
name: Instrumented Tests (Kotlin + Identity Recovery)
# Run in parallel with other jobs
needs: [lint, validate-wrapper]
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
persist-credentials: false
- name: Set up JDK 25
uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 25
- name: Set up Python 3.11
# Required by Chaquopy when building the Python-backend recovery tests.
uses: actions/setup-python@v7
with:
python-version: '3.11'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6.3.0
with:
cache-read-only: false
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Clean AIDL generated code
run: |
# Clean AIDL generated code to avoid stale cache issues
rm -rf app/build/generated/aidl_source_output_dir
rm -rf */build/generated/aidl_source_output_dir
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Pre-build test APKs
run: |
echo "Building APKs before starting emulator..."
./gradlew :app:assembleNoSentryKotlinBackendDebugAndroidTest --stacktrace --max-workers=2
./gradlew :app:assembleNoSentryKotlinBackendDebug --stacktrace --max-workers=2
./gradlew :app:assembleNoSentryPythonBackendDebugAndroidTest :app:assembleNoSentryPythonBackendDebug --stacktrace --max-workers=2
./gradlew :rns-backend-py:assembleDebugAndroidTest :rns-backend-py:assembleDebug --stacktrace --max-workers=2
echo "APKs built successfully"
- name: AVD cache
uses: actions/cache@v6
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-34-x86_64-v6
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2.38.0
with:
api-level: 34
arch: x86_64
target: google_apis
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -memory 2048
disable-animations: true
emulator-boot-timeout: 600
script: |
echo "Waiting for emulator to be ready..."
adb wait-for-device
adb shell getprop sys.boot_completed | grep -q 1 || sleep 10
echo "Emulator ready, generating snapshot for caching."
- name: Run instrumented tests
uses: reactivecircus/android-emulator-runner@v2.38.0
with:
api-level: 34
arch: x86_64
target: google_apis
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -memory 2048
disable-animations: true
emulator-boot-timeout: 600
# The emulator action executes each literal-script line as a separate shell.
# Fold this into one command so status is retained across all test groups.
script: >-
echo "Running emulator health check...";
adb shell getprop ro.build.version.sdk;
adb shell pm list packages | head -5;
echo "Emulator is responsive, starting tests...";
status=0;
./gradlew :app:connectedNoSentryKotlinBackendDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=network.columba.app.smoke.SmokeTest,network.columba.app.integration.MessageDataFlowTest,network.columba.app.integration.ConversationCreationFlowTest,network.columba.app.ui.components.MicronTrueColorRenderingTest --stacktrace || status=1;
./gradlew :app:connectedNoSentryPythonBackendDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=network.columba.app.integration.IdentityRecoveryIpcInstrumentedTest,network.columba.app.integration.IdentityRecoveryPersistenceInstrumentedTest --stacktrace || status=1;
./gradlew :rns-backend-py:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=network.columba.app.rns.backend.py.PythonRnsCoreIdentityRecoveryInstrumentedTest --stacktrace || status=1;
exit "$status"
- name: Upload instrumented test results
if: always()
uses: actions/upload-artifact@v7
with:
name: instrumented-test-results
path: |
**/build/outputs/androidTest-results/**/*.xml
**/build/outputs/androidTest-results/**/*.html
retention-days: 7
- name: Upload instrumented test reports
if: failure()
uses: actions/upload-artifact@v7
with:
name: instrumented-test-reports
path: |
**/build/reports/androidTests/
retention-days: 7
- name: Capture logcat on failure
if: failure()
timeout-minutes: 1
continue-on-error: true
run: |
mkdir -p artifacts
timeout 30 adb logcat -d > artifacts/logcat.log || true
- name: Upload logcat output
if: failure()
uses: actions/upload-artifact@v7
with:
name: logcat
path: artifacts/logcat.log
retention-days: 7
if-no-files-found: ignore
- name: Cleanup emulator
if: always()
run: |
adb devices | grep emulator | cut -f1 | xargs -I {} adb -s {} emu kill || true
pkill -9 qemu-system || true
adb kill-server || true
transfer-progress-e2e:
name: Real LXMF Resource Progress E2E
needs: [lint, validate-wrapper]
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
persist-credentials: false
- name: Set up JDK 25
uses: actions/setup-java@v6
with:
distribution: temurin
java-version: 25
- name: Set up Python 3.11
uses: actions/setup-python@v7
with:
python-version: '3.11'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6.3.0
with:
cache-read-only: false
- name: Install E2E host dependencies
run: |
python -m pip install --disable-pip-version-check -r tests/transfer_progress_e2e/requirements.txt
python -m pytest -q tests/transfer_progress_e2e/test_ui_driver.py
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Python-backend E2E APK
run: ./gradlew :app:assembleNoSentryPythonBackendDebug --stacktrace --max-workers=2
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Run real two-peer Resource progress E2E
uses: reactivecircus/android-emulator-runner@v2.38.0
with:
api-level: 34
arch: x86_64
target: google_apis
force-avd-creation: true
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -memory 3072
disable-animations: true
emulator-boot-timeout: 600
script: >-
COLUMBA_EMULATOR_SERIAL=emulator-5554
COLUMBA_E2E_APK=app/build/outputs/apk/noSentryPythonBackend/debug/app-noSentry-pythonBackend-x86_64-debug.apk
COLUMBA_E2E_ARTIFACT_DIR=artifacts/transfer-progress-e2e
python -m pytest -v tests/transfer_progress_e2e/test_transfer_progress_e2e.py
--junit-xml=artifacts/transfer-progress-e2e/results.xml;
- name: Upload Resource progress E2E evidence
if: always()
uses: actions/upload-artifact@v7
with:
name: transfer-progress-e2e-evidence
path: artifacts/transfer-progress-e2e/
retention-days: 14
if-no-files-found: error
- name: Cleanup emulator
if: always()
run: |
adb devices | grep emulator | cut -f1 | xargs -I {} adb -s {} emu kill || true
pkill -9 qemu-system || true
adb kill-server || true