Open Bug 1499055 Opened 6 years ago Updated 10 months ago

[META] Support docker-worker tasks in generic-worker

Categories

(Taskcluster :: Workers, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

REOPENED

People

(Reporter: pmoore, Unassigned)

References

(Depends on 15 open bugs, Blocks 2 open bugs)

Details

Attachments

(1 file)

In order to be able to discontinue support for docker-worker, we will need to migrate all docker-worker tasks to generic-worker.

Generic worker should support the same format task payloads as docker worker, so that the migration can be as seamless as possible.
Assignee: nobody → wcosta
This PR is not ready for merging, it is a starting point for adding docker support. It runs tasks inside a docker container, but does not allow the task to specify an image, it uses a hardcoded image to run the task inside. It doesn't cache docker images or provide support for building docker images.

It provides go types generated from the docker-worker payload schema, in order to interpret docker-worker style payloads.

When generic-worker reads a task payload, it should evaluate if it is a native generic-worker task payload, or a docker-worker task payload. If it is a docker-worker task payload, the worker should load the payload into the docker-worker go types, then transform that data into the native generic-worker payload go types. This should localise most of the changes to the codebase to this transformation step, so that the existing mechanics of interpreting the task payloads can be left untouched.

Additionally we should add support to the generic-worker task payload format for the additional docker-worker features, so that at some point, we could more easily drop support for legacy docker-worker style payloads, to keep things simpler/cleaner. Of course this is not mandatory, but may be desirable in the interests of simplicity.
Status: NEW → ASSIGNED
Summary: Support running tasks inside docker container → Support docker-worker tasks in generic-worker
Splitting this bug up into separate bugs for the constituent parts...
Depends on: 1502335
Depends on: 1502337
Depends on: 1502339
Depends on: 1502348
Depends on: 1502351
Depends on: 1502352
Depends on: 1502354
Depends on: 1502356
Depends on: 1502359
Depends on: 1503844
Depends on: 1504342
Depends on: 1505011
Depends on: 1505015
Depends on: 1505016
Depends on: 1505017
Depends on: 1505018
Depends on: 1505019
Depends on: 1490964
Depends on: 1505394
Depends on: 1505764
Summary: Support docker-worker tasks in generic-worker → [META] Support docker-worker tasks in generic-worker
Depends on: 1508643
Assignee: wcosta → pmoore
Component: Generic-Worker → Workers
Depends on: 1559764
Depends on: 1559766
Depends on: 1559768
Depends on: 1559769
Depends on: 1559770
Depends on: 1559771
Depends on: 1559777
Depends on: 1560001
Depends on: 1560000
Blocks: 1157769
Depends on: 1563220
Assignee: pmoore → nobody
Status: ASSIGNED → NEW
Depends on: 1566925
See Also: → 1568973

Not actively working on this at the moment.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INACTIVE

Reopening inactive bugs, because they may still need attention. Historically, inactive bugs were closed, but this hides the fact there are genuine issues which have not been resolved.

Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: