Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
LHCb
LHCb
Commits
c13658a4
Commit
c13658a4
authored
2 years ago
by
Gerhard Raven
Browse files
Options
Downloads
Patches
Plain Diff
add /cvmfs file-content-metada repo into stack of repos
parent
f0408760
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PyConf/python/PyConf/application.py
+14
-3
14 additions, 3 deletions
PyConf/python/PyConf/application.py
with
14 additions
and
3 deletions
PyConf/python/PyConf/application.py
+
14
−
3
View file @
c13658a4
...
...
@@ -172,8 +172,13 @@ def _commit_oid_to_branch(path, branch, branch_name, oid):
def
get_metainfo_repos
():
FILE_CONTENT_METADATA
=
"
/cvmfs/lhcb-condb.cern.ch/git-conddb/file-content-metadata.git
"
repo
=
os
.
environ
.
get
(
'
LHCbFileContentMetaDataRepo
'
,
None
)
if
repo
:
return
[
"
{}/.git
"
.
format
(
repo
)]
# TODO: allow a colon seperated list of repos!!!
# make sure the cvmfs repo is present (and last)
if
repo
:
return
[
"
{}/.git
"
.
format
(
repo
)]
+
(
[
FILE_CONTENT_METADATA
]
if
not
repo
.
startswith
(
'
/cvmfs
'
)
else
[])
cwd
=
os
.
getcwd
()
repo_name
=
"
{}/lhcb-metainfo/.git
"
.
format
(
cwd
)
...
...
@@ -887,7 +892,11 @@ def configure_input(options):
input_iohelper
=
IOHelper
(
options
.
input_type
,
options
.
output_type
or
None
)
# setupServices may create (the wrong) EventDataSvc, so do it first
setup_component
(
options
.
event_store
,
instance_name
=
'
EventDataSvc
'
)
extra_args
=
{
'
EvtStoreSvc
'
:
{
'
FollowAncestors
'
:
False
}}
setup_component
(
options
.
event_store
,
instance_name
=
'
EventDataSvc
'
,
**
extra_args
.
get
(
options
.
event_store
,
{}))
input_iohelper
.
setupServices
()
evtSel
=
input_iohelper
.
inputFiles
(
options
.
input_files
,
clear
=
True
)
evtSel
.
FirstEvent
=
options
.
first_evt
...
...
@@ -1216,11 +1225,13 @@ def plot_control_flow(top_node, filename='control_flow', extensions=('gv', )):
def
configured_ann_svc
(
name
=
'
HltANNSvc
'
,
repositories
=
get_metainfo_repos
(),
old_json
=
None
,
version
=
'
master
'
,
*
args
,
**
kwargs
):
from
Configurables
import
GitANNSvc
if
not
old_json
:
return
GitANNSvc
(
name
,
Repositories
=
repositories
,
*
args
,
**
kwargs
)
return
GitANNSvc
(
name
,
Repositories
=
repositories
,
Version
=
version
,
*
args
,
**
kwargs
)
dct
=
json
.
loads
(
old_json
)
_convert
=
lambda
cfg
,
keys
:
json
.
dumps
({
key
:
{
v
:
k
for
k
,
v
in
cfg
[
key
].
items
()
}
for
key
in
keys
.
intersection
(
cfg
.
keys
()
)
})
...
...
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