Replace OS.File with IOUtils in the attribution code
Categories
(Toolkit :: Telemetry, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: standard8, Assigned: janey, Mentored)
References
Details
(Whiteboard: [lang=js][good-next-bug])
Attachments
(1 file)
Using OS.File
for file access is now obsolete and can be replaced by code using IOUtils. Working towards this, the attribution code is loaded on startup and accesses OS.File
. Fixing this should help a little towards startup performance.
The code in question can be found here.
There is background information here about how to migrate from OS.File
to IOUtils
. If you have questions, please ask.
To run the tests after you've built, you can run ./mach mochitest browser/components/attribution/
. You should also check ESLint before commiting: ./mach eslint browser/components/attribution/
.
I'm happy to mentor this. Note this bug will be auto-assigned when the first patch is attached.
Assignee | ||
Comment 1•3 years ago
|
||
Hi Mark! It's looking really interesting for me, would love give it a shot!
Assignee | ||
Comment 2•3 years ago
|
||
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Backed out for causing mochitest failures on browser_AttributionCode_telemetry.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/ad7f2081d3672aef29c228c7510bbeac4d02b4e5
Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&selectedTaskRun=G3hmy10QSJ68I4ueHj63rw.0&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=d63aab4e0688bca6b0c2bf6ab63a036f6b0e0bcf
Failure log: https://treeherder.mozilla.org/logviewer?job_id=355752819&repo=autoland
Reporter | ||
Comment 5•3 years ago
|
||
We took a look and undid some of the simplifications of the original patch, so that telemetry would still be reported in the same way.
Comment 7•3 years ago
|
||
bugherder |
Description
•