14print("AtlasBuildBranch not 24.0 or main. Exiting.")
15 sys.exit(0)
16
17
18 mserver = "cernmx.cern.ch"
19 mfrom = "no-reply@cern.ch"
20 mto = ["atlas-trt-offline-shifts@cern.ch","atlas-trt-expert-shifters@cern.ch"]
21 msubject = "ART test notification: TRT calibration Workflow for %s" % (AtlasBuildBranch)
22
23 status="*SUCCEEDED*"
24if jobStatus.ACCU != 0 or jobStatus.MERGE != 0:
25 status = "*FAILED*\n"
26 status += "\t- The TRT ACCU transform %s.\n" % ("*is broken*"if jobStatus.ACCU else"works")
27 status += "\t- The TRT MERGE transform %s." % ("*is broken*"if jobStatus.MERGE else"works")
28
29# assemble mail body
30 mbody = "Dear TRT expert/shifter\n\n"
31 mbody += " This email is generated by the ART test InnerDetector/InDetCalibAlgs/TRT_CalibAlgs/test/test_TRTCalibration.sh \n\n"
32 mbody += " The test has %s\n\n" % (status)
33 mbody += " For %s\n\n" % (AtlasRelease)
34 mbody += f" You can check the results in https://bigpanda.cern.ch/art/overview/?branch={AtlasBuildBranch}/Athena/{AthenaPlatform}&nlastnightlies=7&view=packages&test_type=local\n"
35 mbody += f" Outputs are in /eos/atlas/atlascerngroupdisk/data-art/local-output/{AtlasBuildBranch}/Athena/{AthenaPlatform}/{Atlasbuild}/\n\n"
36 mbody += "Cheers\n"
37 mbody += "\tYour amazing TRT Calibration test"
38
39 fullmsg = "To: %s\nSubject: %s\n\n%s" % ("".join(("%s," % str(_mto_)) for _mto_ in mto ), msubject, mbody)