Open Bug 1420903 Opened 8 years ago Updated 1 year ago

Provide a debug flag in .taskcluster.yml to aid troubleshooting

Categories

(Taskcluster :: Services, enhancement, P5)

enhancement

Tracking

(Not tracked)

REOPENED

People

(Reporter: dustin, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Inspired by bug 1420242, copied from @petemoore in https://github.com/taskcluster/taskcluster-rfcs/issues/102#issuecomment-346804197 --- Let's provide a debug option in .taskcluster.yml in github repositories that makes taskcluster extra "chatty". When a task is not triggered, e.g. because branch filtering prevents it, it can post a message against the commit / PR that explains why it did not trigger a task. This could also apply if the user doesn't have adequate permissions. It could also leave a message with the webhook payload it received, and optionally the message payload that it wrote to any pulse exchange, together with the name of the pulse exchange it wrote to. Having this debug mode will be really useful when people are setting up new projects, and can't work out why tasks are not getting triggered. The idea would be, so long as taskcluster-github receives a call from a webhook, it would attempt to add debugging information to the PR/commit/tag/release that triggered it, even if it is a no-op.
Mentor: dustin
Hey yd, Any interest in taking this on once we land your current work?
Flags: needinfo?(didwaniayashvardhan)
Yes Brian, I would be happy to work on it. Just waiting for the no-deploy period to end :)
Flags: needinfo?(didwaniayashvardhan)
Assignee: nobody → didwaniayashvardhan
Status: NEW → ASSIGNED
YD, do you still want to work on this? Otherwise we could make it a mentored bug.
Flags: needinfo?(didwaniayashvardhan)
I will not be able to work on it. Can I mentor it though?
Flags: needinfo?(didwaniayashvardhan)
Awesome, yeah!
Assignee: didwaniayashvardhan → nobody
Mentor: dustin → didwaniayashvardhan
Status: ASSIGNED → NEW
Severity: normal → enhancement
Keywords: good-first-bug
Priority: -- → P5
Component: Github → Services
Blocks: github-bugs
Mentor: bugzeeeeee, dustin
Mentor: bugzeeeeee

This is good background for a rethink of the GitHub integration.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

I came across this issue via codetribute and would love to work on this as my first contribution. I’ve gone through the contribution guidelines, but I’d appreciate any pointers on where to start or any relevant docs to check.

Hi ansah, thanks for the interest!
You can start with the documentation of github service and .taskcluster.yml definition - https://community-tc.services.mozilla.com/docs/reference/integrations/github/taskcluster-yml-v1
Here is one of the more complex ones that taskcluster itself is using - https://github.com/taskcluster/taskcluster/blob/main/.taskcluster.yml
A more simple option is here - https://github.com/taskcluster/tc-dev-integration-test/blob/main/.taskcluster.yml

Since then we have introduced already some debugging functionality in the UI: https://community-tc.services.mozilla.com/tcyaml-debug?url=https%3A%2F%2Fraw.githubusercontent.com%2Ftaskcluster%2Ftc-dev-integration-test%2Frefs%2Fheads%2Fmain%2F.taskcluster.yml#findings

Which is sending requests to this endpoint: https://docs.taskcluster.net/docs/reference/integrations/github/api#renderTaskclusterYml

However, I believe, we have also implemented most of the original ideas already through comments - github integration will send comments to PR or commits when it encounters those errors, so I'm afraid there's not much to do in here, and maybe we should close it

Oh okay, thanks for the update.

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