Closed
Bug 1497155
Opened 6 years ago
Closed 6 years ago
Allow toolchain artifact downloading command to be run on Taskcluster
Categories
(Firefox Build System :: General, enhancement)
Firefox Build System
General
Tracking
(firefox64 fixed)
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: marco, Assigned: andi)
Details
Attachments
(1 file)
Currently we don't allow the command to be run on Taskcluster (https://dxr.mozilla.org/mozilla-central/rev/90853a59691e0c77014c38049bfb38b2b6ca1e16/python/mozbuild/mozbuild/mach_commands.py#1422), because "all dependencies should be determined in the decision task". While this is true for mozilla-central, there are other projects (e.g. the static analysis bot) which use Taskcluster which would benefit from using the toolchain artifact downloading command. Can we make this check specific to mozilla-central, or add an option to ignore it?
Comment 1•6 years ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #0) > Currently we don't allow the command to be run on Taskcluster > (https://dxr.mozilla.org/mozilla-central/rev/ > 90853a59691e0c77014c38049bfb38b2b6ca1e16/python/mozbuild/mozbuild/ > mach_commands.py#1422), because "all dependencies should be determined in > the decision task". > While this is true for mozilla-central, there are other projects (e.g. the > static analysis bot) which use Taskcluster which would benefit from using > the toolchain artifact downloading command. Why would you download the dependency via mach, when you can just declare it in the task definition?
Flags: needinfo?(mcastelluccio)
Reporter | ||
Comment 2•6 years ago
|
||
(In reply to Nathan Froyd [:froydnj] from comment #1) > (In reply to Marco Castelluccio [:marco] from comment #0) > > Currently we don't allow the command to be run on Taskcluster > > (https://dxr.mozilla.org/mozilla-central/rev/ > > 90853a59691e0c77014c38049bfb38b2b6ca1e16/python/mozbuild/mozbuild/ > > mach_commands.py#1422), because "all dependencies should be determined in > > the decision task". > > While this is true for mozilla-central, there are other projects (e.g. the > > static analysis bot) which use Taskcluster which would benefit from using > > the toolchain artifact downloading command. > > > Why would you download the dependency via mach, when you can just declare it > in the task definition? The static analysis bot doesn't use anything from the CI code in tree right now. It clones mozilla-central and uses mach. It's not a task defined in tree, so it doesn't benefit from automatic downloading of dependency artifacts.
Flags: needinfo?(mcastelluccio)
Comment 3•6 years ago
|
||
OK, thanks for the explanation. If the bot is already running on Taskcluster, then why not make it fit better into the task framework?
Reporter | ||
Comment 4•6 years ago
|
||
(In reply to Nathan Froyd [:froydnj] from comment #3) > OK, thanks for the explanation. If the bot is already running on > Taskcluster, then why not make it fit better into the task framework? We have plans for that, but unfortunately it will require some time to get it done.
Assignee | ||
Comment 5•6 years ago
|
||
Would it be something feasible to add an extra flag that would force the manager to download the artifact even if it's automation env as checked here: https://dxr.mozilla.org/mozilla-central/rev/90853a59691e0c77014c38049bfb38b2b6ca1e16/python/mozbuild/mozbuild/mach_commands.py#1422
Flags: needinfo?(gps)
Comment 6•6 years ago
|
||
replacing TASK_ID with MOZ_AUTOMATION would seem reasonable.
Assignee | ||
Comment 7•6 years ago
|
||
Pushed by bpostelnicu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/42bd6d4455a4 Allow toolchain artifact downloading command to be run on Taskcluster. r=glandium.
Comment 9•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/42bd6d4455a4
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•6 years ago
|
Assignee: nobody → bpostelnicu
You need to log in
before you can comment on or make changes to this bug.
Description
•