Skip to content

Close temporary environments used to infer storage spaces - #354

Open
betacatsling wants to merge 1 commit into
Farama-Foundation:mainfrom
betacatsling:fix/close-space-inference-env
Open

betacatsling wants to merge 1 commit into
Farama-Foundation:mainfrom
betacatsling:fix/close-space-inference-env

Conversation

@betacatsling

Copy link
Copy Markdown

MinariStorage.new() and read() construct Gymnasium environments when space metadata is missing but never close them. Close these private temporary environments after extracting the spaces, including on errors. The tests register a real Gymnasium environment and verify one close per construction with either or both spaces missing.

Validation: 6 failed on the unchanged base; 125 passed after the fix, including serialization and storage tests. Black/isort and diff checks passed. CPU/local storage only; no GPU, MuJoCo or remote dataset claims. The relevant API documentation is updated.

AI assistance was used for implementation and local verification.

Fixes #353.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Temporary environments used to infer storage spaces are never closed

1 participant