--Thanks,Aaron
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You could also just change the submit strategy to Fast Forward Only. (Although for many teams this is too heavy-handed a policy to actually be useful.)
On Tue, Jul 3, 2018 at 12:08 PM Martin Fick <mf...@codeaurora.org> wrote:On Monday, July 02, 2018 10:23:40 AM 'Aaron Beitch' via Repo
and Gerrit Discussion wrote:
> Hello,
>
> Our organization uses the "Rebase If Necessary" submit
> option because we have a large repository with several
> different teams working on different parts of the code
> base.
>
> Occasionally the build gets broken by a commit being
> submitted that is no longer compatible with HEAD. We have
> found that most of the time this is caused by a review
> that hasn't been rebased recently. Could we prevent
> submit on a commit that hasn't been rebased in the past,
> for example, 4 days? Maybe through a plugin or submit
> rule
> <https://gerrit-review.googlesource.com/Documentation/prol
> og-cookbook.html>?
I would suggest performing CI on all changes in a serialized
fashion before submit. One way to do that is with the batch
plugin. This related thread is probably worth a read:
https://groups.google.com/forum/?hl=en#!searchin/repo-discuss/is$20Gerrit$20$27merge$20if$20necessary$27/repo-discuss/O2KIkHEoU38/OFnwBexyAQAJ