Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Oct 23, 2025

🦟 Bug fix

Fixes #3031

Summary

I think I know what the issue is with the UtilTest.ResolveSdfWorldFile test. It appears that the temporary directory created for Fuel caches in the tests are not cleared properly. It's also not clear if these are being created on in-memory file system on macOS, which means they persist across reboots.

  • As a result of this, the test is not running properly. It is not downloading the test world every time. Instead, it's using cached files which might be corrupt.
  • I reproduced a similar test failure by going into the cache location and only removing the test.sdf file.

This patch cleans up the temporary home directory when each test is done.

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
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Generated-by: Remove this if GenAI was not used.

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


This is an automatic backport of pull request #3146 done by [Mergify](https://mergify.com).

@azeey
Copy link
Contributor

azeey commented Nov 6, 2025

@Mergifyio rebase

* Clean up temporary home directory to make tests more robust

Signed-off-by: Addisu Z. Taddese <[email protected]>

* Remove expectation that auto_default.log will exist

This file only exists if the GUI has run. Since each test now starts
with a clean ".gz" directory, this file will not exist when this test
runs.

Signed-off-by: Addisu Z. Taddese <[email protected]>

---------

Signed-off-by: Addisu Z. Taddese <[email protected]>
(cherry picked from commit 83a6331)
@mergify
Copy link
Contributor Author

mergify bot commented Nov 6, 2025

rebase

✅ Branch has been successfully rebased

@azeey azeey force-pushed the mergify/bp/gz-sim10/pr-3146 branch from c4dbca6 to e8a30cf Compare November 6, 2025 16:53
@azeey azeey merged commit b4da463 into gz-sim10 Nov 7, 2025
12 of 14 checks passed
@azeey azeey deleted the mergify/bp/gz-sim10/pr-3146 branch November 7, 2025 18:21
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪵 jetty Gazebo Jetty

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

UtilTest.ResolveSdfWorldFile failing on homebrew

2 participants