Yicong-Huang opened a new issue, #4730:
URL: https://github.com/apache/texera/issues/4730

   ### What happened?
   
   
`amber/src/main/python/core/architecture/managers/test_executor_manager.py`'s 
`executor_manager` fixture cleans up via `if hasattr(manager, "_fs"): 
manager.close()`. But the `cached_property` `fs` is stored under the key `fs`, 
not `_fs`, so `hasattr(manager, "_fs")` is always False and `close()` is never 
invoked. Tmp directories leak into `/var/tmp` and `udf-vN` modules persist in 
`sys.modules` with stale paths from prior tests, forcing cross-test isolation 
workarounds in every test that relies on `initialize_executor` loading the 
actual class from the supplied code.
   
   ### How to reproduce?
   
   1. Run `python -m pytest 
core/architecture/managers/test_executor_manager.py` from 
`amber/src/main/python`.
   2. Inspect `/var/tmp` for leftover `*TempFS` directories — they accumulate 
per test run.
   3. Inspect `sys.modules` for stale `udf-vN` entries — they persist across 
tests, so a fresh `ExecutorManager().initialize_executor(SOME_CODE, ...)` may 
end up with the executor class from whichever test populated `udf-v1` first, 
not the one supplied by `SOME_CODE`.
   
   ### Version
   
   1.1.0-incubating (Pre-release/Master)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to