Derivations test.
Definition at line 200 of file StandardTests.py.
◆ __init__()
Definition at line 203 of file StandardTests.py.
203 def __init__(self, ID: str, run: WorkflowRun, type: WorkflowType, steps: List[str], setup: TestSetup, extra_args: str =
"") ->
None:
204 test_def = ID.split(
"_")
205 data_type = test_def[0].lower()
206 formats = [format.upper()
for format
in test_def[1:-1]]
209 if setup.custom_threads
is not None:
210 threads = setup.custom_threads
212 if "maxEvents" not in extra_args:
214 events = threads * base_events + 1
217 extra_args += f
" --maxEvents {events}"
218 format_flush =
", ".
join([f
"\"DAOD_{format}\": {flush}" for format
in formats])
219 extra_args += f
" --preExec 'flags.Output.TreeAutoFlush={{{format_flush}}}'"
220 if "inputAODFile" not in extra_args:
221 extra_args += f
" --inputAODFile {input_AOD[run][data_type]}"
225 (f
"ATHENA_CORE_NUMBER={threads} Derivation_tf.py"
226 f
" --formats {' '.join(formats)}"
227 " --multiprocess --multithreadedFileValidation True"
228 " --athenaMPMergeTargetSize 'DAOD_*:0'"
229 " --sharedWriter True"
230 " --outputDAODFile myOutput.pool.root"
231 f
" --imf False {extra_args}")
234 self.skip_performance_checks =
True
236 self.output_checks = []
237 for format
in formats:
238 self.output_checks.
append(FrozenTier0PolicyCheck(setup, f
"DAOD_{format}", 10))
239 self.output_checks.
append(MetadataCheck(setup, f
"DAOD_{format}"))
241 super().
__init__(ID, run, type, steps, setup)
◆ run_checks()
bool python.Test.WorkflowTest.run_checks |
( |
|
self, |
|
|
List[WorkflowCheck] |
performance_checks |
|
) |
| |
|
inherited |
Definition at line 198 of file Tools/WorkflowTestRunner/python/Test.py.
198 def run_checks(self, performance_checks: List[WorkflowCheck]) -> bool:
199 self.logger.
info(
"-----------------------------------------------------")
200 self.logger.
info(f
"----------- Post-processing of {self.ID} Test -----------")
204 for check
in self.digest_checks:
205 result = check.run(self)
and result
208 if not self.setup.disable_output_checks:
209 for check
in self.output_checks:
210 result = check.run(self)
and result
212 if self.setup.validation_only
or self.skip_performance_checks:
216 for check
in performance_checks:
217 result = check.run(self)
and result
◆ run_reference()
None python.Test.WorkflowTest.run_reference |
( |
|
self | ) |
|
|
inherited |
Definition at line 161 of file Tools/WorkflowTestRunner/python/Test.py.
161 def run_reference(self) -> None:
162 self.logger.
info(f
"Running reference in rel {self.setup.release_reference}")
163 self.logger.
info(f
"\"{self.command}\"")
165 self.reference_path.
mkdir(parents=
True, exist_ok=
True)
167 cmd = (f
"cd {self.reference_path};"
168 f
"source $AtlasSetup/scripts/asetup.sh {self.setup.release_reference} >& /dev/null;")
169 cmd += f
"TRF_NOECHO=1 {self.command} > {self.ID}.log 2>&1"
171 subprocess.call(cmd, shell=
True)
173 self.logger.
info(f
"Finished clean in rel {self.setup.release_reference}")
174 self.logger.
info(f
"\"{self.command}\"")
◆ run_validation()
None python.Test.WorkflowTest.run_validation |
( |
|
self | ) |
|
|
inherited |
Definition at line 176 of file Tools/WorkflowTestRunner/python/Test.py.
176 def run_validation(self) -> None:
177 self.logger.
info(f
"Running validation in rel {self.setup.release_validation}")
178 self.logger.
info(f
"\"{self.command}\"")
180 self.validation_path.
mkdir(parents=
True, exist_ok=
True)
182 cmd = f
"cd {self.validation_path};"
183 if self.setup.disable_release_setup
or not self.setup.release_validation:
185 elif "WorkDir_DIR" in environ:
186 cmake_build_dir = environ[
"WorkDir_DIR"]
187 cmd += (f
"source $AtlasSetup/scripts/asetup.sh {self.setup.release_validation} >& /dev/null;"
188 f
"source {cmake_build_dir}/setup.sh;")
190 cmd += f
"source $AtlasSetup/scripts/asetup.sh {self.setup.release_validation} >& /dev/null;"
191 cmd += f
"TRF_NOECHO=1 {self.command} > {self.ID}.log 2>&1"
193 subprocess.call(cmd, shell=
True)
195 self.logger.
info(f
"Finished validation in rel {self.setup.release_validation}")
196 self.logger.
info(f
"\"{self.command}\"")
◆ command
python.StandardTests.DerivationTest.command |
◆ digest_checks
python.Test.WorkflowTest.digest_checks |
|
inherited |
◆ ID
python.Test.WorkflowTest.ID |
|
inherited |
◆ logger
python.Test.WorkflowTest.logger |
|
inherited |
◆ output_checks
python.StandardTests.DerivationTest.output_checks |
◆ run
python.Test.WorkflowTest.run |
|
inherited |
◆ setup
python.Test.WorkflowTest.setup |
|
inherited |
◆ skip_performance_checks
python.StandardTests.DerivationTest.skip_performance_checks |
◆ 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: