Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Nov 19, 2021

As indicated in #2268 the order of execution of inherited hooks was not documented and it was also wrong. This PR solves this issue by imposing a reverse MRO execution order, so that the hooks of the most specialized class are executed last. In the part, hooks were executed starting from the derived classes going up to the bases, but without following strict MRO order.

Fixes #2268.

Vasileios Karakasis added 2 commits November 19, 2021 11:15
Hooks are now executed in reverse MRO order.
@vkarak vkarak added this to the ReFrame sprint 21.11.2 milestone Nov 19, 2021
@vkarak vkarak requested review from teojgo and victorusu November 19, 2021 10:42
@vkarak vkarak self-assigned this Nov 19, 2021
@codecov-commenter
Copy link

codecov-commenter commented Nov 19, 2021

Codecov Report

Merging #2273 (32b2356) into master (74f73d1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2273   +/-   ##
=======================================
  Coverage   86.13%   86.13%           
=======================================
  Files          56       56           
  Lines       10202    10205    +3     
=======================================
+ Hits         8787     8790    +3     
  Misses       1415     1415           
Impacted Files Coverage Δ
reframe/core/meta.py 98.80% <100.00%> (+0.01%) ⬆️
reframe/core/pipeline.py 92.83% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74f73d1...32b2356. Read the comment docs.

@vkarak vkarak added enhancement and removed bugfix labels Nov 19, 2021
@vkarak vkarak merged commit 01579d9 into reframe-hpc:master Nov 22, 2021
@vkarak vkarak deleted the bugfix/hooks-exec-order branch November 22, 2021 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The order of execution of inherited hooks is currently undocumented and probably wrong

3 participants