Skip to content

Rhaptos Software Development

Personal tools
You are here: Home » Developer Blog » Jenn's DevBlog » serverdiff script

serverdiff script serverdiff script

Document Actions
Submitted by jenn. on 2005-06-07 12:59. DevelopmentMaintenance
Until recently, the "serverdiff" script has only been used to compare citadel with cnx. We keep needing something like it for other circumstances too, though, so I'm gradually upgrading it.
Ross and I brainstormed a few weeks ago about how the serverdiff and rollout scripts should behave, and what feature path they should take from their then-current state to get there. What serverdiff did in its ancestral state was:

  • Diff the Zope "Products" directory on cnx and citadel
  • Diff /etc/ and /usr/local/ on cnx and citadel, ignoring certain expected differences
  • Compare the Debian package lists on cnx and citadel
This was fine, as far as it went, for making sure citadel was in a pristine state between tests. But as soon as other people wanted to use it, it exhibited a few shortcomings. It depends on a couple of neighboring files, which means it can generally only be run from inside the CVS checkout. Its output gets extremely spammy for machines that aren't in close sync; for example, developers' desktop machines. Since they have many more packages installed than the servers, and the script doesn't allow you to skip any sections of the diffing, it's hard to distinguish signal from noise when diffing a dev instance against a server.

The main thing I need to make serverdiff a useful tool is a list of exactly what is significant to one of our Zope installs, so I can look specifically for those differences and ignore ones that only pertain to X11, or audio, or other desktop-specific packages. I think of this as the Holy Grail of systems knowledge for me, but it seems that it would also be useful to people installing RISA on their own systems. That list would be a list of Zope products, config items in /etc, installations in /usr/local/, and versions of system software required to make a RISA system.

My recent changes, checked into CVS, have at least caused serverdiff to take server and instance arguments. The output's still very messy if the servers differ greatly, but it's a start.

Re: serverdiff script

Posted by maxwell at 2005-06-08 16:28
Cool :-)
Developer Blog
« May 2008 »
Su Mo Tu We Th Fr Sa
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Categories:
Content (55)
Copyright (0)
Deep Code (3)
Development (193)
Markup (22)
Metadata (1)
Printing (7)
Style (9)
Testing (2)
Usability (6)