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

✅ Refine NALAC tests #470

Merged
merged 48 commits into from
Jun 10, 2024
Merged

✅ Refine NALAC tests #470

merged 48 commits into from
Jun 10, 2024

Conversation

ystade
Copy link
Contributor

@ystade ystade commented Jun 7, 2024

Description

This PR adds proper tests (and fixes revealed bugs) for the Neutral Atom Logical Array Compiler (NALAC).

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@ystade ystade added c++ Anything related to C++ code fix Anything related to bugfixes labels Jun 7, 2024
@ystade ystade self-assigned this Jun 7, 2024
@ystade
Copy link
Contributor Author

ystade commented Jun 7, 2024

When cda-tum/mqt-core#629 is merged, the reference to MQT-Core must be adopted before merging this PR.

@ystade ystade changed the title Wip test na map ✅ Refine NA mapper test Jun 7, 2024
@ystade ystade changed the title ✅ Refine NA mapper test ✅ Refine NALAC tests Jun 7, 2024
@ystade ystade requested a review from burgholzer June 7, 2024 13:33
Copy link

codecov bot commented Jun 7, 2024

Codecov Report

Attention: Patch coverage is 97.05882% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.4%. Comparing base (e90df35) to head (8810409).
Report is 89 commits behind head on main.

Files with missing lines Patch % Lines
src/na/NAMapper.cpp 95.8% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #470     +/-   ##
=======================================
- Coverage   90.4%   90.4%   -0.1%     
=======================================
  Files         86      86             
  Lines       9975    9982      +7     
  Branches    1696    1696             
=======================================
+ Hits        9020    9025      +5     
- Misses       955     957      +2     
Flag Coverage Δ *Carryforward flag
cpp 90.1% <97.0%> (-0.1%) ⬇️
python 95.9% <ø> (ø) Carriedforward from e90df35

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
include/hybridmap/NeutralAtomArchitecture.hpp 97.6% <100.0%> (ø)
src/hybridmap/HardwareQubits.cpp 96.9% <100.0%> (ø)
src/hybridmap/HybridNeutralAtomMapper.cpp 92.4% <100.0%> (ø)
src/hybridmap/NeutralAtomArchitecture.cpp 96.7% <100.0%> (ø)
src/na/NAMapper.cpp 89.4% <95.8%> (+<0.1%) ⬆️

... and 1 file with indirect coverage changes

@ystade
Copy link
Contributor Author

ystade commented Jun 7, 2024

What happened here, @lsschmid. The error in the Release run on Linux throws an error in the hybrid mapper. I only renamed Euclidian to Euclidean because CLion complained.

burgholzer added a commit to cda-tum/mqt-core that referenced this pull request Jun 7, 2024
## Description

This PR contains modifications that were necessary for the tests of the
Neutral Atom Logical Array Compiler, see cda-tum/mqt-qmap#470.

## Checklist:

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
@burgholzer burgholzer added this to the Neutral Atom Compilation milestone Jun 7, 2024
Signed-off-by: burgholzer <burgholzer@me.com>
@ystade
Copy link
Contributor Author

ystade commented Jun 8, 2024

@lsschmid Sorry, I completely looked wrong; the error did not stem from your code at all. 😃

@ystade
Copy link
Contributor Author

ystade commented Jun 8, 2024

@burgholzer I am still looking for the error but having trouble to locate it. So far, I am only running the failing windows test to get faster feedback and have put tons of std::cout in the code to locate the error. Do you have any suggestions on how to continue here?

@burgholzer
Copy link
Member

@burgholzer I am still looking for the error but having trouble to locate it. So far, I am only running the failing windows test to get faster feedback and have put tons of std::cout in the code to locate the error. Do you have any suggestions on how to continue here?

Just quickly commenting here from the phone. Your best guess would probably be a Windows VM in debug mode and a test run started with the debugger attached..

Just depending on standard output is tough with these kinds of errors as they can be swallowed and not really surface, which might pinpoint you to the wrong location.

@burgholzer
Copy link
Member

Ok. A bit of googling revealed:

So this is not our fault. No need to debug further at the moment.

@ystade
Copy link
Contributor Author

ystade commented Jun 10, 2024

@burgholzer Tests are still running but should be clean now.

Copy link
Member

@burgholzer burgholzer left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼
Let's ignore the Windows failures for now and get this merged.
Not ideal, since there will be no coverage information, but there isn't that much that we could do 🤷🏼

@burgholzer burgholzer merged commit 7604d32 into main Jun 10, 2024
30 of 34 checks passed
@burgholzer burgholzer deleted the wip-test-na-map branch June 10, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Anything related to C++ code fix Anything related to bugfixes
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants