Mozregression with Android isn't working on Windows 10
Categories
(Testing :: mozregression, defect, P2)
Tracking
(Not tracked)
People
(Reporter: mlobontiuroman, Assigned: zeid)
References
Details
(Whiteboard: [geckoview], 5.3.0)
Attachments
(2 files)
STR:
- I've downloaded mozregression version 5.0.0 from https://github.com/mozilla/mozregression/releases/tag/5.0.0.
- Installed successfully.
- Tried to find a range on Firefox for Android, with a device connected.
- Established the dates for the "bad", and "good" builds.
- Started the process.
Expected behavior:
The app should install a build from the established range on the connected device.
Actual behavior:
A prompt with an error is displayed. Clicking on "OK", takes me to find a different date.
After I select it, the same error is displayed.
Devices: Windows 10 (and OnePlus 5T (Android 10))
Assignee | ||
Updated•8 months ago
|
Assignee | ||
Comment 1•8 months ago
|
||
I can confirm this bug, both on mozregression 5.0.0 and mozregression 4.0.18 and an arbitrary date range for bisection. Tested on Windows 10 + Pixel 3a (Android 12) with a similar error output.
Comment 2•7 months ago
|
||
The severity field is not set for this bug.
:zeid, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•6 months ago
|
Updated•6 months ago
|
Assignee | ||
Comment 3•5 months ago
|
||
This appears to be due to the way that forward slashes are escaped in mozdevice.adb.ADBDevice
.
For some reason, self.command_output
and self.chmod
appear to handle intermediate
properly, however, self.cp
does not escape the forward slashes correctly.
3014 try:
3015 with tempfile.NamedTemporaryFile(delete=True) as tmpf:
3016 intermediate = posixpath.join(
3017 "/data/local/tmp", posixpath.basename(tmpf.name)
3018 )
3019 self.command_output(["push", local, intermediate], timeout=timeout)
3020 self.chmod(intermediate, recursive=True, timeout=timeout)
3021 parent_dir = posixpath.dirname(remote)
3022 if not self.is_dir(parent_dir, timeout=timeout):
3023 self.mkdir(parent_dir, parents=True, timeout=timeout)
3024 -> self.cp(intermediate, remote, recursive=True, timeout=timeout)
3025 finally:
3026 self.rm(intermediate, recursive=True, force=True, timeout=timeout)
(Pdb) intermediate
'/data/local/tmp/C:\\Users\\ZEIDZA~1\\AppData\\Local\\Temp\\tmp1f796na1'
(Pdb) self.exists(intermediate)
False
(Pdb) self.exists(intermediate.replace("\\", "\\\\"))
True
Replacing \\
with \\\\
when calling cp
seems to make this work.
I will spawn a bug in mozbase.
Assignee | ||
Comment 4•5 months ago
|
||
Assignee | ||
Comment 5•5 months ago
|
||
Will be deployed with the next release.
Assignee | ||
Updated•5 months ago
|
Assignee | ||
Updated•5 months ago
|
Assignee | ||
Comment 6•4 months ago
|
||
This should now be fixed.
Description
•