Skip to content

Add DirAccess interface to file_access_memory #99851

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

Closed
wants to merge 1 commit into from

Conversation

demolke
Copy link
Contributor

@demolke demolke commented Nov 29, 2024

Having memory backed res:// folder is useful for hermetic tests that need to mutate contents of the resource directory.

For example in #98909 we want the res:// folder not to contain a texture imported on previous run to always test the same code path.

It requires changes to core/os/os.h so that we can re-initialize the file/dir handlers during test setup.

@demolke demolke requested review from a team as code owners November 29, 2024 21:44
@demolke demolke force-pushed the memdiraccess branch 2 times, most recently from 1fa1c9c to 0e09b80 Compare November 29, 2024 22:34
@demolke
Copy link
Contributor Author

demolke commented Nov 29, 2024

This will be failing sanitizers until #99847

@demolke
Copy link
Contributor Author

demolke commented Dec 3, 2024

#99847 is now merged, so the CI succeeds

@demolke demolke requested a review from a team as a code owner December 17, 2024 06:47
@demolke demolke force-pushed the memdiraccess branch 2 times, most recently from 51cb1a2 to 8b2b870 Compare December 18, 2024 20:01
@demolke demolke force-pushed the memdiraccess branch 3 times, most recently from 6a5dcd5 to ab49fe9 Compare January 9, 2025 20:29
Having memory backed res:// folder is useful for hermetic tests that need to mutate contents of the resource directory.

For example in godotengine#98909 we want the res:// folder not to contain a texture imported on previous run to always test the same code path.

It requires changes to core/os/os.h so that we can re-initialize the file/dir handlers during test setup.
@aaronfranke
Copy link
Member

This PR needs a proposal before it can be considered.

@demolke
Copy link
Contributor Author

demolke commented May 15, 2025

Removing this as discussed on #105848

@demolke demolke closed this May 15, 2025
@demolke demolke deleted the memdiraccess branch May 15, 2025 17:59
@AThousandShips AThousandShips removed this from the 4.x milestone May 19, 2025
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.

5 participants