-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add an optimism parameter for rolling PRs together #23
Comments
Pretty straightforward until you get to reconstructing which PRs are being merged from the test HEAD. Easiest way to go is checking if |
What's the driving factor here? Why not simply test these patches even though you're 'optimistic' they'll pass? Are you constrained by build-resources? If you want, you can always manually merge things into the repository and skip bors altogether. |
The idea is to merge multiple PRs together and build/test them all once.
|
Right, but why? |
The idea was that one PR takes a very long time. If you end up with 5 PRs
|
The above suggestions seem rather complex. But I suppose I don't really care too much as long as the feature is either hidden behind a flag, or the repository owner gets to decide whether the PR is given different treatment, and not the pull-request author. |
I believe the idea was for the reviewer to say |
Jut like reviewer and priority (e.g. r=brson p=1) it's up to the reviewer The justification is that bors gets, from time to time, significant
|
I suppose #34 would be considered to supersede this idea? |
Often PRs come through where one can be highly confident, or even certain, that the PR will not cause test failure. (e.g. documentation that is not tested, typos in comments, Vim syntax files for Rust.)
At the simplest level, optimism would just be a boolean flag: that if a developer is optimistic that a patch will land successfully, it can merge multiple optimistic patches at once.
A slightly higher level of implementation for this feature would be a parameter
optimism=X
, for values ofX
between 0 and 1 (inclusive).optimism=1
means "there is no way this can genuinely go wrong" which would also mean that you could merge it with a non-optimistic patch and impute no failure to this patch in case of failure, and so immediately put it back in the approved queue rather than the bad queue. If it fails three times (arbitrary number), mark it as bad, just in case the optimism flag was erroneous.@retry
isn't hard in such cases.You could let
optimism=0.99
merge only with other optimistic patches.After that, you could get into moderately advanced statistics, if you wanted—probability that a patch will land, and then let bors calculate potential time savings by merging multiple patches at once (win if they land; lose if they don't, and then it can take a guess at which broke it and try a smaller set of patches). Artificial intelligence! Machine learning! Fun!
But for the moment, basic optimism checking would be a good feature to have.
The text was updated successfully, but these errors were encountered: