Skip to content

setup-key auth instrumentation test#178

Draft
pappz wants to merge 1 commit intomainfrom
ci/instrumentation-setup
Draft

setup-key auth instrumentation test#178
pappz wants to merge 1 commit intomainfrom
ci/instrumentation-setup

Conversation

@pappz
Copy link
Copy Markdown
Collaborator

@pappz pappz commented May 6, 2026

Summary

  • Adds SetupKeyAuthTest — a UiAutomator-driven instrumentation test that drives the in-app "Change server" screen end-to-end with a setup key, then waits for the success dialog.
  • Adds instrumentation-tests.yml (workflow_dispatch only) that builds the debug AAR via the existing build-android composite action, then runs the test on an x86_64 emulator with reactivecircus/android-emulator-runner.

Required repository config

  • Secret: INSTRUMENTATION_NB_SETUP_KEY (UUID setup key, ideally reusable + ephemeral)
  • Variable (optional): INSTRUMENTATION_NB_MANAGEMENT_URL (defaults to https://api.netbird.io)

Test plan

  • Trigger via Actions UI on this branch: Actions → "instrumentation tests" → Run workflow → branch ci/instrumentation-setup.
  • Confirm emulator boots, login flow runs, success dialog detected.
  • Inspect uploaded setup-key-auth-test-results artifact for the JUnit/HTML reports.

Draft because we want to validate the workflow on this branch before merging into main.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 6, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 21efd139-9703-45a8-bf48-fda725310790

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/instrumentation-setup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pappz pappz force-pushed the ci/instrumentation-setup branch 3 times, most recently from b0e92ca to c27d5c4 Compare May 6, 2026 08:43
@pappz pappz had a problem deploying to instrumentation-test-secrets May 6, 2026 08:49 — with GitHub Actions Failure
@pappz pappz force-pushed the ci/instrumentation-setup branch from c27d5c4 to 693794e Compare May 6, 2026 09:26
@pappz pappz changed the title ci: setup-key auth instrumentation test setup-key auth instrumentation test May 6, 2026
@pappz pappz had a problem deploying to instrumentation-test-secrets May 6, 2026 09:31 — with GitHub Actions Failure
@pappz pappz force-pushed the ci/instrumentation-setup branch from 693794e to 51de4b7 Compare May 6, 2026 09:38
@pappz pappz had a problem deploying to instrumentation-test-secrets May 6, 2026 09:44 — with GitHub Actions Failure
Adds SetupKeyAuthTest, a UiAutomator-driven instrumentation test that
drives the in-app "Change server" screen end-to-end with a setup key
and waits for the success dialog. The test taps "Use NetBird", so the
management URL is the one hard-coded in the app (Preferences.defaultServer()).
The setup key comes from an instrumentation runner argument so CI can
inject it as a secret without baking it into the APK.

Wires it into the existing build-debug workflow as a workflow_dispatch-only
job that reuses the netbird-aar artifact, so PR builds are unaffected
and the AAR is built only once per run.

Required repo config:
- Secret: INSTRUMENTATION_NB_SETUP_KEY (UUID, ideally reusable + ephemeral)
@pappz pappz force-pushed the ci/instrumentation-setup branch from 51de4b7 to ff01cea Compare May 6, 2026 10:06
@pappz pappz had a problem deploying to instrumentation-test-secrets May 6, 2026 10:12 — with GitHub Actions Failure
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