Project

General

Profile

Updating the UPS Product » History » Version 6

Serdar Kurbanov, 09/02/2015 02:06 PM

1 1 Martin Frank
h1. Updating the UPS Product
2 1 Martin Frank
3 1 Martin Frank
This page describes how to build a new version of the novaddt UPS product together with the packages that it depends on and how to roll these new products out on the detectors.
4 1 Martin Frank
5 1 Martin Frank
h2. Building the Products
6 1 Martin Frank
7 2 Serdar Kurbanov
Here's how to build NOvA DDT products
8 2 Serdar Kurbanov
9 3 Serdar Kurbanov
1. Make changes and commit it to trunk
10 6 Serdar Kurbanov
> <changes changes changes...>
11 6 Serdar Kurbanov
> svn commit <some_file.cc>
12 1 Martin Frank
13 3 Serdar Kurbanov
2. Checkout NOvA DDT release:
14 5 Serdar Kurbanov
> svn co svn+ssh://p-novaddt@cdcvs.fnal.gov/cvs/projects/novaddt/novaddt.svn/trunk novaddt
15 1 Martin Frank
16 1 Martin Frank
3. Renaming version in trunk:
17 5 Serdar Kurbanov
> cd <your build dir>/novaddt/ups
18 5 Serdar Kurbanov
> chmod +x ups_product_tag.sh 
19 5 Serdar Kurbanov
> ./ups_product_tag.sh <new version> (example: ./ups_product_tag.sh v03_04_06)
20 1 Martin Frank
21 5 Serdar Kurbanov
4. Build mrb
22 5 Serdar Kurbanov
> mkdir <builddir>
23 5 Serdar Kurbanov
> cd <builddir>
24 5 Serdar Kurbanov
> . /grid/fermiapp/products/nova/externals/setup
25 5 Serdar Kurbanov
> setup mrb
26 5 Serdar Kurbanov
> export MRB_PROJECT=nova
27 5 Serdar Kurbanov
> mrb newDev -v <new version> -q e6:on:prof (example: mrb newDev -v v03_04_06 -q e6:on:prof)
28 5 Serdar Kurbanov
> source localProducts_nova_<new version>_e6_on_prof/setup (example: source localProducts_nova_v03_04_06_e6_on_prof/setup)
29 1 Martin Frank
> cd srcs
30 1 Martin Frank
> svn co svn+ssh://p-novaddt@cdcvs.fnal.gov/cvs/projects/novaddt/novaddt.svn/tags/<new version>  novaddt (example: svn co svn+ssh://p-novaddt@cdcvs.fnal.gov/cvs/projects/novaddt/novaddt.svn/tags/v03_04_06  novaddt)
31 6 Serdar Kurbanov
>> [
32 6 Serdar Kurbanov
>> if there's a problem with some dependencies, say *novaddtdeps*, you'll need to do ... and then go back to *mrbsetenv* step
33 6 Serdar Kurbanov
>> useful commands:
34 6 Serdar Kurbanov
>> ups list -aK+ <package name> (example: ups list -aK+ <novaddtdeps>) - to list versions of that package available
35 6 Serdar Kurbanov
>> 
36 6 Serdar Kurbanov
>> ]
37 6 Serdar Kurbanov
> 
38 5 Serdar Kurbanov
39 5 Serdar Kurbanov
40 5 Serdar Kurbanov
41 5 Serdar Kurbanov
42 5 Serdar Kurbanov
43 3 Serdar Kurbanov
44 3 Serdar Kurbanov
45 2 Serdar Kurbanov
46 1 Martin Frank
h2. Deploying the Products