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

Sanitise: Fix rescoping of symbols for nested associates #470

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

mlange05
Copy link
Collaborator

When nested associates are about to be removed, we need to account for that when updating the symbol-scope (a priori). This new logic does this by counting out the nested associates and picking the appropriate one, according to the septh of the symbol in the nest.

I've extended the stat-func test, where this most often triggers.

Note, this looks like a recurrence of the problem in #439 and hopefully should address issue #459 (@ecossevin to confirm).

When nested associates are about to be removed, we need to account
for that when updating the symbol-scope (a priori). This new logic
does this by counting out the nested associates and picking the
appropriate one, according to the septh of the symbol in the nest.

I've extended the stat-func test, where this most often triggers.
@mlange05 mlange05 requested a review from reuterbal January 10, 2025 08:45
Copy link

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

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.35%. Comparing base (b0a2344) to head (9a3c705).
Report is 24 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #470      +/-   ##
==========================================
- Coverage   93.35%   93.35%   -0.01%     
==========================================
  Files         223      223              
  Lines       41428    41434       +6     
==========================================
+ Hits        38676    38681       +5     
- Misses       2752     2753       +1     
Flag Coverage Δ
lint_rules 96.39% <ø> (ø)
loki 93.31% <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.

@reuterbal reuterbal linked an issue Jan 10, 2025 that may be closed by this pull request
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.

What a mean little issue, many thanks for figuring that one out! Looks good to me

@reuterbal reuterbal added the ready to merge This PR has been approved and is ready to be merged label Jan 10, 2025
@reuterbal reuterbal merged commit ddd15e0 into main Jan 10, 2025
13 checks passed
@reuterbal reuterbal deleted the naml-fix-symbol-scopes-remove-assocs branch January 10, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge This PR has been approved and is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug with statement functions again
2 participants