Skip to content

(closes #1651) Fix Reference2ArrayRange issue with capitalisations and test nested WHEREs#3338

Open
sergisiso wants to merge 2 commits intomasterfrom
1651_updated_nested_where
Open

(closes #1651) Fix Reference2ArrayRange issue with capitalisations and test nested WHEREs#3338
sergisiso wants to merge 2 commits intomasterfrom
1651_updated_nested_where

Conversation

@sergisiso
Copy link
Collaborator

The generated code is a mouthful, but the reported issue with nested WHEREs is now fixed.

@sergisiso sergisiso deployed to integration February 18, 2026 11:12 — with GitHub Actions Active
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.95%. Comparing base (8ecb098) to head (2f6ac1a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3338   +/-   ##
=======================================
  Coverage   99.95%   99.95%           
=======================================
  Files         382      382           
  Lines       54094    54107   +13     
=======================================
+ Hits        54072    54085   +13     
  Misses         22       22           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@arporter arporter left a comment

Choose a reason for hiding this comment

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

Thanks Sergi. Just a couple of requests to add compilation to tests, where possible.
Issue number isn't mentioned anywhere.
I've grep'd and it doesn't look like any of the examples need updating.
I'll check the ITs next time.

assert ("WHERE not supported because 'p_dal' cannot be converted to an "
"array due to: Transformation Error: The supplied node should be "
"a Reference to a symbol of known type, but 'p_dal%D12(:,:,1)' is"
" 'UnresolvedType'. Consider adding the declaration's filename "
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps it's not this PR but "...adding the name of the file containing the declaration of this quantity to ..."

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done


# If enough information is provided, both WHEREs are resolved and nested
code = ("module my_mod\n"
" use some_mod\n"
Copy link
Member

Choose a reason for hiding this comment

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

Does this test need the use some_mod because if not, we could test compilation of the generated code?

Copy link
Collaborator Author

@sergisiso sergisiso Feb 18, 2026

Choose a reason for hiding this comment

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

Done. I can remove it if I add the remaining symbol declarations (which in turn simplified the output code since it now has known bounds)

array_of_ref(1:10)%field_of_fields(1)%inner = 1"""
assert expected_modified in output
assert expected_modified in output.lower()

Copy link
Member

Choose a reason for hiding this comment

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

Please add a compilation test.

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.

2 participants