<div dir="ltr">Rebase is more or less stashing and removing all local commits, upgrading the underlying branch to current, then re-applying the local commits. This changes the commit hashes for any re-applied commit that lands on a change to the underlying branch, meaning that old commit hashes can be invalid afterward.<div><br></div><div>(This is also why force-pushing causes problems, since this is only visible in a local tree *unless* force-pushed upstream, meaning now those changed/deleted commits affect anyone else who has checked out that upstream branch. The normal process of upstreaming commits can't expose local changes like that, since it all goes upstream as a group and becomes a permanent part of the branch's history. Unless someone force-pushes the branch afterward, forcibly overwriting that history with a different one and leaving anyoneelse who'd checked out the branch with dangling commits that no longer exist.)</div><div><br></div><div>Here, CI is making a copy of someone's branch and testing each commit in turn to ensure consistency between multiple branches that touch the same code, whose commits may end up interleaved. If the branch is rebased or force-pushed during that testing, intermediate commits may become invalid as above and CI would need to start over with a new list of commits.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 24, 2019 at 5:43 PM Simon Peyton Jones via ghc-devs <<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">| Ah, yes -- I did push a rebase. OK: good to know that this is expected<br>
| behavior after rebasing (makes sense).<br>
<br>
Does not make sense (yet) to me.<br>
<br>
Can someone explain (and perhaps document) the workflow here?<br>
<br>
Simon<br>
<br>
| -----Original Message-----<br>
| From: ghc-devs <<a href="mailto:ghc-devs-bounces@haskell.org" target="_blank">ghc-devs-bounces@haskell.org</a>> On Behalf Of Richard<br>
| Eisenberg<br>
| Sent: 24 January 2019 19:22<br>
| To: Ben Gamari <<a href="mailto:ben@smart-cactus.org" target="_blank">ben@smart-cactus.org</a>><br>
| Cc: GHC developers <<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>><br>
| Subject: Re: "resource exhausted" in CI<br>
| <br>
| Ah, yes -- I did push a rebase. OK: good to know that this is expected<br>
| behavior after rebasing (makes sense).<br>
| <br>
| Thanks,<br>
| Richard<br>
| <br>
| > On Jan 24, 2019, at 2:01 PM, Ben Gamari <<a href="mailto:ben@smart-cactus.org" target="_blank">ben@smart-cactus.org</a>> wrote:<br>
| ><br>
| > Richard Eisenberg <<a href="mailto:rae@cs.brynmawr.edu" target="_blank">rae@cs.brynmawr.edu</a>> writes:<br>
| ><br>
| >> Something is awry:<br>
| <a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.ha" rel="noreferrer" target="_blank">https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.ha</a><br>
| <a href="http://skell.org" rel="noreferrer" target="_blank">skell.org</a>%2Frae%2Fghc%2F-<br>
| %2Fjobs%2F16908&amp;data=02%7C01%7Csimonpj%<a href="http://40microsoft.com" rel="noreferrer" target="_blank">40microsoft.com</a>%7C375c6daea23444<br>
| 7c3d2808d682314861%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C63683954552<br>
| 1260172&amp;sdata=8OYI5PAk7B6P%2B%2BoJbqgeqPbTR%2BMH6F8Wm34ThdBhRL0%3D&amp;<br>
| reserved=0 never got off the ground.<br>
| >><br>
| > It is possible that you pushed a rebase? This error generally means that<br>
| > the commit is no longer accessible which may happen when you push a<br>
| > rebase.<br>
| ><br>
| > I believe I cited the job for the current version of the patch [1] in my<br>
| > previous email. Note that the commit SHA is different between [1] and<br>
| > the job you cited.<br>
| ><br>
| > Cheers,<br>
| ><br>
| > - Ben<br>
| ><br>
| ><br>
| > [1]<br>
| <a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.ha" rel="noreferrer" target="_blank">https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.ha</a><br>
| <a href="http://skell.org" rel="noreferrer" target="_blank">skell.org</a>%2Frae%2Fghc%2F-<br>
| %2Fjobs%2F16913&amp;data=02%7C01%7Csimonpj%<a href="http://40microsoft.com" rel="noreferrer" target="_blank">40microsoft.com</a>%7C375c6daea23444<br>
| 7c3d2808d682314861%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C63683954552<br>
| 1260172&amp;sdata=wM0hlN60tQmsDtsXS%2BIqLzeAqhgK6RmUoEDzYG2b%2FhI%3D&amp;re<br>
| served=0<br>
| <br>
| _______________________________________________<br>
| ghc-devs mailing list<br>
| <a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
| <a href="https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.haske" rel="noreferrer" target="_blank">https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.haske</a><br>
| <a href="http://ll.org" rel="noreferrer" target="_blank">ll.org</a>%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-<br>
| devs&amp;data=02%7C01%7Csimonpj%<a href="http://40microsoft.com" rel="noreferrer" target="_blank">40microsoft.com</a>%7C375c6daea234447c3d2808d68<br>
| 2314861%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636839545521260172&amp<br>
| ;sdata=R2PHyXMyWDG4mmusi1KLmklGR0b%2FXAE%2BNp%2BwS4ZOmp8%3D&amp;reserved=0<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>