Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
pylint
------
To run pylint as in gitlab CI:
  docker run -it --privileged -v /cvmfs:/cvmfs:shared,ro -v /afs:/afs:ro gitlab-registry.cern.ch/atlas-tdaq-software/tdaq_ci:centos7 bash
 Then inside the container:
  git clone https://gitlab.cern.ch/atlas-tdaq-software/CastorScript.git
  cd CastorScript
  source /afs/cern.ch/atlas/project/tdaq/cmake/cmake_tdaq/bin/cm_setup.sh nightly
  /cvmfs/sft.cern.ch/lcg/views/$TDAQ_LCG_RELEASE/$CMTCONFIG/bin/pylint $(find Script/ -name '*.py' -a -not -name config.py)
 To fetch uncommitted code:
  kinit flegoff@CERN.CH
  cp /afs/cern.ch/... ...

Point 1 Tests
-------------
Select an unassigned calibration machine (for example):
  https://atlasop.cern.ch/twiki/bin/view/Main/CalibrationFarm
Log in to P1
git clone https://:@gitlab.cern.ch:8443/atlas-tdaq-software/CastorScript.git
cd CastorScript/Test
./p1.test.user.bash pc-tdq-calib-XX

If you need to have an modified authorization file:
  source /sw/castor/script_setup.sh
  export CORAL_AUTH_PATH="$CORAL_AUTH_PATH:/path/to/CastorScript/coral/"
  python -u ../Script/CastorScript.py xxx.cfg

Cleanup after tests:
rm -rf /tmp/atlascdr
To clean EOS data_test, from lxplus as atlascdr:
  xrdfs eosatlas ls /eos/atlas/atlastier0/daq/test/data_test > datatest.ls
  for i in `cat datatest.ls`; do xrdfs eosatlas rm $i; done
  rm datatest.ls

Testbed
-------
git clone ssh://git@gitlab.cern.ch:7999/atlas-tdaq-software/CastorScript
cd CastorScript/Test
cp test_config.cfg xxx.cfg
mkdir -p /tmp/atlascdr/logs
vim xxx.cfg
  Change Keytab: None
  Change DdmMonitoringProxy: None
  Change email for mailinglogger
  Change CopyDir to a user EOS area
  Change StageHost: 'eosuser'
cm_setup nightly
export PATH="$LCG_INST_PATH/$TDAQ_LCG_RELEASE/xrootd/4.8.4/$CMTCONFIG/bin/:$PATH"
python -u ../Script/CastorScript.py xxx.cfg