Raptor-speedometer-cpu-memory-power is running on central when it shouldn't
Categories
(Testing :: Raptor, defect, P3)
Tracking
(Not tracked)
People
(Reporter: sparky, Assigned: sparky)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
I noticed that the raptor-speedometer-cpu-memory-power has been running on mozilla-central when it shouldn't since we've set the run-on-projects flag to []: https://dxr.mozilla.org/mozilla-central/source/taskcluster/ci/test/raptor-gve.yml#178
I don't see anything obvious that could be causing this issue. Dustin, would you know what might be causing this? If not, could you or someone else from the TaskCluster team look into this?
Edit, here's a link to a task running this test (and many others) when it shouldn't: https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&tier=1%2C2%2C3&searchStr=power&revision=174361d152923aea2b24226a57cde3099509ed6a
| Assignee | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
I don't know much about how the taskgraph stuff works these days. At a guess, does something else depend on it? Otherwise, I'd suggest checking with others in the taskgraph module
| Assignee | ||
Comment 2•6 years ago
|
||
Ok, thanks :dustin! I can't find anything that depends on it.
:ahal, would you know what might be causing this issue (see first comment)?
Comment 3•6 years ago
|
||
It could be getting set in a transform somewhere. Sorry, I don't know offhand. Maybe Rob would have an idea, or if not you might need to dig through all the transforms and see where it might be set.
Somewhat related but not helpful to this bug.. The raptor configs are getting a bit out of hand. It might be time for us to try and figure out how we can move more logic into transforms and reduce the .yml configs (e.g ideally we would set platform information via a list key + transforms rather than have separate .yml files for each platform). But this is more to prevent these kinds of things from happening in the future than anything actionable now.
Comment 4•6 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #3)
It could be getting set in a transform somewhere. Sorry, I don't know offhand. Maybe Rob would have an idea, or if not you might need to dig through all the transforms and see where it might be set.
No I don't know offhand, sorry.
Somewhat related but not helpful to this bug.. The raptor configs are getting a bit out of hand. It might be time for us to try and figure out how we can move more logic into transforms and reduce the
.ymlconfigs (e.g ideally we would set platform information via a list key + transforms rather than have separate.ymlfiles for each platform). But this is more to prevent these kinds of things from happening in the future than anything actionable now.
Yes absolutely, this is something that we are going to look at and solve as we transition from Raptor to Browsertime. For the Browsertime MVP we are using the existing Raptor test jobs so we can easily compare data; however once we move to Browsertime in production we definitely need to solve this. I have filed Bug 1578749 to make sure we look at this. Thanks Andrew!
| Assignee | ||
Comment 5•6 years ago
|
||
I found the issue. It seems like the merge_to function is merging the job-defaults with the setting in the test's task which should be overridden (unless by-test-platform is specified).
Here's where this is called: https://dxr.mozilla.org/mozilla-central/source/taskcluster/taskgraph/loader/transform.py#38
And this is where the error is coming from: https://dxr.mozilla.org/mozilla-central/source/taskcluster/taskgraph/util/templates.py#39
dest is the run-on-projects current default setting from job-defaults, and source is the task's setting. In this case, they are merged together. They shouldn't be merged here since that defeats the purpose of having a default that can be overridden.
If I remove 'mozilla-central' from the job-defaults section in raptor-gve.yml, we get an empty 'run-on-projects' entry and the power tests are no longer scheduled.
| Assignee | ||
Comment 6•6 years ago
|
||
Pushing patch like this because phabricator is broken for me at the moment.
| Assignee | ||
Comment 7•6 years ago
|
||
This patch prevents the job-defaults run-on-projects setting from overriding the task-specific run-on-projects setting. It also fixes a minor error in raptor-fennec.yml.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 8•6 years ago
|
||
Push to try with this patch: https://treeherder.mozilla.org/#/jobs?repo=try&revision=16f16d3b53e0ed72cd257ced8018a464ecf42ee8
Comment 9•6 years ago
|
||
Yeah, it's not great that there's no way to "replace" a list or dict from job-defaults. I can't really think of any elegant way of solving this though.. I guess for edge cases like this there are always transforms.
Comment 10•6 years ago
|
||
Agreed -- job-defaults was intended as a "bridge" from "I have one task, here it is" to "I have three tasks and they're nearly identical", but wasn't expected to reach the far shore of "I have a whole bunch of tasks with complex differences between them."
| Assignee | ||
Comment 11•6 years ago
|
||
I'm thinking that we could solve this if we had a job-defaults section for setting default values that are used when a task doesn't have those values set, and a job-additionals section which are added/appended to a task's settings. Having this job-additionals section could also make our task definitions nicer (like the mozharness.config entries in raptor definitions).
Comment 12•6 years ago
|
||
| Assignee | ||
Comment 13•6 years ago
|
||
I'm going to leave this bug open after the patch lands so we know to come back and fix this hack once bug 1578804 is resolved.
Comment 14•6 years ago
|
||
| bugherder | ||
Updated•6 years ago
|
Mass-removing myself from cc; search for 12b9dfe4-ece3-40dc-8d23-60e179f64ac1 or any reasonable part thereof, to mass-delete these notifications (and sorry!)
Comment 16•5 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:sparky, maybe it's time to close this bug?
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Description
•