cambrian_invader has quit [Ping timeout: 276 seconds]
cambrian_invader has joined #openocd
tsal has joined #openocd
tsal_ has quit [Ping timeout: 272 seconds]
alkane has quit [Ping timeout: 244 seconds]
alkane has joined #openocd
Hawk777 has joined #openocd
Hawk777 has quit [Quit: Leaving.]
alkane has quit [Quit: WeeChat 4.6.0]
nerozero has joined #openocd
Hawk777 has joined #openocd
PlasmaHH has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Haohmaru has joined #openocd
noarb- has quit [Ping timeout: 260 seconds]
noarb has joined #openocd
alkane has joined #openocd
JakeSays_ has joined #openocd
JakeSays has quit [Ping timeout: 276 seconds]
en-sc has joined #openocd
en-sc has quit [Remote host closed the connection]
en-sc has joined #openocd
en-sc has quit [Remote host closed the connection]
JakeSays has joined #openocd
JakeSays_ has quit [Ping timeout: 252 seconds]
<PlasmaHH>
PaulFertser: I am unsure on how to proceed with my rebased branch... if I were to just push it to review.openocd.org would it not create a new review item?
JakeSays_ has joined #openocd
JakeSays has quit [Ping timeout: 252 seconds]
<NishanthMenon>
PlasmaHH: the changeID ensures that the review is in sync
<NishanthMenon>
PlasmaHH: as long as you have'nt changed the ChangeID, the updates are reflected as a new revision
<PlasmaHH>
NishanthMenon: you mean its mention in the rebased commit(s)? when I add a commit should I put the change id there too?
<PlasmaHH>
NishanthMenon: yeah but it doesnt really talk about the situation I am in
<NishanthMenon>
PlasmaHH: if you have followed the steps, git rebase to master and incorporate all the review comments, you just git push it again to review.openocd.org - not sure what is the challenge there
<PlasmaHH>
NishanthMenon: the "challenge" is that I want to make sure that it gets to the existing change and not a new one will be created
<PlasmaHH>
(plus I do not want to accidentally destroy someones work if that is possible, like for my own git usage when I rebase and (force) push normally the history gets overwritten)
<PlasmaHH>
well before something with openocd that is ;)
<NishanthMenon>
yep - understood. it looks a bit too hard.. but it is'nt once you get used to it.. it is a completely different flow compared to, say using b4 in linux kernel or patman in u-boot flow
<NishanthMenon>
PlasmaHH: the key is to get the githooks sorted out and make sure new revision uses matching change-Id: tag
<PlasmaHH>
the thing is from my pov it currently seems possible to easily just destroy other peoples pending changes by pushing a new history that just consists of garbage so I want to make sure that I did not overlook something or need to make sure I dont accidentally destroy it ;)
<NishanthMenon>
lol.. if was possible, it would have already happened and we would have evolved into a new process.. the checks and balances are there. worst case, all you end up doing is to put in a duplicate review request..
<PlasmaHH>
yeah thats what I thought so I was wondering whats the thing that allows me to push the rebased branch of someone elses change ;)
<NishanthMenon>
i have picked up others internal patches as well since they were too busy to post upstream.. i have to dig it up.. but if i recollect it right, I have to sign-off as well, since i was posting it for review and i now own the deltas
<NishanthMenon>
i have however not updated an pre-existing review from someone else.. i have'nt tried that.. (I am guessing, i could file a new review with change-ID changed to generate a duplicate review, and to prevent confusion get the other person to abandon the person's change).. this I am not sure.. having never faced it
<PlasmaHH>
NishanthMenon: I tried donig the commit with the commit-msg hook and now the commit log entry has a different Change-ID
<NishanthMenon>
yes it would generate a new sha if change-Id does'nt exist.. if *you* have posted this patch before in review.openocd.org, then you can do a git commit --amend and use the previous change-id before pushing
<NishanthMenon>
sorry, gotta go.. meeting times for me..
<PlasmaHH>
yeah I need to collect my car too, maybe later
<NishanthMenon>
hope you get it sorted out.. ttyl
<PaulFertser>
PlasmaHH: nothing prevents you from pushing a new change of someone else but it's not too dangerous as Gerrit keeps all old revisions too.
<PaulFertser>
PlasmaHH: it's odd, how did you end up with a commit that didn't have message-id at all if you were rebasing a commit you downloaded from Gerrit?
<PlasmaHH>
PaulFertser: change-id you mean? not it has a new one... so what I did was pulling that change into a local branch, then rebasing it to the best of my abilities, then making a change so it compiles again, commit that (with the hooks, that then added a new change-id )
Deneb has joined #openocd
<PaulFertser>
PlasmaHH: so you ended up having two commits on top of current master?
<PlasmaHH>
yes
<PaulFertser>
PlasmaHH: then you just need to squash the last one into the first one and keep the Change-Id from the first I guess?
<PlasmaHH>
ah ok, lets try
<PaulFertser>
Why did you even commit the change to make it compile as a separate commit instead of --amend the previous one? Then you wouldn't need to squash.
<PlasmaHH>
PaulFertser: because thats how I normally do things in other projects, to distinguish my changes from what others did
<PaulFertser>
I usually look at "git log" and "git show" before pushing to Gerrit to make sure I have just the needed commits there. And they should all be buildable in the order you have in "git log", not just the last one.
<PlasmaHH>
there are so many git workflows and philosophies out there... from the "every commit needs to be perfect, build, tests run etc." to on the other end "merged branches into main/master should look good" ;)
<PaulFertser>
PlasmaHH: I see. But upstream isn't interested much in the history of the change, for the upstream history it's best when each individual commit can be built and tested (for bisectability) and should be doing just one thing. And if there's a known bug then it's best when it's not committed to upstream at all and a rewritten commit without that bug is used.
<PaulFertser>
PlasmaHH: OpenOCD normally aims at not having any notion of "merged branches" at all.
<PlasmaHH>
I am mostly working with projects that either take the whole branch history or squash at the point of merge ...
<PlasmaHH>
I could alternatively reset and amend instead of squashing
<PaulFertser>
I guess the end result is the same so whatever you prefer.
<PaulFertser>
But Gerrit should have the final squashed buildable result for each commit you push.
<PaulFertser>
So yes, guess it's the example of the first philosophy you outlined.
<PlasmaHH>
ok, here goes nothin..
<PaulFertser>
I do not like projects which keep the branch history, it clutters the log and also makes my "archeology" (aka git blaming) harder when I'm trying to understand what was introduced why.
<PaulFertser>
And I do not understand this autosquashing either, I guess history rewriting is best performed by the original author who knows what to squash what not to squash and what to keep from all the commit messages.
<PlasmaHH>
yeah it depends a lot on different factors, how often people commit/push how tight everything works together etc...
<PlasmaHH>
yeah any automatgic thing I try to precent ^^
<PlasmaHH>
prevent even
<PlasmaHH>
ok, now I just need to find a way around the company firewall to push this...
<PaulFertser>
http works
<PaulFertser>
You can make a password for that in Gerrit settings.
<PlasmaHH>
http or https ?
<PaulFertser>
HACKING details the process.
<PaulFertser>
It's actually HTTP over TLS so HTTPS, yes.
<PaulFertser>
But since TLS isn't mandatory part of the flow it's called just HTTP password in Gerrit settings.
<PlasmaHH>
crossing fingers... how long usually until jenkins runs?
<PlasmaHH>
ah it did
PlasmaHH has quit [Ping timeout: 252 seconds]
Haohmaru has quit [Quit: saionara]
nerozero has quit [Ping timeout: 248 seconds]
tlwoerner has joined #openocd
ALTracer has joined #openocd
pi0 has joined #openocd
ALTracer has quit [Ping timeout: 252 seconds]
ALTracer has joined #openocd
Deneb has quit [Quit: Leaving]
JakeSays_ is now known as JakeSays
ALTracer has quit [Read error: Connection reset by peer]