Closed Bug 1705420 Opened 4 years ago Closed 2 years ago

Report the version of the application being tested in our perfherder data

Categories

(Testing :: mozperftest, task, P3)

task

Tracking

(firefox92 affected)

RESOLVED DUPLICATE of bug 1828635
92 Branch
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

Assignee: nobody → ksereduck
Attachment #9219350 - Attachment description: WIP: Bug 1705420: Report the version of the application being tested in our perfherder data → Bug 1705420: Report the version of the application being tested in our perfherder data
Attachment #9219350 - Attachment description: Bug 1705420: Report the version of the application being tested in our perfherder data → WIP: Bug 1705420: Report the version of the application being tested in our perfherder data
Attachment #9219350 - Attachment description: WIP: Bug 1705420: Report the version of the application being tested in our perfherder data → Bug 1705420: Report the version of the application being tested in our perfherder data
Attachment #9219350 - Attachment description: Bug 1705420: Report the version of the application being tested in our perfherder data → WIP: Bug 1705420: Report the version of the application being tested in our perfherder data
Priority: P3 → P1
Attachment #9219350 - Attachment description: WIP: Bug 1705420: Report the version of the application being tested in our perfherder data → Bug 1705420: Report the version of the application being tested in our perfherder data
Status: NEW → ASSIGNED
Attachment #9219350 - Attachment description: Bug 1705420: Report the version of the application being tested in our perfherder data → WIP: Bug 1705420: Report the version of the application being tested in our perfherder data
Attachment #9219350 - Attachment description: WIP: Bug 1705420: Report the version of the application being tested in our perfherder data → Bug 1705420: Report the version of the application being tested in our perfherder data
Attachment #9219350 - Attachment description: Bug 1705420: Report the version of the application being tested in our perfherder data → WIP: Bug 1705420: Report the version of the application being tested in our perfherder data
Attachment #9219350 - Attachment description: WIP: Bug 1705420: Report the version of the application being tested in our perfherder data → Bug 1705420: Report the version of the application being tested in our perfherder data
Attachment #9219350 - Attachment description: Bug 1705420: Report the version of the application being tested in our perfherder data → WIP: Bug 1705420: Report the version of the application being tested in our perfherder data
Attachment #9219350 - Attachment description: WIP: Bug 1705420: Report the version of the application being tested in our perfherder data → Bug 1705420: Report the version of the application being tested in our perfherder data
Pushed by ksereduck@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b533ae02d367 Report the version of the application being tested in our perfherder data r=perftest-reviewers,sparky
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Attachment #9231154 - Attachment is obsolete: true
Attachment #9231170 - Attachment is obsolete: true
Attachment #9231154 - Attachment is obsolete: false
Attachment #9231179 - Attachment is obsolete: true
Attachment #9231154 - Attachment is obsolete: true
Attachment #9231181 - Attachment description: WIP: Bug 1705420: Report the version of the application being tested in our perfherder data;r=perftest-reviewers → Bug 1705420: Report the version of the application being tested in our perfherder data;r=perftest-reviewers
Backout by abutkovits@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/33c7fac3a855 Backed out changeset b533ae02d367 as requested by Kimberly. CLOSED TREE
Attachment #9231181 - Attachment is obsolete: true
Attachment #9219350 - Attachment description: Bug 1705420: Report the version of the application being tested in our perfherder data → Bug 1705420: Report the version of the application being tested in our perfherder data;r=#perftest
Attachment #9232346 - Attachment is obsolete: true
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

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

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?

Flags: needinfo?(ahal)

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.

Flags: needinfo?(ahal)
Assignee: ksereduck → nobody
Priority: P1 → P3
Assignee: nobody → ksereduck
Attachment #9219350 - Attachment is obsolete: true
Assignee: ksereduck → nobody
Status: REOPENED → RESOLVED
Closed: 4 years ago2 years ago
Duplicate of bug: 1828635
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: