action hook tasks should show who triggered them
Categories
(Firefox Build System :: Task Configuration, task, P5)
Tracking
(Not tracked)
People
(Reporter: mozilla, Assigned: biboswan98)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Comment 1•6 years ago
|
||
Dustin: is there a way to map a client ID here?
Comment 2•6 years ago
|
||
Potentially -- it would require changes to the hooks service to make the clientId calling triggerHook available in the JSON-e context, and then using that value in .taskcluster.yml. That might be a good contributor project!
Assignee | ||
Comment 3•6 years ago
|
||
Hm I would work on this
Comment 5•6 years ago
|
||
https://docs.taskcluster.net/docs/reference/core/taskcluster-hooks/docs/firing-hooks describes the current JSON-e rendering. The solution I suggest in comment 2 would add a triggeringClientId property to the context for TriggerHook. You can get the value in an API method implementation from await req.clientId()
.
Assignee | ||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
That's deployed and working fine.
[taskcluster 2019-01-17 17:31:06.923Z] === Task Starting ===
hello World from mozilla-auth0/ad|Mozilla-LDAP|dmitchell
[taskcluster 2019-01-17 17:31:07.655Z] === Task Finished ===
Comment 8•6 years ago
|
||
Comment 10•6 years ago
|
||
bugherder |
Comment 11•6 years ago
|
||
Backed out changeset aee9f213f3c7 (bug 1496890) for causing Bug 1521264: https://hg.mozilla.org/mozilla-central/rev/a71f2830d57099dc5e83af1cfbcf98c97c68f2f7
this was also requested by Tom Prince on irc and needinfo aki and dustin on this.
Comment 12•6 years ago
|
||
Ah, that's going to be tricky to solve..
Comment 13•6 years ago
|
||
This was fixed in Bug 1521264.
Updated•6 years ago
|
Description
•