Closed Bug 816172 Opened 12 years ago Closed 12 years ago

implement gittool

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: catlee, Assigned: catlee)

References

Details

(Whiteboard: [git])

Attachments

(6 files, 3 obsolete files)

Just like hgtool, but for git!
Attachment #686180 - Flags: review?(rail)
catch and throw KeyboardInterrupt when looping through mirrors so we don't just move onto the next mirror on ctrl-c
Attachment #686180 - Attachment is obsolete: true
Attachment #686180 - Flags: review?(rail)
Attachment #686189 - Flags: review?(rail)
Comment on attachment 686189 [details] [diff] [review]
initial gittool implementation with tests

FTR, I reviewed the patch offline and catlee addressed all comments I had.
Attachment #686189 - Flags: review?(rail) → review+
Attachment #686189 - Flags: checked-in+
Attachment #686254 - Flags: review?(rail)
Attachment #686254 - Flags: review?(rail) → review+
Attachment #686254 - Flags: checked-in+
Attachment #686316 - Flags: review?(rail)
Attachment #686316 - Flags: review?(rail) → review+
actually include the packages.

diff --git a/modules/toplevel/manifests/slave/build.pp b/modules/toplevel/manifests/slave/build.pp
index 326eb88..9570553 100644
--- a/modules/toplevel/manifests/slave/build.pp
+++ b/modules/toplevel/manifests/slave/build.pp
@@ -16,6 +16,8 @@ class toplevel::slave::build inherits toplevel::slave {
     include packages::mozilla::git
     include packages::mozilla::py27_virtualenv
     include packages::mozilla::hgtool
+    include packages::mozilla::gittool
+    include packages::mozilla::retry
 
     ccache::ccache_dir {
         "/builds/ccache":
Attachment #686316 - Attachment is obsolete: true
Attachment #686567 - Flags: review?(rail)
Attachment #686567 - Flags: review?(rail) → review+
Attached patch gittool support for mozharness (obsolete) — Splinter Review
Attachment #687809 - Flags: review?(aki)
Comment on attachment 687809 [details] [diff] [review]
gittool support for mozharness

I think I said this earlier, still true:

We're re-using a lot here and could potentially share more code between the hgtool and gittool implementations.  However, I'm happy to have this patch land as is, and we can revisit that when we're less pressured for time.
Attachment #687809 - Flags: review?(aki) → review+
Depends on: 817741
attachment 686567 [details] [diff] [review] landed yesterday, but needs docs.

Is there any particular reason that these tools were dropped in /usr/local/bin, while tooltool is in /tools?
Attached patch Fix git.init()Splinter Review
gittool was failing in staging because it was trying to delete /builds/git-shared. There's no need to completely delete the directory when we're calling init, we just need to make sure it's empty.
Attachment #689420 - Flags: review?(rail)
Attachment #686567 - Flags: checked-in+
(In reply to Dustin J. Mitchell [:dustin] from comment #9)
> attachment 686567 [details] [diff] [review] landed yesterday, but needs docs.

Added docs for gittool/hgtool here:
https://wiki.mozilla.org/index.php?title=ReleaseEngineering%2FPuppetAgain%2FModules%2Fpackages&action=historysubmit&diff=492534&oldid=472709

> Is there any particular reason that these tools were dropped in
> /usr/local/bin, while tooltool is in /tools?

Having tools in the default path is really handy.
Attachment #689420 - Flags: review?(rail) → review+
Attachment #689423 - Flags: review?(rail) → review+
Attachment #689420 - Flags: checked-in+
Attachment #689423 - Flags: checked-in+
changes from last time:

- Change gittool/hgtool to look for {vcs}s_ prefixed configuration settings before looking for vcs_ (e.g. gittool_share_base vs vcs_share_base)
Attachment #687809 - Attachment is obsolete: true
Attachment #690602 - Flags: review?(aki)
Comment on attachment 690602 [details] [diff] [review]
gittool support for mozharness

I definitely want us to start looking at git_* and hg_* instead of gittool_* and hgtool_* at some point, but this looks good.
Attachment #690602 - Flags: review?(aki) → review+
Attachment #690602 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Depends on: 823361
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: