Opened 4 years ago

Last modified 21 months ago

#2821 reopened defect

Git(mode="copy", ..) doesn't work with multiple codebases

Reported by: kayhayen Owned by:
Priority: minor Milestone: 0.9.+
Version: 0.8.8 Keywords: git
Cc:

Description

Hello,

I am using multiple git repositories, some of which derive data from another. For instance, for a release, the changelog of the software is split into posts for the blog.

Another use case is to make performance measurements, and to commit the result in a performance web site git.

I would like to have:

Git(repo=repo1, workdir = w2, mode = "copy") Git(repo=repo2, workdir = w2, mode = "copy")

and then the ability to make ShellCommand?(workdir = w2, command = "xxx %s" % w1" )

so that build step scripts can work across repository boundaries.

Currently, I am working these limitations around by using git submodules, which scripts will automatically update, since git has no means to track branches of other repos as submodules.

To me, it would be cleaner, if these cross-repo scripts and builders were possible. Right now, I don't have an urgent need, as I believe submodules are workable, with the noise that the automatic submodule updates bring, it's not an optimal solution, and bears no flexibility. I cannot e.g. override from the outside the commit id values for these submodules.

Change History (7)

comment:1 Changed 4 years ago by dustin

  • Resolution set to worksforme
  • Status changed from new to closed

Buildbot's source steps are intended for checkouts, not for making new commits.

That said, you *can* use multiple Git steps, with codebases allowing you to have those steps use different sourcestamps.

The ticket title says "Cannot", but doesn't give any evidence of why you cannot. Please re-open if that's not working for you for some reason.

comment:2 Changed 4 years ago by dustin

  • Type changed from undecided to support-request

comment:3 Changed 4 years ago by dustin

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Ah! I just read the corresponding mailing-list thread (http://article.gmane.org/gmane.comp.python.buildbot.devel/10311)

The issue here is that Git's "copy" mode is not codebase-compatible, per http://article.gmane.org/gmane.comp.python.buildbot.devel/10314.

comment:4 Changed 4 years ago by dustin

  • Keywords git added
  • Milestone changed from undecided to 0.8.+
  • Type changed from support-request to defect

Apologies for my confusion.

comment:5 Changed 4 years ago by dustin

  • Summary changed from Cannot have multiple git steps to Git(mode="copy", ..) doesn't work with multiple codebases

comment:6 Changed 4 years ago by dustin

  • Milestone changed from 0.8.+ to 0.9.+

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.