Are stacked diffs/PRs supported for external contributors? #2279
-
I have read https://perfetto.dev/docs/contributing/developer-tools#-quot-stacked-diffs-quot-with-github and it appears these tools work by setting the base branch for the stacked PR to that of the base PR. This presents an issue for stacking since external contributors do development using forks, so the base branches of stacked PRs would appear on the forked repo instead of the official perfetto repo. I'm aware of other methods of tracking PR dependencies like overlapping PRs where the base branch is set to "main" for all PRs which is used by https://sapling-scm.com/docs/addons/reviewstack and plays nicely with stacked PRs from forks. This however generally requires the reviewers to switch to an alternate review tool (like reviewstack) that can understand these PR relationships. I think those approaches may work for external contributors, but I'm not sure that is something reviewers would want to deal with. Are the stacked diff tools meant to be used by external contributors? if yes, how? if not, are there any alternative suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
So the answer is no and we feel this is a very unfortunate limitation. It's we tired really hard to come up with when we first moved to Github to workaround but we didn't find anything we were happy with.
I checked out sapling but I didn't feel like https://reviewstack.dev/ was up to scratch. I just opened it again and it froze my browser tab :/ I also tried Graphite but was again unimpressed by the constant push to pay (I would have liked to try out full feature without paying) and also found it quite buggy.
So the tools as they exist in the repo only work for internal contributors I'm afraid.
Not that we've found. Very open to suggestions. One thing we did consider: making |
Beta Was this translation helpful? Give feedback.
-
Two comments: 1) On the topic of tooling, TBH I am still very unhappy about how stacked changes work even if you have dev/ write access. That's the one place where I'm really missing Gerrit. I think the only answer is that one day when i'll have free time I'll (ask AI to) write me a frontend for github PR that looks as identical as possible to gerrit. Until then we'll have to live with what we have unforutnately. I liked graphite.dev in principle, but it fails every single time I try to add a comment. Maybe it has to do with the subscription state... dunno I haven't tried reviewstack much but doesn't seem too mature. I'd also be open to try out other workflows as I'm still not sold on the current one we have for stacked changes. Maybe we could try something like:
Proposal here are welcome 2) On the topic of giving non-googlers dev/ write access I think it's a pragmatic choice and I'd be in favour of it % figuring out a set of rules we consistently stick to. However, if we give @cphlipot1 write access, tomorrow somebody else will ask "how can I get write access too?" and we must have an answer. The answer cannot be "depends on how primiano@ (or somebody else) feels about it". My proposal here would be something along the lines of Chromium's committership, which I'd summarize as follows:
If we like the idea, pragmatically we need:
Thoughts? |
Beta Was this translation helpful? Give feedback.
So the answer is no and we feel this is a very unfortunate limitation. It's we tired really hard to come up with when we first moved to Github to workaround but we didn't find anything we were happy with.
I checked out sapling but I didn't feel like https://reviewstack.dev/ was up to scratch. I just opened it again and it froze my browser tab :/
I also tried Graphite but was again unimpressed by the constant push to pay (I would have liked to try out fu…