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

MaskedTransformer: Fix in-place rebuilding of scoped nodes #284

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

mlange05
Copy link
Collaborator

@mlange05 mlange05 commented Apr 11, 2024

The offending line was accidentally packing the associations tuple and body tuple of Associate object together on rebuild, which inserted rogue symbols into the body of the associate when it is rebuilt in-place. This happens, for example, during pragma-region attachment.

@mlange05 mlange05 requested a review from reuterbal April 11, 2024 09:48
Copy link

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

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.88%. Comparing base (e5eae78) to head (bb26c5c).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #284   +/-   ##
=======================================
  Coverage   92.88%   92.88%           
=======================================
  Files         102      102           
  Lines       18247    18247           
=======================================
  Hits        16948    16948           
  Misses       1299     1299           
Flag Coverage Δ
lint_rules 96.39% <ø> (ø)
loki 92.85% <100.00%> (ø)
transformations 92.20% <ø> (ø)

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! Very subtle bug, nice find!

@reuterbal reuterbal added the ready for merge This PR has been approved and is ready to be merged label Apr 11, 2024
@reuterbal reuterbal merged commit a594b44 into main Apr 11, 2024
12 checks passed
@reuterbal reuterbal deleted the naml-fix-masked-transformer-inplace branch April 11, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for 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.

2 participants