We can also use weird implicit magic to try to resolve this. Here's a ruleset that will make everyone equally confused and unhappy:
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
May 23 2016
I think that that creates some tension that I'm not immediately sure how to resolve:
The user story most important to us is:
There were ultimately two sort of related requests here, although some of the discussion happened off-thread. Let's call them arc diff --draft and arc diff --try:
Funny enough there were discussions among the engineering leads on Friday about having this type of functionality in Phabricator being useful. It wasn't a main point of discussion but several did look to Phabricator for being able to solve some concerns. The primary concern was around having accountability for specific quality points which may not necessarily be clear from the revision alone. Without Phabricator we approach this pretty much as I had mentioned above (training materials and KB/wiki with a checklist to be used with some pre-commit unit tests to help with some items that can be automatically checked), however we work in a well-regulated industry where checklists/documents as evidence are often highly valued. I think for the time being if we decide to move forward with this in Phab we may include a "template comment" to be filled out and used when accepting revisions.
May 22 2016
We now send HTML mail by default.
In T1279#176531, @epriestley wrote:
I'm going to close this as resolved, since I think we've substantially addressed all of the followups or there are now more narrow tasks with more focused problem descriptions available. In particular, from above:
I'm going to close this since I don't think there's anything we plan to act on here.
Presuming resolved by D15710.
You can likely do this:
May 21 2016
Another possibility is that we just build this behavior (intercept and react to ref changes) as an extension point prior to the Herald, and then you can implement whatever magic you want. I suspect very few installs want the default behavior of git push origin mybranch for arbitrarily named branches to be anything except "create a branch".
FYI we'd mainly be placing devops engineers in the "allow push any branches" project group, so that in the case where we need to hotfix production, authorized users can create a branch in the remote to create a release from it.
I'd expect there to be either per-repository rules (like "Tracking Branches" for repositories right now), or Herald-based rules "on branch hook, convert to Differential Revision action" that would allow Phabricator to determine whether a branch is allowed in the remote or not.
So your desired behavior is that git push origin develop should create a revision, instead of creating a new branch in the remote like a normal Git repository would? How would users create new branches in this model?
In T5000#176433, @epriestley wrote:non-master branches in the repository would be Differential Revisions
I think the closest match for this is T10691 (GitHub-like forking). I'd plan to implement forking very similarly to GitHub.
I don't plan to ever encourage users to create un-namespaced personal branches in the remote because I believe this process doesn't scale well to a large number of users. Much of the value of forking in my mind is giving users who want to do this (particularly, under the "git push = save changes" mode of thinking) a namespaced place to do it.
non-master branches in the repository would be Differential Revisions
To me, I imagined this task would be supporting something rather like:
You'll still need to go there and fill out all the stuff you would have filled out in your commit message. That is, this flow would drop you at the screen right after you copy/paste:
May 20 2016
Write Depends on D123 in the commit message.
Phabricator doesn't give me an option to say "this commit depends on this other commit, so you can review it on its own but don't try to merge it yet".
If we are to support git push HEAD:review, I'd like users who are interested in this to explain exactly what they expect it to do, and why that's dramatically better than copy-and-paste.
Wow, good job! Check out your review at https://secure.example.com/D1234
In T5000#176361, @thoughtpolice wrote:The expectation is basically, "I want to contribute a typofix, and maybe some more later, but why I do I have to spend 20 extra minutes up front on my first patch, a typofix? Can't this be easier up front?" Note that GHC is a compiler so it inherently has a somewhat high activation energy; this is 20 minutes spent on top of the 20-40 minutes you spent already getting it to build, etc.
So in the case of Haskell.org, specifically the Glasgow Haskell Compiler (which I'll go ahead and put out there, since I believe we're the one who got this put on 'The Queue' in question), our root problem that we think this fixes, I believe, is not "Phabricator should act like GitHub" or "Phabricator should act like Gerrit", which aren't reasonable or actionable as requests. They're sometimes brought up, but not our real problem. Rather, it is "Contributing smaller changes carries lots of unnecessary friction, perhaps even psychologically, because of arcanist".
IIRC, we copy/pasted at Facebook for quite a while -- maybe 6-12 months, circa 2007, before arc and related tools really got built out -- without ever running into wordwrap/whitespace issues.
My problem with copying & pasting are the media breaks: I have to format the patch, make sure it doesn't get mangled by some auto-wordwrap, trailing whitespace deletion, etc., and then paste it in or upload to a web form. git push ensures that I don't have to worry about any of that because the patch is an opaque "blob".
Git protocol rewriting appears practical.
The Git wire format for PACK data is very special, here's how you read the length of an entry:
@fooishbar, this task will not address your use case. We will, as closely as possible, implement arc semantics without requiring arc. The primary upstream motivation for this workflow is to provide a stepping stone toward arc which is as similar as possible to the arc workfow, not to provide a new, entirely different workflow which would make adopting arc more confusing and difficult.
@benjumanji history.immutable does not actually cover it, but this task is probably the wrong place to begin that entire discussion again.
If this is the outcome of you using arc land then you are doing it wrong. Just flick the history to immutable if you don't want it squashed.
In T5000#176256, @epriestley wrote:(I am far less convinced of the value of forking or git push-to-review, except as onboarding tools).
Major unknown here is the complexity of decoding the Git wire protocol. The D9599 workflow goes like this:
May 18 2016
Inlined patches are now highlighted more nicely in HTML mail.
May 17 2016
At HEAD (after D15929), bucketing is now more considerate of individual reviewer status and cases in T5217 should be handled in line with user expectation.
I'm going to merge this into T10967. Although it would be possible to fix in advance of that, I think it is unlikely that we'll pursue the changes outside of the larger infrastructure changes discussed there.
At HEAD, I can't reproduce this:
I think this is covered by T8612, unless you can produce a small change which requires a disproportionately large amount of time to render. It is expected that large changes will take a proportionately large amount of time to render.
No clue how to reproduce this and haven't seen anything similar in the ~year since. File a new one if you have some idea how to repro it.
The driving use case for this fell through, and I no longer plan to pursue it.
Ah, thanks for following up. That's interesting and a little perplexing, although just fixing this stuff via T10967 is probably still the best way forward. I'll keep an eye out for similar reports, though. That does tend to make me think it might be a real race.
Oh, my apology for not replying on your previous comment, somehow the notification slipped through and I'm not a very regular visitor of this Phabricator instance.
I'm going to merge this into T10967, since after digging around in the code a bit recently it seems unlikely that we'll pursue the infrastructure changes required to fix this outside of the context of that larger infrastructure change.
Likely the same as T6815 since I think they're the same code.
May 16 2016
I'm going to merge this into T10939, which answers this question in practice if not in theory.
There are now six buckets which are more action oriented (Must Review, Ready to Review, Ready to Land, Ready to Update, Waiting on Review, Waiting on Authors) and bucketing is more flexible.
In T9263#175460, @epriestley wrote:(The slightly more intuitive "Reviewers: SomeProjectName" will also work.)
D15930 adds an icon hint for this that looks like this:
thanks! Will try it out when we update here. @angie can you ping me once we update to this version on our side?
