Skip to content

docs: Document running NPLB on AOSP with adb only - #13542

Merged
jellefoks merged 2 commits into
youtube:mainfrom
hferreiro:nplb-standalone
Oct 27, 2026
Merged

jellefoks merged 2 commits into
youtube:mainfrom
hferreiro:nplb-standalone

Conversation

@hferreiro

Copy link
Copy Markdown
Collaborator

Partner labs often build on a remote server and test on a separate
machine that only has adb, so the run_nplb_loader wrapper is not
available there. Describe how to package the APK with its runtime
dependencies the way CI does, and run the tests through the APK's
instrumentation runner directly.

Bug: 573977719

Partner labs often build on a remote server and test on a separate
machine that only has adb, so the run_nplb_loader wrapper is not
available there. Describe how to package the APK with its runtime
dependencies the way CI does, and run the tests through the APK's
instrumentation runner directly.

Bug: 573977719
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Context State Description
CI / All Pass ✅ PASS All checks passed
CI / android ✅ PASS Passed
CI / evergreen ✅ PASS Passed
CI / linux ✅ PASS Passed
CI / tvos ✅ PASS Passed
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


android: Document NPLB execution via ADB only

Partner labs often build on remote servers and test on separate
machines that only have ADB access, which prevents the use of the
run_nplb_loader wrapper script.

Add instructions for packaging the APK with its dependencies and
executing tests through the instrumentation runner directly. This
matches the process used in CI for standalone execution.

Bug: 573977719

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message
@hferreiro
hferreiro requested a review from AIdrifter October 21, 2026 12:26

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the AOSP setup documentation (setup-aosp.md) to include a new section on standalone APK execution via ADB (Option B), which is useful when the build server and test host are separate. The feedback suggests two improvements to the new instructions: explicitly invoking python3 when running the test archiving script for better robustness, and cleaning the /sdcard/chromium_tests_root directory on the device before pushing new dependencies to avoid potential issues with stale files.

@AIdrifter AIdrifter changed the title docs: Document running NPLB on AOSP with adb only Oct 27, 2026
@AIdrifter AIdrifter changed the title android: Disable debuggable on official Android builds Oct 27, 2026
@jellefoks
jellefoks merged commit aa5bf58 into youtube:main Oct 27, 2026
922 of 928 checks passed
@hferreiro
hferreiro deleted the nplb-standalone branch October 27, 2026 16:54
cobalt-github-releaser-bot pushed a commit that referenced this pull request Oct 27, 2026
Refer to original PR: #13542

Partner labs often build on a remote server and test on a separate
machine that only has adb, so the run_nplb_loader wrapper is not
available there. Describe how to package the APK with its runtime
dependencies the way CI does, and run the tests through the APK's
instrumentation runner directly.

Bug: 573977719

(cherry picked from commit aa5bf58)
cobalt-github-releaser-bot pushed a commit that referenced this pull request Oct 27, 2026
Refer to original PR: #13542

Partner labs often build on a remote server and test on a separate
machine that only has adb, so the run_nplb_loader wrapper is not
available there. Describe how to package the APK with its runtime
dependencies the way CI does, and run the tests through the APK's
instrumentation runner directly.

Bug: 573977719

(cherry picked from commit aa5bf58)
oxve pushed a commit that referenced this pull request Oct 29, 2026
…nly (#13727)

Refer to the original PR: #13542

Partner labs often build on a remote server and test on a separate
machine that only has adb, so the run_nplb_loader wrapper is not
available there. Describe how to package the APK with its runtime
dependencies the way CI does, and run the tests through the APK's
instrumentation runner directly.

Bug: 573977719

Co-authored-by: Henrique Ferreiro <hferreiro@igalia.com>
weifang-cool added a commit to weifang-cool/cobalt that referenced this pull request Nov 9, 2026
…up to youtube#13542, from the device validation in b/576131285:  - The instrumentation class is release-dependent:   dev.cobalt.app.NplbInstrumentationTestRunner (27.lts.10 and earlier)   vs dev.cobalt.testing.CobaltInstrumentationTestRunner (27.lts.11+,   renamed in youtube#12954). Point at `pm list instrumentation` as ground truth.  - The googletest filter splits at the first '-' only, so the exclusions   from nplb_loader_filter.json must be colon-joined behind a single   leading dash (-PatternA:PatternB:...); prefixing every pattern applies   only the first one. Add a jq one-liner and note the player exclusions   are mandatory (their testdata is not in the deps archive).  - The test activity consumes the NativeTest.CommandLineFlags extra (not   CommandLine), so --gtest_output=xml:... reaches gtest and produces the   JUnit XML the NPLB test-report flow expects.  Also: `adb install -r -t`, hardcoded shard timeout, note the filter quoting is bash syntax, cross-check stdout vs XML summary.
briantting pushed a commit that referenced this pull request Nov 9, 2026
Refer to original PR: #13542

Partner labs often build on a remote server and test on a separate
machine that only has adb, so the run_nplb_loader wrapper is not
available there. Describe how to package the APK with its runtime
dependencies the way CI does, and run the tests through the APK's
instrumentation runner directly.

Bug: 573977719

(cherry picked from commit aa5bf58)
weifang-cool added a commit to weifang-cool/cobalt that referenced this pull request Nov 10, 2026
Follow-up to youtube#13542, from the device validation in b/576131285:

- The instrumentation class is release-dependent:
  dev.cobalt.app.NplbInstrumentationTestRunner (27.lts.10 and earlier)
  vs dev.cobalt.testing.CobaltInstrumentationTestRunner (27.lts.11+,
  renamed in youtube#12954). Point at `pm list instrumentation` as ground truth.

- The googletest filter splits at the first '-' only, so the exclusions
  from nplb_loader_filter.json must be colon-joined behind a single
  leading dash (-PatternA:PatternB:...); prefixing every pattern applies
  only the first one. Add a jq one-liner and note the player exclusions
  are mandatory (their testdata is not in the deps archive).

- The test activity consumes the NativeTest.CommandLineFlags extra (not
  CommandLine), so --gtest_output=xml:... reaches gtest and produces the
  JUnit XML the NPLB test-report flow expects.

Also: `adb install -r -t`, hardcoded shard timeout, note the filter
quoting is bash syntax, cross-check stdout vs XML summary.
weifang-cool added a commit to weifang-cool/cobalt that referenced this pull request Nov 12, 2026
Follow-up to youtube#13542, from the device validation in b/576131285:

- The instrumentation class is release-dependent:
  dev.cobalt.app.NplbInstrumentationTestRunner (27.lts.10 and earlier)
  vs dev.cobalt.testing.CobaltInstrumentationTestRunner (27.lts.11+,
  renamed in youtube#12954). Point at `pm list instrumentation` as ground truth.

- The googletest filter splits at the first '-' only, so the exclusions
  from nplb_loader_filter.json must be colon-joined behind a single
  leading dash (-PatternA:PatternB:...); prefixing every pattern applies
  only the first one. Add a jq one-liner and note the player exclusions
  are mandatory (their testdata is not in the deps archive).

- The test activity consumes the NativeTest.CommandLineFlags extra (not
  CommandLine), so --gtest_output=xml:... reaches gtest and produces the
  JUnit XML the NPLB test-report flow expects.

Also: `adb install -r -t`, hardcoded shard timeout, note the filter
quoting is bash syntax, cross-check stdout vs XML summary.

Bug: 576131285
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants