Closed Bug 1584933 Opened 5 years ago Closed 5 years ago

./mach geckoview-junit doesn't work for non-rooted Samsung Galaxy S7

Categories

(Firefox Build System :: Android Studio and Gradle Integration, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: farre, Unassigned)

References

(Blocks 1 open bug)

Details

[farre@carakan work-1]$ ./mach geckoview-junit
Android device's IP address: 192.168.1.104
Re-install geckoview AndroidTest? (Y/n)
Installing geckoview AndroidTest...
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=utf-8

Task :machBuildFaster
Executing task :machBuildFaster
:machBuildFaster> 0:00.70 /usr/bin/gmake -C faster -j16 -s
:machBuildFaster> 0:00.72 toolkit/mozapps/extensions/built_in_addons.json.stub
:machBuildFaster> 0:00.83 Elapsed: 0.01s; From /home/farre/src/gecko/work-1/obj-android-release/dist/bin/localization: Kept 31 existing; Added/updated 0; Removed 0 files and 0 directories.
:machBuildFaster> 0:00.84 Elapsed: 0.00s; From /home/farre/src/gecko/work-1/obj-android-release/dist/bin/gmp-fake/1.0: Kept 1 existing; Added/updated 0; Removed 0 files and 0 directories.
:machBuildFaster> 0:00.84 Elapsed: 0.00s; From /home/farre/src/gecko/work-1/obj-android-release/dist/bin/gmp-fakeopenh264/1.0: Kept 1 existing; Added/updated 0; Removed 0 files and 0 directories.
:machBuildFaster> 0:00.87 Elapsed: 0.01s; From /home/farre/src/gecko/work-1/obj-android-release/dist/bin/gmp-clearkey/0.1: Kept 0 existing; Added/updated 1; Removed 0 files and 0 directories.
:machBuildFaster> 0:01.27 Elapsed: 0.27s; From /home/farre/src/gecko/work-1/obj-android-release/dist/bin: Kept 1864 existing; Added/updated 34; Removed 0 files and 0 directories.
:machBuildFaster> 0:01.32 374 compiler warnings present.
:machBuildFaster> 0:01.38 Your build was successful!

Task :machStagePackageForGeckoview
Executing task :machStagePackageForGeckoview
:machStagePackageForGeckoview> gmake: Entering directory '/home/farre/src/gecko/work-1/obj-android-release/mobile/android/installer'
:machStagePackageForGeckoview> /home/farre/src/gecko/work-1/obj-android-release/_virtualenvs/init/bin/python -m mozbuild.action.file_generate /home/farre/src/gecko/work-1/toolkit/locales/gen_multilocale.py main '../../../dist/bin/res/multilocale.txt' .deps/multilocale.txt.pp '../../../dist/bin/res/multilocale.txt' en-US
:machStagePackageForGeckoview> printf '\n[multilocale]\n' > locale-manifest.in
:machStagePackageForGeckoview> printf '@BINPATH@/res/multilocale.txt\n' >> locale-manifest.in
:machStagePackageForGeckoview> for LOCALE in en-US ;
:machStagePackageForGeckoview> do
:machStagePackageForGeckoview> for ENTRY in @BINPATH@/chrome/ ;
:machStagePackageForGeckoview> do
:machStagePackageForGeckoview> printf "$ENTRY""$LOCALE"'@JAREXT@\n' >> locale-manifest.in;
:machStagePackageForGeckoview> printf "$ENTRY""$LOCALE"'.manifest\n' >> locale-manifest.in;
:machStagePackageForGeckoview> done
:machStagePackageForGeckoview> done
:machStagePackageForGeckoview> NO_PKG_FILES="core bsdecho js js-config jscpucfg nsinstall viewer TestGtkEmbed elf-dynstr-gc mangle* maptsv* mfc* msdump* msmap* nm2tsv* nsinstall* res/samples res/throbber shlibsign* certutil* pk12util* BadCertAndPinningServer* DelegatedCredentialsServer* OCSPStaplingServer* SanctionsTestServer* GenerateOCSPResponse* chrome/chrome.rdf chrome/app-chrome.manifest chrome/overlayinfo components/compreg.dat components/xpti.dat content_unit_tests necko_unit_tests *.dSYM "
:machStagePackageForGeckoview> /home/farre/src/gecko/work-1/obj-android-release/virtualenvs/init/bin/python /home/farre/src/gecko/work-1/toolkit/mozapps/installer/packager.py -DPKG_LOCALE_MANIFEST=/home/farre/src/gecko/work-1/obj-android-release/mobile/android/installer/locale-manifest.in -DMOZ_APP_NAME=fennec -DPREF_DIR=defaults/pref -DJAREXT= -DMOZ_CHILD_PROCESS_NAME=libplugin-container.so -DANDROID_CPU_ARCH=armeabi-v7a -DNSS_DISABLE_DBM=1 -DMOZ_ANDROID_EXCLUDE_FONTS=1 -DMOZ_ANDROID_GCM=1 -DMOZ_GECKOVIEW_JAR=1 -DDLL_PREFIX=lib -DDLL_SUFFIX=.so -DBIN_SUFFIX= -DDIR_MACOS= -DDIR_RESOURCES= -DMOZ_FOLD_LIBS=1 -DBINPATH=bin -DENABLE_MARIONETTE=1 -DA11Y_LOG=1 -DACCESSIBILITY=1 -DANDROID=1 -DBROWSER_CHROME_URL=chrome://browser/content/browser.xul -DBROWSER_CHROME_URL_QUOTED='"chrome://browser/content/browser.xul"' -DBUILD_ARM_NEON=1 -DBUILD_CTYPES=1 -DCROSS_COMPILE=1 -DEARLY_BETA_OR_EARLIER=1 -DENABLE_INTL_API=1 -DENABLE_SYSTEM_EXTENSION_DIRS=1 -DENABLE_TESTS=1 -DENABLE_TYPED_OBJECTS=1 -DENABLE_WASM_BIGINT=1 -DENABLE_WASM_BULKMEM_OPS=1 -DENABLE_WASM_CRANELIFT=1 -DENABLE_WASM_GC=1 -DENABLE_WASM_REFTYPES=1 -DFORCE_PR_LOG=1 -DGTEST_HAS_CLONE=0 -DGTEST_HAS_RTTI=0 -DGTEST_OS_LINUX_ANDROID=1 -DGTEST_USE_OWN_TR1_TUPLE=1 -DHAVE_ALLOCA_H=1 -DHAVE_ARC4RANDOM=1 -DHAVE_ARC4RANDOM_BUF=1 -DHAVE_ARM_NEON=1 -DHAVE_ARM_SIMD=1 -DHAVE_BYTESWAP_H=1 -DHAVE_CLOCK_MONOTONIC=1 -DHAVE_DIRENT_H=1 -DHAVE_DLADDR=1 -DHAVE_DLOPEN=1 -DHAVE_FT_BITMAP_SIZE_Y_PPEM=1 -DHAVE_FT_GLYPHSLOT_EMBOLDEN=1 -DHAVE_FT_LOAD_SFNT_TABLE=1 -DHAVE_GETOPT_H=1 -DHAVE_GETTID=1 -DHAVE_GMTIME_R=1 -DHAVE_INTTYPES_H=1 -DHAVE_LCHOWN=1 -DHAV
:machStagePackageForGeckoview> E_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_PERF_EVENT_H=1 -DHAVE_LINUX_QUOTA_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MALLINFO=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMALIGN=1 -DHAVE_MEMMEM=1 -DHAVE_NETINET_IN_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -DHAVE_PTHREAD_H=1 -DHAVE_SETPRIORITY=1 -DHAVE_STDINT_H=1 -DHAVE_STRERROR=1 -DHAVE_STRNDUP=1 -DHAVE_SYSCALL=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VA_COPY=1 -DHAVE_VISIBILITY_ATTRIBUTE=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE__UNWIND_BACKTRACE=1 -DJS_BUILD_BINAST=1 -DJS_CODEGEN_ARM=1 -DJS_DEFAULT_JITREPORT_GRANULARITY=3 -DJS_GC_SMALL_CHUNK_SIZE=1 -DJS_NUNBOX32=1 -DJS_TRACE_LOGGING=1 -DMALLOC_H='<malloc.h>' -DMALLOC_USABLE_SIZE_CONST_PTR=const -DMOZILLA_UAVERSION='"71.0"' -DMOZILLA_VERSION='"71.0a1"' -DMOZILLA_VERSION_U=71.0a1 -DMOZ_ALLOW_LEGACY_EXTENSIONS=1 -DMOZ_ANDROID_HISTORY=1 -DMOZ_APP_UA_NAME='"Firefox"' -DMOZ_APP_UA_VERSION='"71.0a1"' -DMOZ_AV1=1 -DMOZ_BUILD_APP=mobile/android -DMOZ_CRASHREPORTER=1 -DMOZ_DATA_REPORTING=1 -DMOZ_DISTRIBUTION_ID='"org.mozilla"' -DMOZ_DLL_PREFIX='"lib"' -DMOZ_DLL_SUFFIX='".so"' -DMOZ_ENABLE_SKIA=1 -DMOZ_ENABLE_SKIA_PDF=1 -DMOZ_ENABLE_SKIA_PDF_SFNTLY=1 -DMOZ_FFVPX=1 -DMOZ_FFVPX_AUDIOONLY=1 -DMOZ_FMP4=1 -DMOZ_GECKO_PROFILER=1 -DMOZ_GECKO_PROFILER_PARSE_ELF=1 -DMOZ_GFX_OPTIMIZE_MOBILE=1 -DMOZ_IGNORE_PAINT_WILL_RESAMPLE=1 -DMOZ_INSTRUMENT_EVENT_LOOP=1 -DMOZ_LINKER=1 -DMOZ_LOGGING=1 -DMOZ_MACBUNDLE_ID=org.mozilla.fennecfarre -DMOZ_MEMORY=1 -DMOZ_NEW_CERT_STORAGE=1 -DMOZ_NEW_NOTIFICATION_STORE=1 -DMOZ_NEW_XULSTORE=1 -DMOZ_NO_SMART_CARDS=1 -DMOZ_PEERCONNECTION=1 -DMOZ_PROFILER_MEMORY=1 -DMOZ_PROFILING=1 -DMOZ_RAW=1 -DMOZ_REPLACE_MALLOC=1 -DMOZ_SAMPLE_TYPE_S16=1 -DMOZ_SCTP=1 -DMOZ_SERVICES_HEALTHREPORT=1 -DMOZ_SRTP=1 -DMOZ_STATIC_JS=1 -DMOZ_THUMB2=1 -DMOZ_TREE_CAIRO=1 -DMOZ_TREE_FREETYPE=1 -DMOZ_TREE_PIXMAN=1 -DMOZ_TREMOR=1 -DMOZ_UPDATE_CHANNEL=default -DMOZ_USER_DIR='".mozilla"' -DMOZ_USE_NATIVE_POPUP_WINDOWS=1 -DMOZ_VERIFY_MAR_SIGNATURE=1 -DMOZ_WEBM_ENCODER=1 -DMOZ_WEBRTC=1 -DMOZ

:machStagePackageForGeckoview> WEBRTC_ASSERT_ALWAYS=1 -DMOZ_WEBRTC_SIGNALING=1 -DMOZ_WEBSPEECH=1 -DMOZ_WEBSPEECH_TEST_BACKEND=1 -DMOZ_WIDGET_ANDROID=1 -DMOZ_XUL=1 -DNIGHTLY_BUILD=1 -DNO_NSPR_10_SUPPORT=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1 -DSTATIC_JS_API=1 -DSTDC_HEADERS=1 -DTARGET_XPCOM_ABI='"arm-eabi-gcc3"' -DUSE_SKIA=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DVA_COPY=va_copy -DWASM_PRIVATE_REFTYPES=1 -DXP_LINUX=1 -DXP_UNIX=1 -DX_DISPLAY_MISSING=1 -DZLIB_IN_MOZGLUE=1 -D_LIBCPP_ALWAYS_INLINE='' -D_LIBCPP_HIDE_FROM_ABI='attribute((exclude_from_explicit_instantiation))' -D_LIBCPP_INLINE_VISIBILITY='' -D_REENTRANT=1 -DAB_CD=en-US
:machStagePackageForGeckoview> --format omni
:machStagePackageForGeckoview> --removals /home/farre/src/gecko/work-1/mobile/android/installer/removed-files.in
:machStagePackageForGeckoview> --ignore-errors
:machStagePackageForGeckoview> --ignore-broken-symlinks
:machStagePackageForGeckoview> --minify
:machStagePackageForGeckoview>
:machStagePackageForGeckoview>
:machStagePackageForGeckoview> \

Be aware that we don't generally attempt to support all devices, only those that run in continuous integration specifically (in this case, the Android 7.0 x86_64 emulator), or rooted devices in general.

What https://bugzilla.mozilla.org/show_bug.cgi?id=1584933#c1 is true, but junit tests really shouldn't require root. If they do, it's quite likely our harness that requires root and not the test itself, which means we're likely to break Android Studio workflows -- and those are critical to the velocity of the team.

Now, Andreas: that log doesn't include anything about failing tests. Can you produce a complete log file and adb logcat output?

Flags: needinfo?(afarre)

So it turns out that this was somewhat of a red herring. Trouble was that ./mach bootstrap could leave you in a strange state if you failed accepting licenses. After clearing toolchains and bootstrapping again, the problem went away.

Flags: needinfo?(afarre)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.