Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/python/pants/pantsd/pantsd_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,6 @@ def test_pantsd_pid_change(self):
# Remove the pidfile so that the teardown script doesn't try to kill process 9.
os.unlink(pidpath)

@pytest.mark.skip(reason="flaky: https://github.com/pantsbuild/pants/issues/8193")
@pytest.mark.no_error_if_skipped
def test_pantsd_memory_usage(self):
"""Validates that after N runs, memory usage has increased by no more than X percent."""
number_of_runs = 10
Expand All @@ -462,11 +460,9 @@ def test_pantsd_memory_usage(self):
ctx.checker.assert_running()

final_memory_usage = ctx.checker.current_memory_usage()
self.assertTrue(
initial_memory_usage <= final_memory_usage,
f"Memory usage inverted unexpectedly: {initial_memory_usage} > {final_memory_usage}",
assert initial_memory_usage > 0, (
f"Expected non-zero initial memory usage, got {initial_memory_usage}"
)

increase_fraction = (float(final_memory_usage) / initial_memory_usage) - 1.0
self.assertTrue(
increase_fraction <= max_memory_increase_fraction,
Expand Down
Loading