Closed Bug 72505 Opened 23 years ago Closed 23 years ago

upgrade CVS servers to 1.10.8 or later

Categories

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

x86
Linux
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dmosedale, Assigned: scbrown)

References

Details

Attachments

(1 file)

As this should fix problem with the CVS server generating bogus paths that
mozilla developers run into all the time.
Moving to nobody.
Assignee: rko → nobody
Risto!  

Leaf said that they (staff, lounge, someone, something) had all of the custom
patches that were applied to cvs.mozilla.org.  If this is the case, upgrading
should be a no brainer.  If someone will sneak me into B21, I'll do it on Wednesday.

IC can own this again.
Assignee: nobody → rko
Whiteboard: IC_project
Severity: normal → major
Whiteboard: IC_project → AOL_IC_project
Depends on: 74711
Severity: major → normal
Whiteboard: AOL_IC_project
We will work with Chris to make this happen. Latest version is 1.11.1p1 which is 
what I'd put with CVS_USER patches.
Assignee: rko → scbrown
Hmmm, looking at 1.11.1p1 source code, and it seems like we might not need the 
patch because new versions have incorporated the feature we need (setting up 
CVS_USER variable correctly). Chris, could you verify?

server.c in 1.11.1p1:

#if HAVE_PUTENV
    /* Set LOGNAME, USER and CVS_USER in the environment, in case they
       are already set to something else.  */
    {
        char *env, *cvs_user;

        env = xmalloc (sizeof "LOGNAME=" + strlen (username));
        (void) sprintf (env, "LOGNAME=%s", username);
        (void) putenv (env);

        env = xmalloc (sizeof "USER=" + strlen (username));
        (void) sprintf (env, "USER=%s", username);
        (void) putenv (env);

        cvs_user = NULL != CVS_Username ? CVS_Username : "";
        env = xmalloc (sizeof "CVS_USER=" + strlen (cvs_user));
        (void) sprintf (env, "CVS_USER=%s", cvs_user);
        (void) putenv (env);
    }
#endif /* HAVE_PUTENV */
That sounds right; we bugged Jim Kingdon some more about this awhile ago and he
then landed the patch on the then-tip of CVS itself.  So this is probably the
result of that landing.
Can someone please look into this? Its really really annoying everytime I forget
to diff a patch against cvs-mirror instead of cvs.
So one problem I ran into with Myk today on cvs-mirror is that for new files
(diff -N), the path on the +++ line isn't the full path. Is this fixed in
versions newer than the one cvs-mirror is using?
ETA for the upgrade is 11/15/2001
The Perl script I just attached fixes patches that are affected by a bug in our
cvs servers where the "+++" and "---" lines of unified diffs contain an
incomplete directory path to new files or files in sub-directories.  After
running the script on your patches, apply them with the "-p0" option to patch.

Syntax: 

fixpatch [filename...]

(Without a filename argument, the script reads from STDIN and writes to 
STDOUT.)

Examples:

fixpatch patchfile                  -> Fixes the patch file.
fixpatch patchfile1 patchfile2      -> Fixes both patch files.
cvs diff -u | fixpatch > patchfile  -> Saves the fixed patch into a file.

The script does not touch files that are already in the appropriate format. 
Patching a file creates a backup file with the ".orig" extension.
The cvs clients on our other servers (gila, mothra, lounge, tegu) should be
upgraded to the same version at the same time.
Risto, what is the new date?
We're targeting for Friday 11/30 at 6pm PST. We can push clients to all systems 
same time to /opt/gnu/bin/cvs (and nuke all local modifications). If that 
Friday won't work then perhaps a week later (12/7/01).
To confirm, the plan is to upgrade the cvs servers located on the machines
thelizard and gila and to upgrade the cvs clients located on all machines
(thelizard, gila, lounge, mothra, tegu).

Friday, November 30 works for me.
Here's the draft plan (owner(s)):

a) notify CPD (seamonkey-internal) and mozilla developers. No later than       
   11/27/2001. (CPD/mozilla.org)
b) close the tree (mozilla.org). 
c) perform pre upgrade tests for reference (CPD/mozilla.org)
d) copy the repository to safe place so we can back out if necessary (IC)
e) copy the old "jail" so we can backout if necessary (IC)
f) replace the cvs binary (IC)
g) perform post upgrade tests (mozilla.org/CPD).

mozilla.org = myk?
CPD = granrose?

Any additions, comments?

Btw, I don't think we need conference call after all. Hopefully everything can 
be covered here.

Steve, have we verifed that all the patches in current version have been 
incorporated to 1.11.x?
I don't expect any problems, but just to ask the question: will this upgrade
cause any problems with interoperability with cvsserver.mcom.com?  This doesn't
require any client changes or the like, right?
Has the notifications to seamonkey-internal and mozilla.org lists/newsgroups
been sent? They should go out by COB today or this is off to next week.
We anticipate the upgrade to take an hour from IC standpoint: backup repository,
switch the binary, do our simple testing and turnover to mozilla organization
for further testing.  We'd like to reserve from 6pm to 7pm for our work.  If
mozilla organization needs to do any prep work or pre-testing please announce
the downtime appropriately as we'd like our part to begin at 6pm sharp...

We do not anticipate any negative impact or changes to be required on the
client side.  This should be a fairly straightforward upgrade.
I just sent out the notice.  The tree & cvs server are scheduled to be shutdown
from 5:30p to 9:00p on Friday.
Do we know if this fixes the "resurrecting dead files" problem?

(see bug http://bugzilla.mozilla.org/show_bug.cgi?id=76856)
Fixed 11/30/2001.
Status: NEW → RESOLVED
Closed: 23 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.

Attachment

General

Created:
Updated:
Size: