en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

Sync bot crushing partial reviews

Open joaquinelio opened this issue 1 year ago • 6 comments

Hi @iliakan

I discovered this in the Spanish repo, but happens in the other repos too. ...

Previously, the bot used different branches for sync, closing the old PR and generating a new one over a new branch. Partial reviews were preserved in the closed PR.

Now, the bot closes the old PR but always uses the same branch, doing a force push on it that destroys any partial reviews.

joaquinelio avatar Aug 07 '24 13:08 joaquinelio

Hmm, I did not change bot behavior.

iliakan avatar Aug 07 '24 18:08 iliakan

Ok Maybe AI war started. Dont use my reasoning. Look at this:

This is my work 2 years ago. Bot closed it twice, I reopened it and continued working until I eventually merged

Screenshot_2024-08-07-16-34-43-341


Now the bot, AFTER closing it, did a force push erasing my commits

Screenshot_2024-08-07-16-51-35-345

joaquinelio avatar Aug 07 '24 20:08 joaquinelio

Hmm, I did not change bot behavior.

Sorry to tell you this, @iliakan The world bot vs human war started, in your repo.

Here, bot reverted my test change

Screenshot_2024-08-12-12-19-15-740

It is doing it regularly, with every new sync PR

Screenshot_2024-08-12-11-46-16-279

joaquinelio avatar Aug 12 '24 15:08 joaquinelio

So if you do the changes locally, does this kind of resolve the issue?

Trying to get if I need to do something.

P.S. Initially, the idea was that edits are done locally. I hope things work this way.

iliakan avatar Aug 12 '24 16:08 iliakan

Yes, I can avoid the issue easily.

, now that I know of it. Not a catastrophic bug anymore.


But the bot behavior is odd.

I have a bot-sync example from 2 years ago:

I made changes to the bot PR branch, online. The bot closed it. I reopened it and merged my changes, it worked as expected.

joaquinelio avatar Aug 12 '24 18:08 joaquinelio

Out of curiosity If local, I do my own merges so I dont need to search <<< === >>> manually.

Plus

if you use the bot's PR locally, you'll lose track of fast-forward modifications, meaning all inserted new text.

joaquinelio avatar Aug 12 '24 18:08 joaquinelio