Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a GitHub webhook for Taskcluster #536

Merged
merged 3 commits into from
Sep 13, 2018
Merged

Conversation

Hexcles
Copy link
Member

@Hexcles Hexcles commented Sep 11, 2018

The webhook listens to GitHub "status" events (i.e. all status updates
for all commits from all CI integration), but only reacts to the
"success" event from Taskcluster on master. When it receives such
events, it will query Taskcluster API for metadata, from which it
extracts task info, constructs a list of artifact URLs
(wptreport.json.gz), and sends the URLs to the results receiver.

Review Information

In addition to unit tests, the code has already been deployed in my personal GCP and correctly sending results to the staging receiver: https://staging.wpt.fyi/test-runs?labels=taskcluster

@wpt-pr-bot
Copy link

Staging instance deployed by Travis CI!
Running at https://taskcluster-webhook-dot-wptdashboard-staging.appspot.com

Copy link
Contributor

@lukebjerring lukebjerring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's lock down this endpoint - adding a GitHub secret should do the trick.

The webhook listens to GitHub "status" events (i.e. all status updates
for all commits from all CI integration), but only reacts to the
"success" event from Taskcluster on master. When it receives such
events, it will query Taskcluster API for metadata, from which it
extracts task info, constructs a list of artifact URLs
(wptreport.json.gz), and sends the URLs to the results receiver.
@Hexcles
Copy link
Member Author

Hexcles commented Sep 13, 2018

@lukebjerring HMAC has been added and tested in my staging deployment. PTAL.

api/webhook/taskcluster.go Outdated Show resolved Hide resolved
@Hexcles Hexcles merged commit 2ac465a into master Sep 13, 2018
@Hexcles Hexcles deleted the taskcluster-webhook branch September 13, 2018 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants