Closed Bug 1382668 Opened 7 years ago Closed 5 years ago

generic-worker: document the env vars that the worker implicitly sets in the task commands it runs

Categories

(Taskcluster :: Workers, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: pmoore)

References

Details

Attachments

(1 file)

I'm not sure what those are, but grepping for TASKCLUSTER_ in docker-worker could probably reveal them.  They should also be documented here
  https://docs.taskcluster.net/reference/workers/docker-worker/environment
Depends on: 1454035
QA Contact: pmoore
Summary: generic-worker: generate the same env vars as docker-worker → generic-worker: bring env-vars in sync with spec from 1454035
Blocks: 1454037
Pete: worker consolidation obviates this. Should this be duped forward or closed?
Flags: needinfo?(pmoore)
Component: Worker → Generic-Worker
Flags: needinfo?(pmoore)
Summary: generic-worker: bring env-vars in sync with spec from 1454035 → generic-worker: document the env vars that the worker implicitly sets in the task commands it runs
That document starts with:

> Taskcluster defines several environment variables, 

Which feels very vague to me. Defines where? Does this mean that worker implementations like docker-worker and generic worker, when they are given arbitrary scripts/commands to run through a task definition, are expected to define these variables for use by those scripts/commands?

> TASKCLUSTER_CLIENT_ID is the clientId to use for Taskcluster API calls. 

Is this for the purpose of making API calls from tasks? How does this compare with the `taskclusterProxy` feature (which AFAIU does not require authentication) of docker-worker and generic-worker?
It defines them right there in the very next line :)

But yes, that document could be more explicit about when these variables are provided, and when they are expected.  Bug 1511457.
Component: Generic-Worker → Workers
Assignee: nobody → pmoore
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

Released in generic-worker 15.1.1.

deployment reverted due to tree closure (bug 1566365)

Redeployed without issue second time around (original failure cause currently unknown).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: