Skip to content
Snippets Groups Projects
Commit 05f726f9 authored by Ross John Hunter's avatar Ross John Hunter
Browse files

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
......@@ -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 [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment