This is all for the old BATLab (nmi-s00*.cs.wisc.edu). For the new BATLab (submit-*.batlab.org), see BatLabBuild.

Building HTCondor in NMI

Resubmitting last night's builds, or one-off nightlys

See ResubmitLastNightsBuilds for a one-off reusing last night's tag, or using a new tag.

Building a branch in NMI

Significant new features should be committed into the git repository on their own branch, and this branch should successfully build and pass all regression tests on all supported platforms before the code is merged back into the master branch.

WARNING As of 2010-05-12, NMI pulls its repository from the public HTCondor repository (http://condor-git.cs.wisc.edu/repos/condor.git). As such, it only includes public branches. Thus, random other working branches will not generally be available, and the following will not work.

Step-by-step instructions:

  1. Log into nmi-s006.cs.wisc.edu (get an account if necessary).
  2. Become the cndrauto user. Hint: you probably have sudo access, from there su - cndrauto.
  3. As the cndrauto user, run git fetch to update the git repo on nmi-s006.cs.wisc.edu from the latest copy on the central repository. Make sure that /prereq/bin (where git is found on nmi-s006.cs.wisc.edu) is in your PATH.
       % sudo su - cndrauto
       % git --git-dir=/space/git/CONDOR_SRC.git fetch
    
    If you just made a tag or pushed a commit you want to build, check that it has made it through the pubic git repository to the local one.
       % git --git-dir=/space/git/CONDOR_SRC.git log origin/V7_4-branch
    
    If you don't see your tag or commits, wait a few minutes, then retry the git fetch command.
  4. Exit back to your real login.
       % exit
    
  5. Submit the build as yourself. Assuming the branch you want to build is V7_4-branch, you'd do the following:

Some notes:

Building a HTCondor workspace in NMI

Here is a common scenario: You would like to do a build on some platform or set of platforms in order to ensure that you haven't broken the build process. What are your options? You could check in the code and wait for the nightly builds, but you may well break the build and receive fifty lashes with a wet noodle. A better solution is to not check in your code, but use NMI to build it on any platform that you like.

Before you start, make sure that you have an account on nmi-s006.cs.wisc.edu. You also need to be in the cndr-cvs group. NMI staff can set you up with both.

This assumes that the changes you want to test are checked into your local git repo in a branch named feature-branch. (Another option is to scp your workspace to nmi-s006.cs.wisc.edu.)

Here's how it works:

From your usual machine,

  % ssh nmi-s006.cs.wisc.edu mkdir workspace
  % cd path-to-git-dir
  % git archive feature-branch | ssh nmi-s006.cs.wisc.edu cd workspace \&\& tar xf -

If you don't have a feature-branch and want to build your workspace as is, use the following.

  % ssh nmi-s006.cs.wisc.edu mkdir workspace
  % cd path-to-git-dir
  % tar cf - * | ssh nmi-s006.cs.wisc.edu cd workspace \&\& tar xf -

Then, log into nmi-s006.cs.wisc.edu, and run the following commands

  % PATH=/prereq/bin:$PATH
  % cd workspace
  # Note: this next git line is no longer necessary on the current (7.7.x) master
  % git --git-dir=/space/git/CONDOR_DOC.git archive origin/master | tar xf -
  % cd nmi_tools
  % ./condor_nmi_submit --build --git --workspace=../ --notify-fail-only --use-externals-cache --desc="A Description"

Note that you probably only need the git archive operation the first time you do this.

Some important options:

The script has a couple of other options. run condor_nmi_submit without options for a summary.

Platforms

If you don't know what platforms to use, you may view the NMI pool status page (select a host link for more information about installed prerequisite software) or use the /nmi/bin/nmi_condor_status command. It's best to make your terminal window wide and use the -ww option to get the most output. For example:

  % nmi_condor_status -ww
  vm1@nmi-build14.cs.wisc.edu  | ppc_aix_5.2     | Claimed   | Busy       |     06:05:338 | cndrauto@cs.wisc.ed| 11358
  vm2@nmi-build14.cs.wisc.edu  | ppc_aix_5.2     | Claimed   | Busy       |     02:11:690 | cndrauto@cs.wisc.ed| 11360
  nmi-hpux                     | hppa_hpux_B.10.2| Unclaimed | Idle       |     02:15:906 | (None)             | (None)
  vm1@nmi-build34.cs.wisc.edu  | irix_6.5        | Unclaimed | Idle       |     03:45:272 | (None)             | (None)
  vm2@nmi-build34.cs.wisc.edu  | irix_6.5        | Unclaimed | Idle       |     03:45:270 | (None)             | (None)
  vm1@nmi-irix.cs.wisc.edu     | irix_6.5        | Unclaimed | Idle       |     02:05:323 | (None)             | (None)
  vm2@nmi-irix.cs.wisc.edu     | irix_6.5        | Unclaimed | Idle       |     02:05:309 | (None)             | (None)
  ...
  vm2@nmi-build29.cs.wisc.edu  | sun4u_sol_5.8   | Claimed   | Busy       |   1+04:31:191 | cndrauto@cs.wisc.ed| 11328
  vm1@nmi-0050.cs.wisc.edu     | sun4u_sol_5.9   | Unclaimed | Idle       |         35:21 | (None)             | (None)
  vm2@nmi-0050.cs.wisc.edu     | sun4u_sol_5.9   | Unclaimed | Idle       |         35:21 | (None)             | (None)
  nmi-build18                  | sun4u_sol_5.9   | Claimed   | Busy       |     06:26:157 | cndrauto@cs.wisc.ed| 11357
  vm1@nmi-solaris10.cs.wisc.edu| sun4u_sol_5.9   | Claimed   | Busy       |     11:04:270 | cndrauto@cs.wisc.ed| 11350
  vm2@nmi-solaris10.cs.wisc.edu| sun4u_sol_5.9   | Claimed   | Busy       |     15:18:113 | cndrauto@cs.wisc.ed| 11336
  janet.cs.wisc.edu            | x86_winnt_5.1   | Unclaimed | Idle       |     03:34:209 | (None)             | (None)

Testing a HTCondor NMI workspace build in NMI

Assuming you're still in the nmi_tools subdirectory of your workspace, and that your build with runid 1234 is completed, you can submit a test run with the following:

  % ./condor_nmi_submit --test --platforms=all \
    --buildid=1234 \
    --desc="Description of this build" --workspace=../

Checking your build's status

The NMI job status page is at http://nmi-s006.cs.wisc.edu/nmi/?page=results/overview. There's a HTCondor-specific page at http://nmi-s006.cs.wisc.edu/results/Run-condor.php.

Extracting your binaries

To extract the binaries from the builds, use nmi_tools/condor_nmi_extract. The script writes to ./cache and ./public -- and will create these directories if they don't already exist. The cache is to maintain a list of things that it's already extracted from, so if you run it again, it won't do unnecessary work. Run the python in /prereq/Python-2.6.2/bin (put it in the front of your path). Use condor_nmi_extract -h to get help.