Complete instructions to release Dirac and LHCbDirac project
LHCbDirac depends on DIRAC version. So if a new version of Dirac has to be released, then you should edit and commit in SVN the project.cmt associated to LHCbDirac.
You should also tag Dirac before starting the following procedure.
- to find out the dependencies between LHCbDirac and Dirac you can check the content of this file:
svn cat svn+ssh://svn.cern.ch/reps/dirac/LHCbDIRAC/trunk/LHCbDIRAC/releases.cfg
- to find out the tag for LHCbDirac, you can check the content of this file:
svn cat svn+ssh://svn.cern.ch/reps/dirac/LHCbDIRAC/trunk/LHCbDIRAC/versions.cfg
- if you need to edit project.cmt
svn co svn+ssh://yourself@svn.cern.ch/reps/dirac/LHCbDirac/trunk/cmt
vi cmt/project.cmt
svn ci cmt
- to perform some operations, you need a proxy.
SetupProject LHCbDirac
lhcb-proxy-init -g lhcb_admin
- Tag the version of Dirac with the following command if you need a new version of Dirac:
mkLHCbDirac_release.sh -D vXrYpZ
- Tag the version of LHCbDirac with the following command (where vArBpC is the number in releases.cfg):
mkLHCbDirac_release.sh -L vArBpC -t
- Install the new version on the VOBOXes
dirac-admin-sysadmin-cli -H my_machine.domain
- Change the version of the pilot if necessary in the CS. The name of the section is /Operations/DIRAC_SETUP/Pilot/Versions
- To install the client in DEV
- cd $LHCBDEV
- getpack -Pr Dirac vXrYpZ
- cd DIRAC/DIRAC_vXrYpZ
- ln -s ../etc
- make
- cd $LHCBDEV
- getpack -Pr LHCbDirac vArBpC
- cd LHCBDIRAC/LHCBDIRAC_vArBpC
- export CMTPROJECTPATH=${LHCBDEV}:${CMTPROJECTPATH}
- make
- to install in the release area
- cd $LHCBRELEASES
- if you need a new version of Dirac :
mkproject -p Dirac -v vXrYpZ -a ng
- copy the dirac.cfg from a previous version :
cp -r DIRAC/DIRAC_vXrY-1/etc DIRAC/DIRAC_vXrYpZ
- if you need a new version of Dirac, compile it :
mkproject -p Dirac -v vXrYpZ -a ct
-
mkproject -p LHCbDirac -v vArBpC -a ngct
- Compile for each other CMTCONFIG (x86_64-slc5-gcc43-opt, x86_64-slc5-gcc46-opt, i686-slc5-gcc43-opt)
mkproject -p Dirac -v vXrYpZ -a ct
mkproject -p LHCbDirac -v vArBpC -a ct
- Check installation before releasing it
./LHCBDIRAC/LHCBDIRAC_vArBpC/LHCbDiracSys/test/client_test.csh
- Remove the Subversion directories that do not need to be released
find LHCBDIRAC/LHCBDIRAC_vArBpC -name .svn | xargs rm -r
- Finish the installation
mkproject -p Dirac -v vXrYpZ -a xsrK
mkproject -p LHCbDirac -v vXrYpZ -a xsrK