Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lhcb-dpa
Analysis Productions
LbAPLocal
Commits
fc056b1f
Commit
fc056b1f
authored
Apr 26, 2022
by
Aidan Richard Wiederhold
Browse files
Generate xml catalog when taking an LFN as dependent input
parent
3ee50fe6
Pipeline
#3894265
passed with stage
in 5 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/LbAPLocal/testing.py
View file @
fc056b1f
...
...
@@ -112,6 +112,11 @@ def prepare_test(production_name, job_name, dependent_input=None):
if
"bk_query"
in
job_data
[
"input"
]
or
"transform_ids"
in
job_data
[
"input"
]:
if
dependent_input
is
not
None
:
prodrun_conf
[
"input"
][
"files"
]
=
[
dependent_input
]
if
"LFN:"
in
dependent_input
:
(
out_dir
/
"pool_xml_catalog.xml"
).
write_text
(
pool_xml_catalog
([
dependent_input
])
)
prodrun_conf
[
"input"
][
"xml_file_catalog"
]
=
"pool_xml_catalog.xml"
else
:
response
=
requests
.
post
(
f
"
{
LBAPI_HOST
}
/pipelines/lfns/"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment