Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCbPR2HD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
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 Core Software
LHCbPR2HD
Commits
05f726f9
Commit
05f726f9
authored
1 year ago
by
Ross John Hunter
Browse files
Options
Downloads
Patches
Plain Diff
lb-format
parent
663d6cf5
No related branches found
No related tags found
1 merge request
!267
[RTADPA Bandwidth tests]: Test feasibility of copying HLT2 output to read into sprucing test
Pipeline
#6486962
passed
1 year ago
Stage: check
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/BandwidthTestHandler.py
+17
-9
17 additions, 9 deletions
handlers/BandwidthTestHandler.py
with
17 additions
and
9 deletions
handlers/BandwidthTestHandler.py
+
17
−
9
View file @
05f726f9
...
...
@@ -517,22 +517,30 @@ class BandwidthTestHandler(BaseHandler):
if
options
==
"
Moore_hlt2_bandwidth
"
and
slot
==
"
lhcb-master
"
and
status
:
from
datetime
import
datetime
before_copy
=
datetime
.
now
()
full_stream_mdf
=
os
.
path
.
join
(
directory
,
'
tmp
'
,
'
MDF
'
,
"
hlt2_bw_testing__production__full.mdf
"
)
log
.
info
(
f
"
Trying to copy
{
full_stream_mdf
}
to eos. File size:
{
os
.
stat
(
full_stream_mdf
).
st_size
/
1e6
}
MB.
"
)
full_stream_mdf
=
os
.
path
.
join
(
directory
,
'
tmp
'
,
'
MDF
'
,
"
hlt2_bw_testing__production__full.mdf
"
)
log
.
info
(
f
"
Trying to copy
{
full_stream_mdf
}
to eos. File size:
{
os
.
stat
(
full_stream_mdf
).
st_size
/
1e6
}
MB.
"
)
publish
.
upload_eos_www
(
full_stream_mdf
,
os
.
path
.
basename
(
full_stream_mdf
),
baseurl
=
os
.
path
.
join
(
os
.
getenv
(
"
LHCBPR_WWW_EOS
"
),
"
UpgradeRateTest
"
)
)
log
.
info
(
f
"
Copied
{
full_stream_mdf
}
to eos. This took
"
+
str
(
datetime
.
now
()
-
before_copy
))
baseurl
=
os
.
path
.
join
(
os
.
getenv
(
"
LHCBPR_WWW_EOS
"
),
"
UpgradeRateTest
"
))
log
.
info
(
f
"
Copied
{
full_stream_mdf
}
to eos. This took
"
+
str
(
datetime
.
now
()
-
before_copy
))
log
.
info
(
"
Trying to copy to new directory...
"
)
before_second_copy
=
datetime
.
now
()
publish
.
upload_eos_www
(
full_stream_mdf
,
os
.
path
.
join
(
"
current_hlt2_output
"
,
os
.
path
.
basename
(
full_stream_mdf
)),
baseurl
=
os
.
path
.
join
(
os
.
getenv
(
"
LHCBPR_WWW_EOS
"
),
"
UpgradeRateTest
"
)
)
log
.
info
(
f
"
Copied
{
full_stream_mdf
}
to eos new directory. This took
"
+
str
(
datetime
.
now
()
-
before_second_copy
))
os
.
path
.
join
(
"
current_hlt2_output
"
,
os
.
path
.
basename
(
full_stream_mdf
)),
baseurl
=
os
.
path
.
join
(
os
.
getenv
(
"
LHCBPR_WWW_EOS
"
),
"
UpgradeRateTest
"
))
log
.
info
(
f
"
Copied
{
full_stream_mdf
}
to eos new directory. This took
"
+
str
(
datetime
.
now
()
-
before_second_copy
))
# Post GitLab MR feedback; a bit more complex as comparing to a reference build.
if
(
slot
in
[
...
...
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