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

MATLAB to GroMEt testing #765

Merged
merged 18 commits into from
Feb 12, 2024
Merged

MATLAB to GroMEt testing #765

merged 18 commits into from
Feb 12, 2024

Conversation

jastier
Copy link
Contributor

@jastier jastier commented Jan 20, 2024

MATLAB to GroMEt testing

This PR adds GroMEt translation to all pytest cases in the Tree-Sitter MATLAB translator. This was done as part of the fix for a bug that was happening when generating Model Coverage Reports. The CAST to GroMEt converter was reporting correctly that the "list" type is not supported, switching to the corresponding enumeration fixed that issue.

Relavant Features:

  • Each pytest case now includes GroMEt translation.
  • Got rid of some outdated static method typing calls.
  • LiteralValue data types are now CAST enumerations instead of hard-coded strings.
  • Removed the handler for Range Tree-sitter syntax nodes, these nodes are managed by iterator routines
  • Turned off the pytest series related to loops temporarily

Related to issue #725
Partially resolves issue #764

@jastier jastier added tests Issues related to existing or additional tests lang/MATLAB Used for work related to MATLAB frontend labels Jan 20, 2024
@jastier jastier added this to the [DARPA] Milestone 11 milestone Jan 20, 2024
@github-actions github-actions bot removed the tests Issues related to existing or additional tests label Jan 20, 2024
@titomeister
Copy link
Contributor

@jastier I think Gus wants us to mark issue resolution using
"Resolves ###"

Can you add that to your PR Description? I see you have the issues mentioned, but I think you just need the right formatting.
Resolves #725
Resolves #764

@jastier
Copy link
Contributor Author

jastier commented Jan 29, 2024

Main description edited to include related and partially resolved issues.

Copy link
Contributor

@titomeister titomeister left a comment

Choose a reason for hiding this comment

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

Looks good. Thank you Joseph!

@myedibleenso
Copy link
Collaborator

@titomeister , can you please try resolving these conflicts so that we can merge this PR?

@myedibleenso
Copy link
Collaborator

@titomeister , it looks like the tests are now failing. These were working as of 9933c53. Can you please take another look?

@titomeister
Copy link
Contributor

@myedibleenso I'm looking. For some reason a bunch of places just have outdated pieces of code. I've tried merging what's in main but it doesn't seem to fix it. Trying to fix manually now.

@titomeister titomeister merged commit 159d40e into main Feb 12, 2024
7 checks passed
@titomeister titomeister deleted the jastier/gromet_debug branch February 12, 2024 22:16
github-actions bot added a commit that referenced this pull request Feb 12, 2024
## MATLAB to GroMEt testing
This PR adds GroMEt translation to all pytest cases in the Tree-Sitter
MATLAB translator. This was done as part of the fix for a bug that was
happening when generating Model Coverage Reports. The CAST to GroMEt
converter was reporting correctly that the "list" type is not supported,
switching to the corresponding enumeration fixed that issue.

## Relavant Features:
- Each pytest case now includes GroMEt translation.
- Got rid of some outdated static method typing calls.
- `LiteralValue `data types are now CAST enumerations instead of
hard-coded strings.
- Removed the handler for `Range `Tree-sitter syntax nodes, these nodes
are managed by iterator routines
- Turned off the pytest series related to loops temporarily

Related to issue #725
Partially resolves issue #764

---------

Co-authored-by: Joseph Astier <[email protected]>
Co-authored-by: Tito Ferra <[email protected]>
Co-authored-by: titomeister <[email protected]> 159d40e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/MATLAB Used for work related to MATLAB frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants