Repository navigation
docs: Document running NPLB on AOSP with adb only - #13542
Merged
Merged
Conversation
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
Contributor
|
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
Contributor
There was a problem hiding this comment.
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
approved these changes
Oct 27, 2026
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>
This was referenced Oct 29, 2026
This was referenced Nov 6, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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