Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Lawrence Davou Christopher
athena
Commits
5bbd088e
Commit
5bbd088e
authored
6 years ago
by
amete
Browse files
Options
Downloads
Patches
Plain Diff
Start versioning the CI reference files for the RunTier0Tests
parent
ee0f89c0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Tools/PROCTools/python/RunTier0Tests.py
+4
-3
4 additions, 3 deletions
Tools/PROCTools/python/RunTier0Tests.py
Tools/PROCTools/python/RunTier0TestsTools.py
+28
-0
28 additions, 0 deletions
Tools/PROCTools/python/RunTier0TestsTools.py
with
32 additions
and
3 deletions
Tools/PROCTools/python/RunTier0Tests.py
+
4
−
3
View file @
5bbd088e
...
...
@@ -12,6 +12,7 @@ import time
import
uuid
import
logging
import
glob
from
RunTier0TestsTools
import
ciRefFileMap
### Setup global logging
logging
.
basicConfig
(
level
=
logging
.
INFO
,
...
...
@@ -300,17 +301,17 @@ def RunFrozenTier0PolicyTest(q,inputFormat,maxEvents,CleanRunHeadDir,UniqID,RunP
clean_dir
=
CleanRunHeadDir
+
"
/clean_run_
"
+
q
+
"
_
"
+
UniqID
if
RunPatchedOnly
:
#overwrite
# Resolve the subfolder first. Results are stored like: main_folder/q-test/branch/.
# Resolve the subfolder first. Results are stored like: main_folder/q-test/branch/
version/
.
# This should work both in standalone and CI
subfolder
=
os
.
environ
[
'
AtlasVersion
'
][
0
:
4
]
# Use EOS if mounted, otherwise CVMFS
clean_dir
=
'
/eos/atlas/atlascerngroupdisk/data-art/grid-input/Tier0ChainTests/{0}/{1}
'
.
format
(
q
,
subfolder
)
clean_dir
=
'
/eos/atlas/atlascerngroupdisk/data-art/grid-input/Tier0ChainTests/{0}/{1}
/{2}
'
.
format
(
q
,
subfolder
,
ciRefFileMap
[
'
{0}-{1}
'
.
format
(
q
,
subfolder
)]
)
if
(
glob
.
glob
(
clean_dir
)):
logging
.
info
(
"
EOS is mounted, going to read the reference files from there instead of CVMFS
"
)
clean_dir
=
'
root://eosatlas.cern.ch/
'
+
clean_dir
# In case outside CERN
else
:
logging
.
info
(
"
EOS is not mounted, going to read the reference files from CVMFS
"
)
clean_dir
=
'
/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests/{0}/{1}
'
.
format
(
q
,
subfolder
)
clean_dir
=
'
/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests/{0}/{1}
/{2}
'
.
format
(
q
,
subfolder
,
ciRefFileMap
[
'
{0}-{1}
'
.
format
(
q
,
subfolder
)]
)
logging
.
info
(
"
Reading the reference file from location
"
+
clean_dir
)
...
...
This diff is collapsed.
Click to expand it.
Tools/PROCTools/python/RunTier0TestsTools.py
0 → 100644
+
28
−
0
View file @
5bbd088e
#!/usr/bin/env python
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
#####
# CI Reference Files Map
#####
# The top-level directory for the files is /eos/atlas/atlascerngroupdisk/data-art/grid-input/Tier0ChainTests/
# Then the subfolders follow the format test/branch/version, i.e. for q221 in 21.0 the reference files are under
# /eos/atlas/atlascerngroupdisk/data-art/grid-input/Tier0ChainTests/q221/21.0/v1 for v1 version
# Format is "test-branch" : "version"
ciRefFileMap
=
{
# qTestsTier0_required-test
'
q221-21.0
'
:
'
v1
'
,
'
q431-21.0
'
:
'
v1
'
,
'
q221-21.3
'
:
'
v1
'
,
'
q431-21.3
'
:
'
v1
'
,
# SimulationTier0Test_required-test
'
s3126-21.0
'
:
'
v1
'
,
'
s3126-21.3
'
:
'
v1
'
,
'
s3126-21.9
'
:
'
v1
'
,
'
s3126-22.0
'
:
'
v1
'
,
# OverlayTier0Test_required-test
'
overlay-d1498-21.0
'
:
'
v1
'
,
'
overlay-d1498-22.0
'
:
'
v1
'
,
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment