Closed Bug 1246639 Opened 9 years ago Closed 9 years ago

Auto generate PayloadSchema() methods in engines base on buildtime discovery of engines

Categories

(Taskcluster :: Workers, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pmoore, Unassigned)

References

Details

We will have json schemas checked into the source tree, and we can use these to generate the PayloadSchema() methods for all of the engines at build time.
We are essentially doing this now. Rather than generating the PayloadSchema methods, we are generating a `payloadSchema` unexported package variable, which the PayloadSchema methods can simply return. See e.g. https://github.com/taskcluster/taskcluster-worker/blob/21110becb3f9f65f45c17fded3b550f87951a5ac/engines/mock/mockengine.go#L40 which returns the value in the generated code from https://github.com/taskcluster/taskcluster-worker/blob/21110becb3f9f65f45c17fded3b550f87951a5ac/engines/mock/generated_payloadschema.go#L27.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: Worker → Workers
You need to log in before you can comment on or make changes to this bug.