Closed Bug 703266 Opened 11 years ago Closed 11 years ago

Mirror mozbase to m-c


(Testing :: Mozbase, defect)

Not set


(Not tracked)



(Reporter: ahal, Assigned: ahal)




(2 files)

As per discussion, we've decided that mirroring the mozbase repo to m-c is the best approach.

"Thank you all for the meeting.


- we agreed that mozbase and peptest will be mirrored to m-c.  We'll probably want to do this for many harnesses but can decide that on a case by case basis

- the general process:

 0. Bump version of the external resource (and release to PyPI if applicable).  This is important for a two reasons.  The first is sanity.  The second is so pegged versions accurately resolve to the software you want them to and there is no possibility of accidentally using the old mirrored version (or any other version, for that matter).

 1. resource is mirrored to mozilla-central and a patch created from the diff.  A script (e.g. may be used, or the git repo in m-c methodology, or this can be done by hand.  While we should have maintenance/update steps and people should use them, it really doesn't matter how the patch is generated as long as it is correct.

 2. Patch is posted to bugzilla for review.  On r+, the patch is landed.  The version bumping step should actually probably be acted on now instead of when I said it was.

- what to do about changes that should be upstreamed? If someone changes the harness on m-c...
   - firstly, they mostly shouldn't.  They should file a bug with a patch of which one of us is aware.  We    can then fix m-c and upstream simultaneously
   - we can (and probably should) look at the logs for mirrored resources before clobbering with an updated mirror.  If there are changes (though see above point), we can upstream them
   - and if we do wipe them, that means that someone didn't follow process.  Probably not a huge deal as random fixes to harness code (by not us) are uncommon.

- after peptest and mozbase pieces are mirrored to m-c, bugs should be filed and acted upon for the duplication of and

Assignee: nobody → ahalberstadt
Adds mozbase to m-c.

1) I didn't add mozdevice since nothing is using it (personally I'd rather just add it anyway)
2) I included Readmes and test files for the packages (maybe I shouldn't?)
see also

Also, please document somewhere on some wiki (e.g. the MozBase page) what you did and how you did it.  We will want to update this.
See Also: → 702832
Attachment #575297 - Flags: review?(jhammel)
Comment on attachment 575297 [details] [diff] [review]
Patch 1.0 - mirror mozbase to m-c

Well, I didn't audit this to make sure everything was there (I can, if desired), but this looks good to me.

Maybe in the future we should do reviews more like a filesystem tree of what is modified (i.e. from `tree`) and the revision of mozbase that was used.

Also, assuming this is landed, do we want to bump versions afterwards? Immediately before?  Not right now?  While its not really part of this bug, we should figure this out.
Attachment #575297 - Flags: review?(jhammel) → review+
If we do bump versions, then probably immediately before, otherwise we need to push a second change to m-c.
I think I agree. I guess in general if we stage things on try we should bump between then and the final push.  If we bump and push and have to back out we will get a ton of version changes that are unnecessary
Try run for c234b19ebf3e is complete.
Detailed breakdown of the results available here:
Results (out of 157 total builds):
    success: 145
    warnings: 9
    failure: 3
Builds available at
None of these warnings are caused by these patches.  If the patches on here and bug 703269 are final (I think there is a note needed per comment 2 on 703269) then I can land them on m-i tomorrow.  The peptests and mozbase are properly packaged by the makefiles and all seems well.  I was able to run the peptests using the mozbase and the peptest harness from the package, so I think we're good to land.
I uploaded a new patch on bug 703269 (

Note that there are two other commits that also got bundled in that patch, namely the other two on Nov. 22, 2011:
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
You need to log in before you can comment on or make changes to this bug.