Open Bug 1803027 Opened 3 years ago Updated 2 years ago

Android mochitest run fails with repeated "No such file or directory" errors

Categories

(Testing :: Mochitest, defect, P3)

Firefox 109
defect

Tracking

(Not tracked)

People

(Reporter: botond, Unassigned)

References

Details

Attachments

(1 file)

Attached file Command output

STR

  1. Build recent mozilla-central for Android
  2. Run a mochitest, e.g. ./mach mochitest gfx/layers/apz/test/mochitest/test_group_mainthread.html

Actual results

The test run gets as far as launching the "GeckoView Test Runner" app on the device or emulator, but then starts to produce the following error repeatedly:

1:43.16 adb ERROR pull /data/local/tmp/tmpva5bvcdx /tmp/tmpo2rs31jw: args: /home/botond/.mozbuild/android-sdk-linux/platform-tools/adb wait-for-device shell run-as org.mozilla.geckoview.test_runner cp -R /data/data/org.mozilla.geckoview.test_runner/test_root/logs/mochitest.log /data/local/tmp/tmpva5bvcdx, exitcode: 1, stdout: cp: bad '/data/data/org.mozilla.geckoview.test_runner/test_root/logs/mochitest.log': No such file or directory

See attachment for full output

This happens with both a device build and an emulator build.

Sorry :botond, but I cannot reproduce the problem: ./mach mochitest gfx/layers/apz/test/mochitest/test_group_mainthread.html runs successfully for me, with a recent m-c build, android emulator, and running on Ubuntu.

I wonder if the test runner app is crashing? Running "adb logcat" in another terminal while running the mochitest might tell us more.

Probably this part is a clue.

 1:42.73 WARNING Failed wait for remote log: /data/data/org.mozilla.geckoview.test_runner/test_root/logs/mochitest.log missing?

Seems to be working fine in an emulator build now. My device build is on a machine affected by bug 1802618, maybe this was a complication of that; I'll re-test there once I've sorted that out.

The severity field is not set for this bug.
:ahal, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(ahal)
Duplicate of this bug: 1803026
Severity: -- → S3
Flags: needinfo?(ahal)
Priority: -- → P3

(In reply to Botond Ballo [:botond] from comment #4)

My device build is on a machine affected by bug 1802618, maybe this was a complication of that; I'll re-test there once I've sorted that out.

Unfortunately, after sorting bug 1802618 out, my device build is still affected by this, i.e. I'm not able to run mochitests on my device build. (Other tests like geckoview-junit work fine.)

Blocks: 1827330

(In reply to Botond Ballo [:botond] from comment #1)

This happens with both a device build and an emulator build.

[duplicating our Matrix chat here for visibility] I tested on emulator, and I was able to run the tests with no problem, so emulator builds should work. I'll try device builds.

(In reply to [:owlish] 🦉 PST from comment #8)

I tested on emulator, and I was able to run the tests with no problem, so emulator builds should work.

I did re-test this as well with a fresh emulator build, and can confirm that it works fine, so this issue is specific to device builds.

No longer blocks: 1827330
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: