Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCC test reshuffle #353

Merged
merged 4 commits into from
Jul 29, 2024
Merged

SCC test reshuffle #353

merged 4 commits into from
Jul 29, 2024

Conversation

mlange05
Copy link
Collaborator

Small, purely cosmetic housekeeping change that splits the dedicated "scc_hoist" and vectorisation tests into separate sub-modules and renames the main SCC test to test_scc.py for consistency. The diff looks big, but other than test names no functionality was changed.

Copy link

Documentation for this branch can be viewed at https://sites.ecmwf.int/docs/loki/353/index.html

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.35%. Comparing base (2b3b206) to head (99a6a30).
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #353   +/-   ##
=======================================
  Coverage   95.35%   95.35%           
=======================================
  Files         171      173    +2     
  Lines       36801    36835   +34     
=======================================
+ Hits        35090    35124   +34     
  Misses       1711     1711           
Flag Coverage Δ
lint_rules 96.39% <ø> (ø)
loki 95.33% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@reuterbal reuterbal left a comment

Choose a reason for hiding this comment

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

Thanks, that's an excellent idea!

There's now a redundant fixture definition in each of the two files, otherwise good to go!

Comment on lines 45 to 47
@pytest.fixture(scope='module', name='vertical')
def fixture_vertical():
return Dimension(name='vertical', size='nz', index='jk', aliases=('nlev',))
Copy link
Collaborator

Choose a reason for hiding this comment

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

The fixture seems unused

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good spot! I just pushed a fix.

Comment on lines +28 to +34
@pytest.fixture(scope='module', name='horizontal_bounds_aliases')
def fixture_horizontal_bounds_aliases():
return Dimension(
name='horizontal_bounds_aliases', size='nlon', index='jl',
bounds=('start', 'end'), aliases=('nproma',),
bounds_aliases=('bnds%start', 'bnds%end')
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

...and this fixture seems unused here :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, flagged it on the wrong file 🤦 I think that fixture is unused in test_scc_hoist.py

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ahhh, gotcha now! Just "fixed the fix" and updated for one more round of CI goodness. 😎

@mlange05 mlange05 merged commit b7ba5fc into main Jul 29, 2024
13 checks passed
@mlange05 mlange05 deleted the naml-scc-test-reshuffle branch July 29, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants