Report the version of the application being tested in our perfherder data
Categories
(Testing :: mozperftest, task, P3)
Tracking
(firefox92 affected)
Tracking | Status | |
---|---|---|
firefox92 | --- | affected |
People
(Reporter: sparky, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxp])
Attachments
(6 obsolete files)
Our perfherder data in mozperftest contains the application being tested but it doesn't gather the version being used: https://searchfox.org/mozilla-central/source/python/mozperftest/mozperftest/metrics/perfherder.py#109
![]() |
||
Updated•4 years ago
|
![]() |
||
Comment 1•4 years ago
|
||
implementing get_browser_meta for mozperftest
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
![]() |
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
![]() |
||
Comment 3•4 years ago
|
||
bugherder |
![]() |
||
Comment 4•4 years ago
|
||
implementing get_browser_meta for mozperftest
Updated•4 years ago
|
![]() |
||
Comment 5•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
![]() |
||
Comment 6•4 years ago
|
||
Depends on D119881
Updated•4 years ago
|
![]() |
||
Comment 7•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
![]() |
||
Comment 9•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
![]() |
||
Updated•4 years ago
|
![]() |
||
Comment 10•4 years ago
|
||
Currently blocked until able to test on a local android device. In the process of trying to set up my current device or requesting a new one
Updated•4 years ago
|
![]() |
||
Comment 11•4 years ago
|
||
I have been to (I think) correctly get application version for android, but I am unable to verify this because of errors when running in CI
the task completes successfully, but there is an error decoding a unicode character in the logs:
https://treeherder.mozilla.org/jobs?repo=try&tier=1%2C2%2C3&revision=304e7658ffe75adb526d8766e722b2887cf2256e
https://firefox-ci-tc.services.mozilla.com/tasks/cXxPGFf5QL-_zJVWCYpITA/runs/1/logs/public/logs/live.log#L652
I have run the unit test for parsing logcat both locally and in CI, and modified the test file to include the unicode character which was called the test to fail, but the unit test passes without failure.
Dave Hunt suggested this could be related to python version when running a unit test versus the actual android devices, or maybe default encoding that has been set.
The "ordinal not in range" error is being thrown here: https://searchfox.org/mozilla-central/source/python/mozperftest/mozperftest/metrics/notebook/transformer.py#94-103
:ahal, do you have any insight on why this unicode error is being thrown on android devices, but not locally or in the unit tests?
![]() |
||
Comment 12•4 years ago
|
||
here is a passing unit test running against a test file containing unicode: https://treeherder.mozilla.org/jobs?repo=try&tier=1%2C2%2C3&revision=18f3cde67b959c7210c46c246e10d49d37f6e778
Comment 13•4 years ago
|
||
No special insight, but decoding errors like that can happen when there's a character the encoding doesn't support. So it's likely just that the logcat happens to contain only 'ascii' characters when run locally or against desktop CI, but something in the Android suites is logging a unicode character. I don't seem to see a traceback in there, so I'm not sure where the exception is being thrown, but I'd guess when you obtain the logcat it's being returned as a byte-string, then you're trying to manipulate it some way that is implicitly decoding it with the ascii encoding.
To fix you might need to do something like logcat_output.decode("utf-8")
first. Or if you are using subprocess
to obtain it, you can pass universal_newlines=True
.
![]() |
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
![]() |
||
Updated•3 years ago
|
Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Description
•