General workflow q-test.
Definition at line 15 of file StandardTests.py.
◆ __init__()
Definition at line 18 of file StandardTests.py.
18 def __init__(self, ID: str, run: WorkflowRun, type: WorkflowType, steps: List[str], setup: TestSetup, extra_args: str =
"") ->
None:
19 if "maxEvents" not in extra_args:
20 if type == WorkflowType.MCPileUpReco
or run == WorkflowRun.Run4:
21 extra_args +=
" --maxEvents 5"
23 extra_args +=
" --maxEvents 20"
25 if type == WorkflowType.MCPileUpReco:
26 if "inputHITSFile" not in extra_args:
27 extra_args += f
" --inputHITSFile {input_HITS[run]}"
28 if "inputRDO_BKGFile" not in extra_args:
29 extra_args +=
" --inputRDO_BKGFile ../run_d*/myRDO.pool.root"
32 threads_argument =
'--multithreaded'
33 if setup.custom_threads
is not None:
34 threads = setup.custom_threads
39 (f
"ATHENA_CORE_NUMBER={threads} Reco_tf.py {threads_argument} --AMIConfig {ID}"
40 f
" --imf False {extra_args}")
42 self.output_checks = []
46 self.output_checks.
append(FrozenTier0PolicyCheck(setup,
"AOD", 60))
47 self.output_checks.
append(FrozenTier0PolicyCheck(setup,
"ESD", 20))
48 self.output_checks.
append(MetadataCheck(setup,
"AOD"))
50 self.digest_checks = []
51 if not setup.disable_output_checks:
52 self.digest_checks.
append(AODContentCheck(setup))
53 self.digest_checks.
append(AODDigestCheck(setup))
55 super().
__init__(ID, run, type, steps, setup)
◆ run_checks()
bool python.Test.WorkflowTest.run_checks |
( |
|
self, |
|
|
List[WorkflowCheck] |
performance_checks |
|
) |
| |
|
inherited |
Definition at line 197 of file Tools/WorkflowTestRunner/python/Test.py.
197 def run_checks(self, performance_checks: List[WorkflowCheck]) -> bool:
198 self.logger.
info(
"-----------------------------------------------------")
199 self.logger.
info(f
"----------- Post-processing of {self.ID} Test -----------")
203 for check
in self.digest_checks:
204 result = check.run(self)
and result
207 if not self.setup.disable_output_checks:
208 for check
in self.output_checks:
209 result = check.run(self)
and result
211 if self.setup.validation_only
or self.skip_performance_checks:
215 for check
in performance_checks:
216 result = check.run(self)
and result
◆ run_reference()
None python.Test.WorkflowTest.run_reference |
( |
|
self | ) |
|
|
inherited |
Definition at line 160 of file Tools/WorkflowTestRunner/python/Test.py.
160 def run_reference(self) -> None:
161 self.logger.
info(f
"Running reference in rel {self.setup.release_reference}")
162 self.logger.
info(f
"\"{self.command}\"")
164 self.reference_path.
mkdir(parents=
True, exist_ok=
True)
166 cmd = (f
"cd {self.reference_path};"
167 f
"source $AtlasSetup/scripts/asetup.sh {self.setup.release_reference} >& /dev/null;")
168 cmd += f
"TRF_NOECHO=1 {self.command} > {self.ID}.log 2>&1"
170 subprocess.call(cmd, shell=
True)
172 self.logger.
info(f
"Finished clean in rel {self.setup.release_reference}")
173 self.logger.
info(f
"\"{self.command}\"")
◆ run_validation()
None python.Test.WorkflowTest.run_validation |
( |
|
self | ) |
|
|
inherited |
Definition at line 175 of file Tools/WorkflowTestRunner/python/Test.py.
175 def run_validation(self) -> None:
176 self.logger.
info(f
"Running validation in rel {self.setup.release_validation}")
177 self.logger.
info(f
"\"{self.command}\"")
179 self.validation_path.
mkdir(parents=
True, exist_ok=
True)
181 cmd = f
"cd {self.validation_path};"
182 if self.setup.disable_release_setup
or not self.setup.release_validation:
184 elif "WorkDir_DIR" in environ:
185 cmake_build_dir = environ[
"WorkDir_DIR"]
186 cmd += (f
"source $AtlasSetup/scripts/asetup.sh {self.setup.release_validation} >& /dev/null;"
187 f
"source {cmake_build_dir}/setup.sh;")
189 cmd += f
"source $AtlasSetup/scripts/asetup.sh {self.setup.release_validation} >& /dev/null;"
190 cmd += f
"TRF_NOECHO=1 {self.command} > {self.ID}.log 2>&1"
192 subprocess.call(cmd, shell=
True)
194 self.logger.
info(f
"Finished validation in rel {self.setup.release_validation}")
195 self.logger.
info(f
"\"{self.command}\"")
◆ command
python.StandardTests.QTest.command |
◆ digest_checks
python.StandardTests.QTest.digest_checks |
◆ ID
python.Test.WorkflowTest.ID |
|
inherited |
◆ logger
python.Test.WorkflowTest.logger |
|
inherited |
◆ output_checks
python.StandardTests.QTest.output_checks |
◆ run
python.Test.WorkflowTest.run |
|
inherited |
◆ setup
python.Test.WorkflowTest.setup |
|
inherited |
◆ skip_performance_checks
python.Test.WorkflowTest.skip_performance_checks |
|
inherited |
◆ steps
python.Test.WorkflowTest.steps |
|
inherited |
◆ tag
python.Test.WorkflowTest.tag |
|
inherited |
◆ type
python.Test.WorkflowTest.type |
|
inherited |
The documentation for this class was generated from the following file: