Skip to content

Emulator end-to-end tests on GitHub-hosted runners - #13

Open
tobiasKaminsky wants to merge 4 commits into
mainfrom
ci/emulator-tests
Open

tobiasKaminsky wants to merge 4 commits into
mainfrom
ci/emulator-tests

Conversation

@tobiasKaminsky

Copy link
Copy Markdown
Member

The development machine has no KVM, so instrumented tests run on GitHub-hosted runners, which have KVM.

  • .github/workflows/emulator.yml (repository workflow, not synced from android-config): on PRs to main, nightly and on demand
    • starts Nextcloud 33 plus the self-signed HTTPS proxy (scripts/test-server.sh, now with TLS_HOST=10.0.2.2 so the certificate matches the emulator's address for the host)
    • API 35 x86_64 emulator with a cached snapshot (ReactiveCircus/android-emulator-runner)
    • connectedQaDebugAndroidTest with the server URLs as instrumentation arguments; reports uploaded on failure
  • app/src/androidTest: Test Orchestrator with cleared app data per test; SignInTest:
    • nc://login link → "Log in?" → signed in
    • self-signed HTTPS server → "Trust this certificate?" with SHA-256 fingerprint → signed in
    • second account while the app runs, then remove the first in Settings › Accounts

Not automatable on a stock emulator, so these stay on the manual test plan: the Login Flow v2 browser hand-off, SSO with a real Files app, and QR scanning with the camera.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Nb4eMg7ShMcjycNqaRBq3z

tobiasKaminsky and others added 4 commits December 3, 2026 15:16
The development machine has no KVM, so instrumented tests run in a repository
workflow on GitHub-hosted runners (which have KVM): Nextcloud 33 and the
self-signed HTTPS proxy from scripts/test-server.sh, an API 35 emulator
(cached snapshot) reaching them at 10.0.2.2, Test Orchestrator with cleared
app data per test.

First tests (SignInTest): nc://login link with confirmation, self-signed
certificate trust, a second account and removing the first. The Login Flow v2
browser hand-off and SSO stay on the manual test plan.

scripts/test-server.sh: TLS_HOST for the proxy's certificate address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nb4eMg7ShMcjycNqaRBq3z
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
They are resolved only when tests run on a device, so a local strict run did not see them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nb4eMg7ShMcjycNqaRBq3z
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
In the Nextcloud organisation ubuntu-latest is mostly served by self-hosted runners without KVM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nb4eMg7ShMcjycNqaRBq3z
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
Maven Central rate-limits GitHub-hosted runners (HTTP 429); the mirror serves the same files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nb4eMg7ShMcjycNqaRBq3z
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant