Project

General

Profile

Updating the UPS Product » History » Version 12

Serdar Kurbanov, 09/02/2015 03:14 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 7 Serdar Kurbanov
0. Go to /nova/app/users/<user> without executing setup_nova
10 7 Serdar Kurbanov
> cd /nova/app/users/<user>
11 7 Serdar Kurbanov
12 3 Serdar Kurbanov
1. Make changes and commit it to trunk
13 9 Serdar Kurbanov
<pre>
14 9 Serdar Kurbanov
<changes changes changes...>
15 9 Serdar Kurbanov
svn commit <some_file.cc>
16 9 Serdar Kurbanov
</pre>
17 1 Martin Frank
18 1 Martin Frank
2. Checkout NOvA DDT release:
19 9 Serdar Kurbanov
<pre>
20 9 Serdar Kurbanov
svn co svn+ssh://p-novaddt@cdcvs.fnal.gov/cvs/projects/novaddt/novaddt.svn/trunk novaddt
21 9 Serdar Kurbanov
</pre>
22 1 Martin Frank
23 1 Martin Frank
3. Renaming version in trunk:
24 8 Serdar Kurbanov
<pre>
25 8 Serdar Kurbanov
cd <your build dir>/novaddt/ups
26 8 Serdar Kurbanov
chmod +x ups_product_tag.sh 
27 8 Serdar Kurbanov
./ups_product_tag.sh <new version> (example: ./ups_product_tag.sh v03_04_06)
28 8 Serdar Kurbanov
</pre>
29 1 Martin Frank
30 5 Serdar Kurbanov
4. Build mrb
31 5 Serdar Kurbanov
> mkdir <builddir>
32 5 Serdar Kurbanov
> cd <builddir>
33 5 Serdar Kurbanov
> . /grid/fermiapp/products/nova/externals/setup
34 5 Serdar Kurbanov
> setup mrb
35 5 Serdar Kurbanov
> export MRB_PROJECT=nova
36 5 Serdar Kurbanov
> mrb newDev -v <new version> -q e6:on:prof (example: mrb newDev -v v03_04_06 -q e6:on:prof)
37 5 Serdar Kurbanov
> source localProducts_nova_<new version>_e6_on_prof/setup (example: source localProducts_nova_v03_04_06_e6_on_prof/setup)
38 1 Martin Frank
> cd srcs
39 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)
40 6 Serdar Kurbanov
>> [
41 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
42 6 Serdar Kurbanov
>> useful commands:
43 6 Serdar Kurbanov
>> ups list -aK+ <package name> (example: ups list -aK+ <novaddtdeps>) - to list versions of that package available
44 6 Serdar Kurbanov
>> 
45 1 Martin Frank
>> ]
46 7 Serdar Kurbanov
> cd $MRB_BUILD
47 1 Martin Frank
> mrbsetenv
48 1 Martin Frank
> mrb i -j8 --tee
49 1 Martin Frank
50 9 Serdar Kurbanov
5. Test if new version works as intended
51 12 Serdar Kurbanov
<pre>
52 12 Serdar Kurbanov
cd <your build dir>
53 12 Serdar Kurbanov
. /grid/fermiapp/products/nova/externals/setup
54 12 Serdar Kurbanov
export PRODUCTS=<your build dir>/localProducts_nova_<new version>_e6_on_prof/:$PRODUCTS
55 12 Serdar Kurbanov
cd ddt_release_02.09.2015/product/
56 12 Serdar Kurbanov
setup novaddt <new version> -q e6:on:prof (example: setup novaddt v03_04_06 -q e6:on:prof)
57 12 Serdar Kurbanov
>> uncomment DDTGlobalConfiguration-FD.fcl after "# if using nova binary:"
58 12 Serdar Kurbanov
nova -c srcs/novaddt/DDTGlobalConfigurations/DDTGlobalConfiguration-FD.fcl
59 12 Serdar Kurbanov
</pre> 
60 1 Martin Frank
61 1 Martin Frank
62 1 Martin Frank
63 11 Serdar Kurbanov
h2. Deploying the Products
64 1 Martin Frank
65 5 Serdar Kurbanov
Install build to FD.
66 1 Martin Frank
67 12 Serdar Kurbanov
1. Get permissions to access *novadaq@novadaq-far-master* (if necessary, ask Martin). Ssh to FD server
68 12 Serdar Kurbanov
ssh novadaq@novadaq-far-master
69 12 Serdar Kurbanov
70 12 Serdar Kurbanov
2. Copy new build ot FD server
71 12 Serdar Kurbanov
rsync -avP localProducts_nova_v03_04_06_e6_on_prof/novaddt novadaq@novadaq-far-master:/ddt/externals/.
72 12 Serdar Kurbanov
73 11 Serdar Kurbanov
74 11 Serdar Kurbanov
3. Start changes in control room
75 11 Serdar Kurbanov
> (Make track of what you'r doing n ECL)
76 11 Serdar Kurbanov
> Stop run
77 11 Serdar Kurbanov
> DAQ config editor on Monitor1
78 11 Serdar Kurbanov
> Config is FarDetGlobalConfigP1
79 11 Serdar Kurbanov
> Change build version manually
80 11 Serdar Kurbanov
> Enter
81 11 Serdar Kurbanov
> Start new run