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

tests/fast/test_memory_leaks.py::TestMemoryLeaks::test_fetchmany - assert 5767168 <= 5000000 #11961

Open
2 tasks
ghost opened this issue May 7, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented May 7, 2024

What happens?

python unit test fails sometimes.
raw log: https://cache.nixos.org/log/4s3z5n76sczpscsy31y76as882y2411a-python3.12-duckdb-0.10.2.drv

_____________ ERROR at teardown of TestMemoryLeaks.test_fetchmany ______________

    @pytest.fixture
    def check_leaks():
        process = psutil.Process(os.getpid())
        gc.collect()
        initial_mem_usage = process.memory_info().rss
        yield
        gc.collect()
        final_mem_usage = process.memory_info().rss
        difference = final_mem_usage - initial_mem_usage
        print("difference:", difference)
        # Assert that the amount of used memory does not pass 5mb
>       assert difference <= 5_000_000
E       assert 5767168 <= 5000000

tests/fast/test_memory_leaks.py:19: AssertionError
--------------------------- Captured stdout teardown ---------------------------
difference: 5767168

To Reproduce

failed once on automated build.

OS:

linux

DuckDB Version:

0.10.2

DuckDB Client:

python

Full Name:

annalee

Affiliation:

none (nixpkgs volunteer)

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Not applicable - the reproduction does not require a data set

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants