Closed
Bug 1508382
Opened 6 years ago
Closed 6 years ago
Setting `sparse-profile: None` on a toolchain task produces an error
Categories
(Firefox Build System :: Task Configuration, task)
Firefox Build System
Task Configuration
Tracking
(firefox-esr60 fixed, firefox65 fixed)
RESOLVED
FIXED
mozilla65
People
(Reporter: kats, Assigned: tomprince)
Details
Attachments
(1 file)
According to [1] a toolchain task should be able to set `sparse-profile: None` to not use a sparse profile. However when actually trying to do so, it produces an error: [vcs 2018-11-19T20:14:39.356Z] abort: sparse profile build/sparse-profiles/None does not exist at revision 28421835d90c40a8af63ff8d01591e8110f07bac [1] https://searchfox.org/mozilla-central/rev/b03a62c3c82316e733a3b09622c1cb7e59f64cc3/taskcluster/taskgraph/transforms/job/toolchain.py#54
Reporter | ||
Comment 1•6 years ago
|
||
Also note the only toolchain that tries to take advantage of this actually sets it to `null` instead of `None`: https://searchfox.org/mozilla-central/rev/b03a62c3c82316e733a3b09622c1cb7e59f64cc3/taskcluster/ci/toolchain/linux.yml#473
Comment 2•6 years ago
|
||
That abort message implies that the string "None" is making its way through the config. I'm guessing YAML doesn't recognize `None` as an alias for "undefined" and that `null` is needed instead? A quick fix for this would be for taskgraph to verify the sparse profile file as specified in the config exists in the current revision.
Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #0) > According to [1] a toolchain task should be able to set `sparse-profile: > None` to not use a sparse profile. This is because yaml and python spell things differently as :gps suggested. YAML spells `None` as `null`. This could be better documentated, but is working as expected. (In reply to Gregory Szorc [:gps] from comment #2) > A quick fix for this would be for taskgraph to verify the sparse profile > file as specified in the config exists in the current revision. This would definitely be useful.
Assignee | ||
Comment 4•6 years ago
|
||
Pushed by mozilla@hocat.ca: https://hg.mozilla.org/integration/autoland/rev/a9b90a979fc7 [taskgraph] Verify that the specifed sparse profile exists; r=gps
Comment 6•6 years ago
|
||
Backed out changeset a9b90a979fc7 (bug 1508382) for Linting failure. CLOSED TREE Log: https://treeherder.mozilla.org/logviewer.html#?job_id=213896994&repo=autoland&lineNumber=303 Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&revision=a9b90a979fc70966dde072d66d97bde8e69066bb Backout: https://hg.mozilla.org/integration/autoland/rev/ea9af5fdb20e64d55b0ff4ff748ca35f949f0353
Flags: needinfo?(mozilla)
Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(mozilla)
Pushed by mozilla@hocat.ca: https://hg.mozilla.org/integration/autoland/rev/6417da60696e [taskgraph] Verify that the specifed sparse profile exists; r=gps
Comment 8•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6417da60696e
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
Updated•6 years ago
|
Assignee: nobody → mozilla
Updated•5 years ago
|
Target Milestone: Firefox 65 → mozilla65
Assignee | ||
Comment 9•5 years ago
|
||
bugherder uplift |
status-firefox-esr60:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•