Skip to content

Commit 6907788

Browse files
author
Vasileios Karakasis
authored
Merge pull request #1625 from vkarak/feat/remove-depreated-attributes
[feat] Remove deprecated `pre_run`, `post_run`, `prebuild_cmd` and `postbuild_cmd` attributes
2 parents a3942ab + ad37ce0 commit 6907788

File tree

2 files changed

+4
-33
lines changed

2 files changed

+4
-33
lines changed

docs/migration_2_to_3.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ Other deprecations
171171
The :attr:`prebuild_cmd` and :attr:`postbuild_cmd` test attributes are replaced by the :attr:`prebuild_cmds` and :attr:`postbuild_cmds` respectively.
172172
Similarly, the :attr:`pre_run` and :attr:`post_run` test attributes are replaced by the :attr:`prerun_cmds` and :attr:`postrun_cmds` respectively.
173173

174+
.. warning::
175+
.. versionchanged:: 3.4
176+
The :attr:`prebuild_cmd`, :attr:`postbuild_cmd`, :attr:`pre_run` and :attr:`post_run` attributes have been removed.
174177

175178

176179
Suppressing deprecation warnings

reframe/core/pipeline.py

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import reframe.utility.udeps as udeps
3333
from reframe.core.backends import (getlauncher, getscheduler)
3434
from reframe.core.buildsystems import BuildSystemField
35-
from reframe.core.containers import ContainerPlatform, ContainerPlatformField
35+
from reframe.core.containers import ContainerPlatformField
3636
from reframe.core.deferrable import _DeferredExpression
3737
from reframe.core.exceptions import (BuildError, DependencyError,
3838
PipelineError, SanityError,
@@ -275,14 +275,6 @@ def pipeline_hooks(cls):
275275
#: :default: ``[]``
276276
prebuild_cmds = fields.TypedField('prebuild_cmds', typ.List[str])
277277

278-
#: .. deprecated:: 3.0
279-
#:
280-
#: Use :attr:`prebuild_cmds` instead.
281-
prebuild_cmd = fields.DeprecatedField(
282-
fields.TypedField('prebuild_cmds', typ.List[str]),
283-
"'prebuild_cmd' is deprecated; please use 'prebuild_cmds' instead"
284-
)
285-
286278
#: .. versionadded:: 3.0
287279
#:
288280
#: List of shell commands to be executed after a successful compilation.
@@ -295,14 +287,6 @@ def pipeline_hooks(cls):
295287
#: :default: ``[]``
296288
postbuild_cmds = fields.TypedField('postbuild_cmds', typ.List[str])
297289

298-
#: .. deprecated:: 3.0
299-
#:
300-
#: Use :attr:`postbuild_cmds` instead.
301-
postbuild_cmd = fields.DeprecatedField(
302-
fields.TypedField('postbuild_cmds', typ.List[str]),
303-
"'postbuild_cmd' is deprecated; please use 'postbuild_cmds' instead"
304-
)
305-
306290
#: The name of the executable to be launched during the run phase.
307291
#:
308292
#: :type: :class:`str`
@@ -352,14 +336,6 @@ def pipeline_hooks(cls):
352336
#: :default: ``[]``
353337
prerun_cmds = fields.TypedField('prerun_cmds', typ.List[str])
354338

355-
#: .. deprecated:: 3.0
356-
#:
357-
#: Use :attr:`prerun_cmds` instead.
358-
pre_run = fields.DeprecatedField(
359-
fields.TypedField('prerun_cmds', typ.List[str]),
360-
"'pre_run' is deprecated; please use 'prerun_cmds' instead"
361-
)
362-
363339
#: .. versionadded:: 3.0
364340
#:
365341
#: List of shell commands to execute after launching this job.
@@ -371,14 +347,6 @@ def pipeline_hooks(cls):
371347
#: :default: ``[]``
372348
postrun_cmds = fields.TypedField('postrun_cmds', typ.List[str])
373349

374-
#: .. deprecated:: 3.0
375-
#:
376-
#: Use :attr:`postrun_cmds` instead.
377-
post_run = fields.DeprecatedField(
378-
fields.TypedField('postrun_cmds', typ.List[str]),
379-
"'post_run' is deprecated; please use 'postrun_cmds' instead"
380-
)
381-
382350
#: List of files to be kept after the test finishes.
383351
#:
384352
#: By default, the framework saves the standard output, the standard error

0 commit comments

Comments
 (0)