Skip to content

TestPantsDaemonIntegration.test_pantsd_memory_usage is flaky #8193

@pierrechevalier83

Description

@pierrechevalier83

It timed out, exceeding the 540s limit: https://travis-ci.org/pantsbuild/pants/jobs/574692133

                   Invalidated 1 target.
06:48:39 28:13       [run]
                     
                     Warning: Timeout for tests/python/pants_test/pantsd:pantsd_integration (900s) exceeds 540s. Capping.Only executing 4 of 33 total tests in shard 7 of 20
                     ..F.                                       [100%]
                     ==================== FAILURES ====================
                     _ TestPantsDaemonIntegration.test_pantsd_memory_usage _
                     
                     self = <pants_test.pantsd.test_pantsd_integration.TestPantsDaemonIntegration testMethod=test_pantsd_memory_usage>
                     
                         @unittest.skipIf(sys.version_info[0] == 2,
                                          reason='Increases by ~0.52 under python 2 as described in '
                                                 'https://github.com/pantsbuild/pants/issues/7761.')
                         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
                           max_memory_increase_fraction = 0.40 # TODO https://github.com/pantsbuild/pants/issues/7647
                           with self.pantsd_successful_run_context() as (pantsd_run, checker, workdir, config):
                             cmd = ['filter', 'testprojects::']
                             self.assert_success(pantsd_run(cmd))
                             initial_memory_usage = checker.current_memory_usage()
                             for _ in range(number_of_runs):
                     >         self.assert_success(pantsd_run(cmd))
                     
                     .pants.d/pyprep/sources/7fccf78888dd614cb451e52af62446e127ec6e7b/pants_test/pantsd/test_pantsd_integration.py:407: 
                     _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-teststaleThis issue has not received activity in a while

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions