Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cms-analysis
General
DasAnalysisSystem
Core
Merge requests
!173
cleanup + temporary fix of CI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
cleanup + temporary fix of CI
bugfix/CI
into
migration
Overview
14
Commits
5
Pipelines
0
Changes
1
Merged
Patrick Louis S Connor
requested to merge
bugfix/CI
into
migration
8 months ago
Overview
14
Commits
5
Pipelines
0
Changes
1
Expand
The
.gitlab-ci.yml
file is updated:
the CMSSW installation is replaced with the CMake installation
the temporary version of the installer is updated (a final fix will be necessary in the future)
we stick at building with makefiles (Ninja may be reintroduced later)
parallelisation is fixed
the test of CI executables is currently disabled, as this requires CMSSW to produce a test sample
Edited
8 months ago
by
Patrick Louis S Connor
0
0
Merge request reports
Compare
migration
version 7
2b4b89c4
8 months ago
version 6
349cc982
8 months ago
version 5
56c65744
8 months ago
version 4
23d4ab33
8 months ago
version 3
95cf8a8a
8 months ago
version 2
995af296
8 months ago
version 1
995af296
8 months ago
migration (base)
and
version 3
latest version
ce05f5ab
5 commits,
8 months ago
version 7
2b4b89c4
4 commits,
8 months ago
version 6
349cc982
4 commits,
8 months ago
version 5
56c65744
4 commits,
8 months ago
version 4
23d4ab33
3 commits,
8 months ago
version 3
95cf8a8a
2 commits,
8 months ago
version 2
995af296
1 commit,
8 months ago
version 1
995af296
87 commits,
8 months ago
1 file
+
38
−
83
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
38
−
83
Options
image
:
gitlab-registry.cern.ch/ci-tools/ci-worker:cc7
before_script
:
-
source /cvmfs/cms.cern.ch/cmsset_default.sh
-
shopt -s expand_aliases
# allows aliases like cmsenv to be used
-
yum install -y openssl-devel python3 zsh
-
yum install -y cmake python3 zsh which libtirpc libicu libglvnd-glx pcre2-utf16 libXrender libSM glibc-devel zlib-devel git-lfs
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-el9-gcc13-opt/setup.sh
installation
_cmake
:
installation
:
stage
:
build
variables
:
GIT_STRATEGY
:
none
# Will be checked out by the installer
@@ -15,12 +12,12 @@ installation_cmake:
paths
:
-
Installer/
script
:
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-centos7-gcc12-opt/setup.sh
# Get the installer
-
git clone https://gitlab.cern.ch/lmoureau/Darwin.git -b feature/cmake Installer
# TODO
# Compile everything
(with ninja!)
-
cmake Installer -B build
-G Ninja
-DCORE_GIT_REPOSITORY="$CI_REPOSITORY_URL" -DCORE_GIT_TAG="$CI_COMMIT_REF_NAME"
# Compile everything
-
cmake Installer -B build -DCORE_GIT_REPOSITORY="$CI_REPOSITORY_URL" -DCORE_GIT_TAG="$CI_COMMIT_REF_NAME"
-
cmake --build build --target install -j
# TODO: doxygen
test_cmake
:
stage
:
test
@@ -31,52 +28,17 @@ test_cmake:
artifacts
:
when
:
always
paths
:
-
Installer/Core.build/bin/printDarwinSoftwareVersion
-
Installer/Core.build/test_report.xml
-
Installer/Core.build/Testing/Temporary/LastTest.log
reports
:
junit
:
Installer/Core.build/test_report.xml
script
:
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-centos7-gcc12-opt/setup.sh
-
cd Installer/Core.build
-
cd Installer
-
source tools/setup.sh
-
printDarwinSoftwareVersion
-
cd Core.build
-
ctest --output-junit test_report.xml -j$(nproc)
installation
:
stage
:
build
variables
:
GIT_STRATEGY
:
clone
tags
:
-
cvmfs
artifacts
:
paths
:
-
DAS/
script
:
-
yum install -y cmake3
# All the cd and mv gymnastics below is there to make sure install.sh
# picks up the version of Core we want to test.
# We start within a copy of the right version of Core. Rename it so we
# can move it more easily later.
-
REPO=$PWD
-
cd ..
-
mv $REPO $REPO.bak
# Create an empty dir with the same name so GitLab copies artifacts.
-
mkdir $REPO
-
cd $REPO
# Now get the installer and run it.
-
git clone https://gitlab.cern.ch/cms-analysis/general/DasAnalysisSystem/gitlab-profile.git DAS
-
cd DAS
-
./install.sh
-
cd CMSSW_*; cmsenv; cd ..
# Delete the Core fetched by the installer and replace it with our own.
-
rm -rf CMSSW_*/src/Core
-
mv $REPO.bak CMSSW_12_4_0/src/Core
# Finally compile everything.
-
cd CMSSW_*
-
scram b -j$(nproc)
# And generate the docs.
-
src/Core/CommonTools/doc/mkDoc
clang-format
:
stage
:
test
variables
:
@@ -85,39 +47,37 @@ clang-format:
-
cvmfs
allow_failure
:
true
script
:
-
cd DAS/CMSSW_*
-
cmsenv
-
echo $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
-
echo $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
-
git-clang-format --diff $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
-
git-clang-format --diff $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
-
"
[[
-z
\"
$(git-clang-format
-q
--diff
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME)
\"
]]"
analysis
:
retry
:
2
stage
:
test
variables
:
GIT_STRATEGY
:
none
tags
:
-
cvmfs
allow_failure
:
true
a
rtifacts
:
when
:
on_failure
paths
:
-
_test
script
:
-
TEST_FOLDER=$PWD/_test
-
|
(cd DAS/CMSSW_*/src/Core/Ntupliser/test
cmsenv
./mkFastSimTestSample.sh $TEST_FOLDER
./mk
Ntu
ple.sh $TEST_FOLDER
/mc $TEST_FOLDER/MINIAODSIMv2-DYToLL_M-50_13TeV_pythia8_cff-UL18.root yes
./mkNtuple.sh $TEST_FOLDER/
data
$TEST_FOLDER/MINIAODv2-DYToLL_M-50_13TeV_pythia8_cff-UL18.root
no)
-
find $TEST_FOLDER
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-centos7-gcc12-opt/setup.sh
-
source Installer/tools/setup.sh
-
Installer/Core/Ntupliser/test/runAnalysis.sh $TEST_FOLDER/mc $TEST_FOLDER/mc/ntuple.root yes
-
Installer/Core/Ntupliser/test/runAnalysis.sh $TEST_FOLDER/data $TEST_FOLDER/data/ntuple.root no
# TODO: first solve https://gitlab.cern.ch/cms-analysis/general/DasAnalysisSystem/Core/-/merge_requests/170
#analysis:
#
retry: 2
#
stage: test
# variables:
#
GIT_STRATEGY: none
#
tags:
#
- cvmfs
#
a
llow_failure: true
#
artifacts:
#
when: on_failure
#
paths:
#
- _test
# script:
#
-
TEST_FOLDER=$PWD/_test
#
- |
#
(cd DAS/CMSSW_*/src/Core/Ntupliser/test
#
cmsenv
#
./mk
FastSimTestSam
ple.sh $TEST_FOLDER
#
./mkNtuple.sh $TEST_FOLDER/
mc
$TEST_FOLDER/MINIAOD
SIM
v2-DYToLL_M-50_13TeV_pythia8_cff-UL18.root
yes
#
./mkNtuple.sh $TEST_FOLDER/data $TEST_FOLDER/MINIAODv2-DYToLL_M-50_13TeV_pythia8_cff-UL18.root no)
#
-
find $TEST_FOLDER
#
- source Installer/tools/setup.sh
#
- Installer/Core/Ntupliser/test/runAnalysis.sh $TEST_FOLDER/mc $TEST_FOLDER/mc/ntuple.root yes
#
- Installer/Core/Ntupliser/test/runAnalysis.sh $TEST_FOLDER/data $TEST_FOLDER/data/ntuple.root no
pages
:
stage
:
deploy
@@ -132,17 +92,12 @@ pages:
-
if
:
$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
tags
:
-
cvmfs
before_script
:
-
yum install -y zsh ghostscript
script
:
-
source /cvmfs/sft.cern.ch/lcg/releases/gcc/9.3.0-467e1/x86_64-centos7/setup.sh
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc9-opt/setup.sh
script
:
# TODO: first solve https://gitlab.cern.ch/cms-analysis/general/DasAnalysisSystem/Core/-/merge_requests/152
-
yum install -y ghostscript
-
export PATH=/cvmfs/sft.cern.ch/lcg/external/texlive/latest/bin/x86_64-linux:$PATH
-
doxygen --version
-
cd DAS/CMSSW_*
-
VERSION=$CI_COMMIT_SHA
CMSSW_BASE=$PWD
doxygen src/Core/CommonTools/doc/Doxyfile
doxygen Core/CommonTools/doc/Doxyfile
-
mv doc/html $OLDPWD/public
-
make -C doc/latex || cat doc/latex/refman.log
-
mv doc/latex/ $OLDPWD
Loading