Coder Social home page Coder Social logo

Synchronization broken? about ocb HOT 29 CLOSED

gurneyalex avatar gurneyalex commented on August 22, 2024
Synchronization broken?

from ocb.

Comments (29)

pedrobaeza avatar pedrobaeza commented on August 22, 2024

Hi @gurneyalex, that it's because there is no synchronization at all. We let the debate about what is the best strategy to do: replay commits or rebase, and we didn't conclude anything. I think it's time for retake this question.

from ocb.

gurneyalex avatar gurneyalex commented on August 22, 2024

ah ok. I had assumed this had been dealt with in july while I was on holiday 😎

from ocb.

hbrunn avatar hbrunn commented on August 22, 2024

I think I'll just start doing this with replays, and if we notice this screws up everything later, it should be simple to switch to the rebase approach. So if nobody comes up with good reasons why that's the source of all evil in the world, I'm going to do it next Monday.

from ocb.

hbrunn avatar hbrunn commented on August 22, 2024

I made a script on OCA/maintainer-tools#35 for the replay process. Today, I experimented a bit with rebases but that didn't work the way I wanted. The script as it is works for 8.0 without doing anything, for 7.0 there are 4 very trivial conflicts and one somewhat trivial conflict to resolve by hand.
The result of this can be reviewed in the *-odoo-synced branches on https://github.com/hbrunn/OCB

from ocb.

gurneyalex avatar gurneyalex commented on August 22, 2024

@hbrunn there is a leftover trivial merge conflict in the 7.0-synced branch in addons/account_voucher/account_voucher.py

from ocb.

pedrobaeza avatar pedrobaeza commented on August 22, 2024

There is also another question: ¿how do we get and integrate specific 7.0 OCB revisions that are not on 8.0?

from ocb.

clonedagain avatar clonedagain commented on August 22, 2024

so, I think Odoo merges 7.0 into master regularly, maybe they will also merge 7.0 into 8.0 ?
If they do, probably you'll be able to simply merge OCB/7.0 into OCB/8.0 too.

from ocb.

pedrobaeza avatar pedrobaeza commented on August 22, 2024

@clonedagain Yeah, I think so. It can be the solution.

@OCA board members, are you going to host sync script in any place?

from ocb.

gurneyalex avatar gurneyalex commented on August 22, 2024

On 10/09/2014 11:36, Pedro M. Baeza wrote:

@clonedagain https://github.com/clonedagain Yeah, I think so. It can
be the solution.

@OCA https://github.com/OCA board members, are you going to host
sync script in any place?


Reply to this email directly or view it on GitHub
#44 (comment).

There's an ongoing purchase request made. I'll double check its status
with @jgrandguillaume

Alexandre Fayolle
Chef de Projet
Tel : + 33 (0)4 79 26 57 94

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com

from ocb.

hbrunn avatar hbrunn commented on August 22, 2024

I just created a github user called oca-git-bot: https://github.com/OCA-git-bot/OCB. Here I also did the initial conflict resolving. My proposal is to review that and merge it into OCA/OCB

On one of Therp's servers, this user will run the ocb-sync script every night and push to OCA-git-bot/OCB. As soon as we are convinced that this works as it should, we can have the bot commit to OCA/OCB and we're done. The only thing left to do then is to add the git bot to the project's commiters.

I'll be happy to provide the password to every OCA board member interested (please provide your GPG key then)

from ocb.

pedrobaeza avatar pedrobaeza commented on August 22, 2024

It looks good! Let's see how it works for a couple of weeks. Have you tried to merge 7.0 into 8.0?

from ocb.

hbrunn avatar hbrunn commented on August 22, 2024

not yet

from ocb.

hbrunn avatar hbrunn commented on August 22, 2024

Tonight for example, we had another conflict. Output looks like this then:

Fetching origin
Fetching odoo
From github.com:/odoo/odoo
   f2cf6ce..875d7ed  7.0        -> odoo/7.0
   fba1f63..87d458f  8.0        -> odoo/8.0
   bfc98d8..162ec90  master     -> odoo/master
   2684b7d..abba7aa  saas-3     -> odoo/saas-3
Switched to and reset branch '8.0'
Branch 8.0 set up to track remote branch 8.0 from origin.
Already up-to-date.
Updating fba1f63..87d458f
Fast-forward
 addons/point_of_sale/point_of_sale_view.xml        |    3 ++-
 addons/report_webkit/__openerp__.py                |    2 +-
 addons/report_webkit/webkit_report.py              |    3 +++
 addons/stock/stock.py                              |   16 +++++++----
 addons/web/static/src/css/base.css                 |   15 ++---------
 addons/web/static/src/css/base.sass                |   11 ++------
 addons/web/static/src/js/chrome.js                 |    1 +
 addons/web/static/src/xml/base.xml                 |   15 +++++------
 addons/website/static/src/js/website.editor.js     |    2 +-
 .../website_blog/views/website_blog_templates.xml  |    2 +-
 addons/website_forum/views/website_forum.xml       |   17 +++++-------
 openerp/fields.py                                  |   12 ++++++---
 openerp/models.py                                  |   28 +++++++++++++++-----
 13 files changed, 67 insertions(+), 60 deletions(-)
To [email protected]:/OCA-git-bot/OCB.git
   fba1f63..87d458f  8.0 -> 8.0
Branch 8.0 set up to track remote branch 8.0 from origin.
Switched to and reset branch '7.0'
Branch 7.0 set up to track remote branch 7.0 from origin.
Already up-to-date.
Auto-merging addons/web/static/src/js/data.js
Auto-merging addons/survey/wizard/survey_answer.py
Auto-merging addons/stock/wizard/stock_return_picking.py
Auto-merging addons/hr_expense/hr_expense.py
CONFLICT (content): Merge conflict in addons/hr_expense/hr_expense.py
Automatic merge failed; fix conflicts and then commit the result.

So I could simply go to the bot's account on our server, fix the conflict and push it, which I did just now.

from ocb.

pedrobaeza avatar pedrobaeza commented on August 22, 2024

OK, these are the steps I see now:

  • Get OCA server for hosting the syncronization script.
  • Merge 7.0 branch on 8.0 branch. See if it can be done and resolve conflicts.
  • Choose a PSC team for following this project.
  • Prepare the script for sending an email to these PSC members.
  • Run script!

What do you think, @gurneyalex and rest of the OCA board members?

from ocb.

hbrunn avatar hbrunn commented on August 22, 2024

Is the first step a blocking one? I think Therp is more than happy to keep doing this for the time being

from ocb.

hbrunn avatar hbrunn commented on August 22, 2024

I just tried the merge and we get a lot of conflicts we don't want here. Thinking it through, that's also not what we want to do. We want to merge the missing commits between OCB/7.0 and odoo/7.0 into OCB/8.0.

I also think this is a problem we can better postpone until the sync process is implemented. My proposal of steps:

  • PR oca-git-bot/OCB/* to OCA/OCB/*
  • Review the commits that resolve conflicts
  • Merge them in OCB/*
  • Choose a PSC team for following this project.
  • Prepare the script for sending an email to these PSC members. (have out cron job output to this team)
  • Run script!

from ocb.

clonedagain avatar clonedagain commented on August 22, 2024

We want to merge the missing commits between OCB/7.0 and odoo/7.0 into OCB/8.0.
I think you can do that with git rebase then, but you'll have conflicts no matter what, won't you?

from ocb.

pedrobaeza avatar pedrobaeza commented on August 22, 2024

@hbrunn, I agree. Let's start with the PR, start with the synchronization in Therp's servers, and wait until OCA organizes the rest of the things.

from ocb.

rvalyi avatar rvalyi commented on August 22, 2024

@pedrobaeza @hbrunn agree: these kind of synchronizations aren't large piece of infrastructure, it's not like if that would put a lock in on OCB, so we can perfectly delay doing the sync' on an OCA server and do the important steps before.

from ocb.

StefanRijnhart avatar StefanRijnhart commented on August 22, 2024

@hbrunn Agree.

from ocb.

pedrobaeza avatar pedrobaeza commented on August 22, 2024

I've just updated manually 8.0 OCB branch to be at "final" state label. When do we start the synchronization?

@StefanRijnhart, have we got any list of commits which OCB 7.0 branch differs from official one?

from ocb.

StefanRijnhart avatar StefanRijnhart commented on August 22, 2024

@pedrobaeza: for addons and web, you can extract that by modifying http://bazaar.launchpad.net/~therp-nl/lp-community-utils/replay_ocb2git/view/head:/ocb2git.py to just list the missing commits.

For server, that is not possible due to the push overwrite which happened by accident during the 7.0 live cycle. You'll have to take the patch, which is not unmanageably large.

from ocb.

pedrobaeza avatar pedrobaeza commented on August 22, 2024

OK, I'll start to work on these changes to be applied in 8.0 branch. Can you please activate the synchronization script?

Thanks.

from ocb.

hbrunn avatar hbrunn commented on August 22, 2024

Before we can do that, please review #51. And one of the OCA admin would have to add oca-git-bot to the OCA members for the push permissions.

from ocb.

StefanRijnhart avatar StefanRijnhart commented on August 22, 2024

Initial merge #51 has been applied to the 7.0 main branch. I have invited @OCA-git-bot to the OCB maintainers team, so that @hbrunn can set up automatic synchronization for OCB 7.0 and 8.0.

from ocb.

pedrobaeza avatar pedrobaeza commented on August 22, 2024

Thanks, @StefanRijnhart! Now I'm examining the diff commits between odoo/7.0 and OCB/7.0 to move them to 8.0 branch, and I'll propose a methodology. I think we can keep this issue open for that discussion, or may I open a new one?

from ocb.

OCA-git-bot avatar OCA-git-bot commented on August 22, 2024

Thanks Pedro! Please open a new issue for that.

from ocb.

pedrobaeza avatar pedrobaeza commented on August 22, 2024

OK, I have opened #52 for that and I'm closing this one.

from ocb.

hbrunn avatar hbrunn commented on August 22, 2024

Last night we got the first run with the bot committing into the OCB branches. Everything went fine and 7.0 as well as 8.0 are up to date now.

from ocb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.