[tc-github] a .taskcluster.yml in a PR without one in the master branch is skipped
Categories
(Taskcluster :: Services, defect)
Tracking
(Not tracked)
People
(Reporter: dustin, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug)
let defaultBranchYml = await this.getYml({instGithub, owner: organization, repo: repository, ref: defaultBranch});
if (!defaultBranchYml) { return; }
This means experimenting with .taskcluster.yml
in a PR silently does nothing.
Could we assume the most restrictive policy, instead?
Comment 2•5 years ago
•
|
||
What policy would you suggest (to rephrase: what would "the most restrictive" mean)? (edited upon reading the title of the bug)
Reporter | ||
Comment 3•5 years ago
|
||
I think "collaborators" is the most restrictive (in other words, it allows the least of all of the policy options).
Comment 4•5 years ago
|
||
I see, so you are suggesting: why don't we stop checking the yml in the default branch and just use "collaborators" policy always. That will deprive people of policy choice tho?
Reporter | ||
Comment 5•5 years ago
|
||
No, my idea is that when there is no .taskcluster.yml in the default branch, then we default to "collaborators".
Comment 6•5 years ago
|
||
Hey there!
I hit that issue too, today. My main worry is that tc-github silently fails. I didn't have any feedback about the reason why no jobs were scheduled.
My STR are:
- Enable TC on a new repo
- Create a PR that creates
.taskcluster.yml
- See a first error because of some parsing shenanigans.
- Fix it: No error is reported. No job is scheduled. Run json-e locally and see it output the expected result.
I was confused by this behavior, especially because tc-github did provide some early feedback at the beginning.
Comment 7•5 years ago
|
||
(In reply to Dustin J. Mitchell [:dustin] (he/him) from comment #5)
No, my idea is that when there is no .taskcluster.yml in the default branch, then we default to "collaborators".
+1, it's tricky setting up a .taskcluster.yml for the first time in a repo that i don't own atm.
Updated•5 years ago
|
Updated•4 years ago
|
Reporter | ||
Comment 8•4 years ago
|
||
Description
•