Skip to content

Conversation

@teojgo
Copy link
Contributor

@teojgo teojgo commented Feb 7, 2023

Fixes #2759

  • Create unittest

@teojgo teojgo added this to the ReFrame 4.1 milestone Feb 7, 2023
@teojgo teojgo requested review from ekouts and vkarak February 7, 2023 13:33
@teojgo teojgo self-assigned this Feb 7, 2023
@teojgo teojgo marked this pull request as draft February 7, 2023 13:33
@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2023

Codecov Report

Base: 86.61% // Head: 86.58% // Decreases project coverage by -0.04% ⚠️

Coverage data is based on head (8b3c8d3) compared to base (a96aec5).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2780      +/-   ##
==========================================
- Coverage   86.61%   86.58%   -0.04%     
==========================================
  Files          60       60              
  Lines       11218    11230      +12     
==========================================
+ Hits         9717     9723       +6     
- Misses       1501     1507       +6     
Impacted Files Coverage Δ
reframe/frontend/loader.py 96.10% <100.00%> (+0.07%) ⬆️
reframe/frontend/cli.py 73.22% <0.00%> (-0.62%) ⬇️
reframe/core/logging.py 81.02% <0.00%> (+0.03%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@teojgo teojgo force-pushed the bugfix/parent_class_collisions branch from 1b3e5b6 to 3abe4ea Compare February 7, 2023 14:55
@teojgo teojgo marked this pull request as ready for review February 7, 2023 14:55
Copy link
Contributor

@ekouts ekouts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be easy to make the PR to master, since it is a bugfix? Otherwise, it looks good to me

@teojgo teojgo changed the base branch from develop to master February 7, 2023 16:22
Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you started off the branch from the develop and now trying to merge with master. You should branch off master and apply your changes there.

@teojgo teojgo force-pushed the bugfix/parent_class_collisions branch from 8728ecc to e25f156 Compare February 8, 2023 09:03
Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this fix introduces another bug. :-) The reason that the framework refuses to run tests with conflicting names is because they cannot execute safely in parallel, as they will step on each other in the stage directory. This fix basically allows conflicting tests defined in different files to run together, which is wrong. However, the problem in #2759 is that fixtures with the same name are disallowed. This is a bug, because fixtures with the same name (i.e., with the same scope and same variables defined) are guaranteed to run only once, so the framework should not complain about them being defined multiple times. Therefore the fix should be to ignore name conflicts in case of fixtures as fixtures are guaranteed to get a unique name and each one of those will be executed once per scope.

Signed-off-by: Theofilos Manitaras <manitaras@cscs.ch>
@teojgo teojgo force-pushed the bugfix/parent_class_collisions branch from e25f156 to fc74289 Compare February 14, 2023 12:56
@teojgo teojgo changed the title [bugfix] Fix conflict when inheriting from hpctestlib classes [bugfix] Fix conflict when inheriting fixtures from hpctestlib classes Feb 14, 2023
Theofilos Manitaras added 2 commits February 15, 2023 10:06
Signed-off-by: Theofilos Manitaras <manitaras@cscs.ch>
Signed-off-by: Theofilos Manitaras <manitaras@cscs.ch>
@vkarak vkarak changed the title [bugfix] Fix conflict when inheriting fixtures from hpctestlib classes [bugfix] Do not issue a name conflict error for the same fixture imported from different test files Feb 15, 2023
@vkarak vkarak merged commit ec6acac into reframe-hpc:master Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Reframe skips tests when a library test is used in multiple files

4 participants