Patching a Branch

From genomewiki
Revision as of 23:54, 17 November 2007 by Hartera (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

How? ("Who" in parenthesis)

  1. (QA): Find an error in the binaries, determine if it needs to be patched, and alert the Developer.
  2. (Developer): Fix the error (and get a second opinion on your fix from another developer). Let the QA person know that it is fixed.
  3. (QA): Verify the developer's fix on hgwdev. Send email to Build-meister (cc'ing browser-qa and developer) with revision number of the fix and patch request (including an explanation of the problem and the fix and the CGIs that will be affected).
  4. (Build-Meister): Check the CVS log to make sure that you are making the correct change.
  5. (Build-Meister): Tell the program which file and version you want to change to. hgwbeta:/cluster/bin/build/scripts> vi PatchBranchFiles.conf Edit this file to include the file name and new version number like so: hg/$CGI/fileName.c 1.234
  6. (Build-Meister): Do a test run and verify that everything is set up correctly: hgwbeta:/cluster/bin/build/scripts/patchBranch.csh
  7. (Build-Meister): If it is correct, run it for real: hgwbeta:/cluster/bin/build/scripts/patchBranch.csh real
  8. (Build-Meister): Determine which CGIs are affected by this file change: hgwbeta:/usr/local/apache/cgi-bin> dependencies fileName.c
  9. (Build-Meister): Go to the current build: hgwbeta> cd $BUILDDIR
  10. (Build-Meister): Determine the current branch number. It will be the most recent directory that looks like "v---_branch". hgwbeta:/data/tmp/releaseBuild> ls -ltr
  11. (Build-Meister): Do a 'make' in the library directory, if necessary. If the file change was a lib file, then do a make in the corresponding lib directory: hgwbeta:/data/tmp/releaseBuild/vXYZ_branch/kent/src/hg/lib> make -or- hgwbeta:/data/tmp/releaseBuild/vXYZ_branch/kent/src/lib> make
  12. (Build-Meister): Do a 'make alpha' in the CGI directories that are impacted by the change: hgwbeta:/data/tmp/releaseBuild/vXYZ_branch/kent/src/hg/hgTracks> make alpha
  13. (Build-Meister): Reply to the email to the Developer and browser-qa that the tag has been moved and binaries made on hgwbeta.
  14. (QA): Test the change on hgwbeta.
  15. (QA): Reply to the email about the efficacy of the change.