Open
Bug 1861626
Opened 2 years ago
Updated 5 hours ago
Use rtoml instead of toml to read test manifests
Categories
(Firefox Build System :: Task Configuration, enhancement)
Firefox Build System
Task Configuration
Tracking
(Not tracked)
REOPENED
People
(Reporter: marco, Assigned: marco)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
Not sure how faster it is, but it's worth investigating.
Comment 1•2 years ago
•
|
||
rtoml is a compiled module, that makes it significantly harder to deploy. (even more so for decision tasks)
Comment 2•2 years ago
|
||
(also, the switch from tomlkit to toml didn't really impact decision task times, despite having had a dramatic effect on configure)
| Assignee | ||
Comment 3•6 months ago
|
||
Time to read 7777 manifests:
import timeit
import toml
import tomlkit
import tomllib
import rtoml
with open("browser/base/content/test/popups/browser.toml", "r") as f:
manifest = f.read()
def parsewithtoml():
toml.loads(manifest)
def parsewithtomlkit():
tomlkit.parse(manifest)
def parsewithtomllib():
tomllib.loads(manifest)
def parsewithrtoml():
rtoml.load(manifest)
print(timeit.timeit('parsewithtoml()', number=7777, globals=globals()))
print(timeit.timeit('parsewithtomlkit()', number=7777, globals=globals()))
print(timeit.timeit('parsewithtomllib()', number=7777, globals=globals()))
print(timeit.timeit('parsewithrtoml()', number=7777, globals=globals()))
toml 4.716776925000886
tomlkit 70.1370183600011
tomllib 2.5913682589998643
rtoml 0.6805894560020533
| Assignee | ||
Comment 4•7 days ago
|
||
Updated•7 days ago
|
Assignee: nobody → mcastelluccio
Status: NEW → ASSIGNED
| Assignee | ||
Comment 5•7 days ago
|
||
| Assignee | ||
Comment 6•7 days ago
|
||
| Assignee | ||
Updated•6 days ago
|
Keywords: leave-open
Pushed by mcastelluccio@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/6b58054b18dc
https://hg.mozilla.org/integration/autoland/rev/215600a840b9
Add rtoml as an optional dependency for mach. r=mach-reviewers,ahochheiden
https://github.com/mozilla-firefox/firefox/commit/f4a3d0ee0ef0
https://hg.mozilla.org/integration/autoland/rev/1baf82234776
Use rtoml, if available, to read toml manifests. r=jmaher
https://github.com/mozilla-firefox/firefox/commit/f978c8468854
https://hg.mozilla.org/integration/autoland/rev/07b1fff42c4f
Install rtoml in the decision task image. r=taskgraph-reviewers,jmaher,releng-reviewers,ahal
| Assignee | ||
Comment 8•6 days ago
|
||
Julien, could you help with the decision image update like you did in bug 1840829?
Flags: needinfo?(jcristau)
Comment 9•5 days ago
|
||
| bugherder | ||
Updated•5 days ago
|
Flags: needinfo?(jcristau)
Updated•5 days ago
|
Keywords: leave-open
Comment 10•5 days ago
|
||
Updated•4 days ago
|
Attachment #9529277 -
Attachment description: Bug 1861626 - use new gecko_decision docker image. r?#releng,marco → Bug 1861626 - use gecko_decision:5.1.0 docker image. r?#releng,marco
Comment 11•4 days ago
|
||
Pushed by jcristau@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/41aa2e769f03
https://hg.mozilla.org/integration/autoland/rev/b1ec2a03cee3
use gecko_decision:5.1.0 docker image. r=marco,releng-reviewers,bhearsum
Comment 12•3 days ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 3 days ago
status-firefox147:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
Comment 13•9 hours ago
|
||
Pushed by abutkovits@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/5ccf4a7d77a3
https://hg.mozilla.org/mozilla-central/rev/b50fe26f9711
Revert "Bug 1861626 - use gecko_decision:5.1.0 docker image. r=marco,releng-reviewers,bhearsum" to unbreak nightlies.
Comment 14•9 hours ago
|
||
Backed out to unbreak nightlies.
Backout link: https://hg-edge.mozilla.org/mozilla-central/rev/b50fe26f971156e4967c642fb43cf26f5e69eb1d
Status: RESOLVED → REOPENED
status-firefox147:
fixed → ---
Resolution: FIXED → ---
Target Milestone: 147 Branch → ---
Comment 15•5 hours ago
|
||
Pushed by jcristau@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/9d75bf093845
https://hg.mozilla.org/integration/autoland/rev/fc7f69cb518c
use gecko_decision:5.1.0 docker image. r=marco,releng-reviewers,bhearsum
You need to log in
before you can comment on or make changes to this bug.
Description
•