Skip to content
Snippets Groups Projects

[RTADPA Bandwidth tests]: Test feasibility of copying HLT2 output to read into sprucing test

Merged Ross John Hunter requested to merge rjhunter-chained-test-feasibility into master
1 file
+ 17
9
Compare changes
  • Side-by-side
  • Inline
@@ -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 [
Loading