Closed Bug 422302 Opened 16 years ago Closed 16 years ago

Set up MXR for mozilla-central

Categories

(mozilla.org Graveyard :: Server Operations, task)

task
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: justdave)

References

()

Details

Now that we're doing active development in mozilla-central we should have an official MXR instance for it. Timeless has set up an experimental one at http://mxr-test.landfill.bugzilla.org/mozilla-central/ which does almost exactly what we want. It has blame/log/raw links set up to point to mercurial, and a pull script from mercurial.

The only bug in the landfill version is that it is currently indexing the .hg metadata directory. This should be prevented, or else we end up with spurious search results.
hrm, i meant to fix it so that it wouldn't index .hg and .git directories, I thought I had pushed that. I've fixed it on swift (improved the code too), and I'll sync that tonight.
comment 1 means we need a new version of MXR deployed to production before we can put this in, I assume.
Assignee: server-ops → nobody
Component: Server Operations → Server Operations: Projects
I don't know... whatever it takes.
Blocks: 422754
Upping the priority on this..
Severity: normal → major
given this is higher priority, moving back to server-ops
Assignee: nobody → justdave
Component: Server Operations: Projects → Server Operations
Hardware: PC → All
timeless: what do I need to do to get your new Hg-capable version of MXR into production?  I'd prefer to have it in version control first (see bug 366155), but we're desperate enough right now we can probably get away with another tarball/patch deploy like we did last time.
Timeless sent me the code running on mxr-test.landfill and I have put it up at http://hg.mozilla.org/users/bsmedberg_mozilla.com/mxr/ revision 95c95aed0c15

I imported everything, configuration differences and all... and because it was sent as a zipfile, there may be some files which were symlinks and are now empty directories.
Is there a quickstart guide or something on how to use Hg that you all recommend? :)
http://developer.mozilla.org/en/docs/Mercurial has the basics. Feel free to ping me on IRC with questions.
fwiw, that does get reflected by another tree
http://mxr-test.landfill.bugzilla.org/mozillausers-central/source/bsmedberg_mozilla.com/mxr/

so you can see that most of the symlinks survived :)
OK, take 1 is at: http://mxr-stage.mozilla.org/mozilla-central/

Note that's quite likely the only root on mxr-stage that actually works right now.  This is basically a direct checkout of bsmedberg's repo with the mozilla-central config fixed to work on mxr-stage.  There's a whole mess of stuff in the config file (which is obviously off of landfill) which doesn't exist on mxr-stage, not to mention the paths are all wrong.

In order to move this onto the production mxr, the config is going to have to be merged with the existing production somehow.
Dave, is fulltext indexing supposed to work on that tree or not? It doesn't appear to:

http://mxr-stage.mozilla.org/mozilla-central/search?string=ns_stack_
(In reply to comment #12)
> Dave, is fulltext indexing supposed to work on that tree or not?

Yet another config difference from landfill.  The path to the glimpse binary was set wrong in the config.  I just fixed that.  Should work now.
mozilla-central now appears to work correctly on mxr-stage.
So here's the current state of this thing...

I got the config file merged with production last night, added a bunch of missing symlinks.  Got some help on IRC today with Hg and figured out how to commit, and committed my changes back.  Realized I forgot the index pages, and I'm working now on trying to make the index pages something sane (the stuff off landfill has lots of strange content that wouldn't be appropriate for production).

I should have *all* of the sourceroots working on mxr-stage at some point in the next hour or two, and then I think we'll need a day or so for people to poke at it before I move it to the production URL just to make sure nothing major is broken (perhaps announce an outage window?  Hate to just deploy it without warning people).
OK, not done yet.  Got the main index page completely revamped except for the list of sourceroots that are available and then fell asleep (one of the minor dangers of working on it at home instead of in the office).  Should have ther est of it shortly after church today.
We'll be pushing this into production during the Tuesday night outage window.
ok, This is in production now.  MXR itself needs some cleanup yet, but that's outside the scope of this bug, mozilla-central is now at http://mxr.mozilla.org/mozilla-central/
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.