Closed
Bug 1237300
Opened 10 years ago
Closed 10 years ago
Coalescing should just take a URL, rather than looking at routes
Categories
(Taskcluster :: Workers, defect)
Taskcluster
Workers
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: dustin)
References
Details
Attachments
(1 file)
This would simplify the worker implementation -- it just hits a URL which returns a sorted list of taskIds. This has a few implications:
* docker-worker really only has to know about "superseding" - the word "coalesce" need not appear
* only the coalescer is concerned about routes and pulse, although it will require that tasks have matching superseding URLs and routes
The changes required:
* replace payload.coalescer with payload.supersedingUrl
* while we're here, let's add the taskId as a query argument
(I suspect we'll want this later)
* remove the docker-worker code that matches against routes
* update the response format to use a fixed property name, rather than the coalescing key
* update documentation
It's not clear when we should do this -- maybe when implementing the taskcluster worker?
| Assignee | ||
Comment 1•10 years ago
|
||
That taskId will come in handy for bug 1237307 (at least allowing the coalescer to detect problems)
Jake, when do you think we should hack on this?
Flags: needinfo?(jwatkins)
Updated•10 years ago
|
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → dustin
| Assignee | ||
Comment 2•10 years ago
|
||
I'll start working on the docker-worker side of this soon.
Flags: needinfo?(jwatkins)
| Assignee | ||
Comment 3•10 years ago
|
||
Let's use a fixed name of `supersedes`:
{
"supersedes": [...]
}
| Assignee | ||
Comment 4•10 years ago
|
||
Things to do on docker-worker here:
* rename /coalesc(er|ed|ing|ible)/ appropriately
* change the payload format to use only `supersedingUrl`
* append `?taskId=<taskId>` to the URL
* expect an object with property `supersedes`
* require that the resulting list contain the querying taskId (ignoring the list otherwise) (bug 1237307)
* only claim until it finds the querying taskId in the list (bug 1237307)
| Assignee | ||
Comment 5•10 years ago
|
||
And reflect all of that in tc-docs.
| Assignee | ||
Comment 6•10 years ago
|
||
I changed my mind - superserderUrl sounds nicer
| Assignee | ||
Comment 7•10 years ago
|
||
> * only claim until it finds the querying taskId in the list (bug 1237307)
this is wrong; given
rev1 rev2 rev3 rev4
and an initial claim of rev3, we still want to try to claim all four, and if successful, perform rev4.
| Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8713332 -
Flags: review?(garndt)
| Assignee | ||
Comment 9•10 years ago
|
||
https://github.com/taskcluster/taskcluster-docs/pull/69 for the docs update.
Comment 10•10 years ago
|
||
Comment on attachment 8713332 [details] [review]
https://github.com/taskcluster/docker-worker/pull/209
Looks good to me after the changes. Relevant tests pass too.
Attachment #8713332 -
Flags: review?(garndt) → review+
| Assignee | ||
Comment 11•10 years ago
|
||
--> hvm-builder:
us-east-1: ami-69fbd603
us-west-1: ami-72fd8a12
us-west-2: ami-381ef958
--> pv-builder:
us-east-1: ami-09f8d563
us-west-1: ami-73fd8a13
us-west-2: ami-de11f6be
| Assignee | ||
Comment 12•10 years ago
|
||
rebuilt with better DEBUG:
--> hvm-builder:
us-east-1: ami-eff4d985
us-west-1: ami-15f48375
us-west-2: ami-8f10f7ef
--> pv-builder:
us-east-1: ami-e6f6db8c
us-west-1: ami-c7f285a7
us-west-2: ami-6c1afd0c
| Assignee | ||
Comment 13•10 years ago
|
||
Jan 29 10:49:55 docker-worker.aws-provisioner.us-west-2a.ami-381ef958.r3-xlarge.i-c9ff250e docker-worker: {"type":"not superseding","source":"top","provisionerId":"aws-provisioner-v1","workerId":"i-c9ff250e","workerGroup":"us-west-2a","workerType":"ami-test","workerNodeType":"r3.xlarge","taskId":"UAZ0kbOLTs2YJAXNvNdZXg","supersederUrl":"https://coalesce.mozilla-releng.net/v1/list/ab","message":"no tasks supersede this one"}
for a test task. So I think we can ship these AMIs out to at least the desktop test/build workerTypes.
Maybe Monday :)
Comment 14•10 years ago
|
||
Commits pushed to master at https://github.com/taskcluster/taskcluster-docs
https://github.com/taskcluster/taskcluster-docs/commit/8a9b110244d992bf2a57e7d6397955dc95fb1437
Bug 1237300: update docs to match new simpler supserseding process
https://github.com/taskcluster/taskcluster-docs/commit/8e8b91660adb86fc32097eb96b0a61e27adc58fc
Merge djmitche/taskcluster-docs:bug1237300 (PR #69)
| Assignee | ||
Comment 15•10 years ago
|
||
OK, I'm out of time trying to land these AMI changes, after struggling with a bunch of other stuff. I'll try again later this week, unless the AMI fairies beat me to it :)
| Assignee | ||
Comment 16•10 years ago
|
||
deployed to {opt,dbg}-{linux{32,64},macosx64}, desktop-test{,-xlarge}, android-api-{11,15}
| Assignee | ||
Comment 17•10 years ago
|
||
There's going to be a lag before there's any real fallout from this, but even if there is, it's tier-2, so..
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 18•10 years ago
|
||
Commits pushed to master at https://github.com/taskcluster/docker-worker
https://github.com/taskcluster/docker-worker/commit/e105da56181f3bc0aeaf26e7b2718e816582b95b
Bug 1237300: simplify coalescing to superseding
* rename /coalesc(er|ed|ing|ible)/ appropriately
* change the payload format to use only `supersedingUrl`
* append `?taskId=<taskId>` to the superseding URL
* expect an object with property `supersedes`
* require that the resulting list contain the initial taskId
https://github.com/taskcluster/docker-worker/commit/c056f41d65b9a2bece60b87ab5e18d465ca0ecd6
Merge djmitche/docker-worker:bug1237300 (PR #209)
Updated•7 years ago
|
Component: Docker-Worker → Workers
You need to log in
before you can comment on or make changes to this bug.
Description
•