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

Fix rendering tests #561

Merged
merged 14 commits into from
Aug 21, 2023
Merged

Fix rendering tests #561

merged 14 commits into from
Aug 21, 2023

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Aug 18, 2023

🦟 Bug fix

Targeted at #429

Summary

The tests below are still failing on Jammy github actions in #429:

  • INTEGRATION_transport_scene_manager
  • INTEGRATION_minimal_scene

The failing tests were supposed to be fixed by #535 but for some reason they are now happening again.

The "fix" is more of a workaround. The main change is to not unload the render engine on exit which is what's causing the segfault in these 2 tests. It's safe to remove the DestroyScene call in the tests as that's taken care of by the minimal scene plugin. The tests do not fail on other CI builds and I'm also not able to reproduce them locally.

We could either get this in to make CI green or spend more time finding the root cause of the problem.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
@iche033 iche033 requested a review from jennuine as a code owner August 18, 2023 03:44
@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Merging #561 (a091613) into fix_tests (e655d40) will not change coverage.
The diff coverage is n/a.

❗ Current head a091613 differs from pull request most recent head 24b3c1c. Consider uploading reports for the commit 24b3c1c to get more accurate results

@@            Coverage Diff             @@
##           fix_tests     #561   +/-   ##
==========================================
  Coverage      70.91%   70.91%           
==========================================
  Files             45       45           
  Lines           4941     4941           
==========================================
  Hits            3504     3504           
  Misses          1437     1437           

@iche033 iche033 changed the title Fix tests Fix rendering tests Aug 18, 2023
Copy link
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

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

LGTM! Do you think it's worth figuring out why unloading the engine fails? For example, would it allow us to have multiple tests in the same file? Either way, I think we should get this in to fix the tests and create an issue for the root problem.

@mjcarroll mjcarroll merged commit bb82bb8 into fix_tests Aug 21, 2023
9 checks passed
@mjcarroll mjcarroll deleted the fix_test_debugging branch August 21, 2023 21:26
mjcarroll added a commit that referenced this pull request Aug 22, 2023
* Break scene3d test apart into component tests

Signed-off-by: Michael Carroll <[email protected]>

* Fix include paths

Signed-off-by: Michael Carroll <[email protected]>

* Remove scene3d as it is deprecated

Signed-off-by: Michael Carroll <[email protected]>

* Remove message header

Signed-off-by: Michael Carroll <[email protected]>

* Bump everything to ogre2 by default

Signed-off-by: Michael Carroll <[email protected]>

* line order

Signed-off-by: Louise Poubel <[email protected]>

* Fix tests by delaying get render engine calls  (#535)



---------

Signed-off-by: Ian Chen <[email protected]>

* revert default engine

Signed-off-by: Ian Chen <[email protected]>

* Fix rendering tests (#561)

* debugging

Signed-off-by: Ian Chen <[email protected]>

* reset cam

Signed-off-by: Ian Chen <[email protected]>

* more testing

Signed-off-by: Ian Chen <[email protected]>

* no unload

Signed-off-by: Ian Chen <[email protected]>

* more testing with no unload

Signed-off-by: Ian Chen <[email protected]>

* unload engine in gzrenderer

Signed-off-by: Ian Chen <[email protected]>

* unload engine in gzrenderer debugging

Signed-off-by: Ian Chen <[email protected]>

* unload engine in gzrenderer reset scene

Signed-off-by: Ian Chen <[email protected]>

* comment out unload

Signed-off-by: Ian Chen <[email protected]>

* increase timeout

Signed-off-by: Ian Chen <[email protected]>

* test timing

Signed-off-by: Ian Chen <[email protected]>

* cleanup

Signed-off-by: Ian Chen <[email protected]>

* cleanup

Signed-off-by: Ian Chen <[email protected]>

* more cleanup

Signed-off-by: Ian Chen <[email protected]>

---------

Signed-off-by: Ian Chen <[email protected]>

* Suppress warnings in metal

Signed-off-by: Michael Carroll <[email protected]>

* Incorrect args

Signed-off-by: Michael Carroll <[email protected]>

---------

Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Co-authored-by: Louise Poubel <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Ian Chen <[email protected]>
@iche033
Copy link
Contributor Author

iche033 commented Aug 22, 2023

Do you think it's worth figuring out why unloading the engine fails?

I created #565 for this. I'll look into it as a background task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants