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

Integration tests fail under pytest 8.0.x #17561

Open
nsoranzo opened this issue Feb 28, 2024 · 0 comments
Open

Integration tests fail under pytest 8.0.x #17561

nsoranzo opened this issue Feb 28, 2024 · 0 comments

Comments

@nsoranzo
Copy link
Member

nsoranzo commented Feb 28, 2024

The integration tests fail when using pytest 8.0.x (noticed in the "Update Python dependencies" pull requests), which means we cannot update it in our dev requirements.
The errors starts after some test modules succeeded, and look like this:

_____ ERROR at setup of TestConfigSchema.test_schema_path_resolution_graph _____

cls = <class 'integration.test_config_schema.TestConfigSchema'>

    @classmethod
    def setup_class(cls):
>       cls.setUpClass()

lib/galaxy/util/unittest.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
lib/galaxy_test/driver/integration_util.py:123: in setUpClass
    cls._test_driver.setup(config_object=cls)
lib/galaxy_test/driver/driver_util.py:914: in setup
    self._register_and_run_servers(config_object)
lib/galaxy_test/driver/driver_util.py:969: in _register_and_run_servers
    server_wrapper = launch_server(
lib/galaxy_test/driver/driver_util.py:781: in launch_server
    port = attempt_ports(port)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

port = '8148', set_galaxy_web_port = True

    def attempt_ports(port=None, set_galaxy_web_port=True) -> str:
        if port is not None:
            if not attempt_port(int(port)):
>               raise Exception(f"An existing process seems bound to specified test server port [{port}]")
E               Exception: An existing process seems bound to specified test server port [8148]

lib/galaxy_test/driver/driver_util.py:496: Exception

Originally posted by @nsoranzo in #17420 (comment)

I have bisected the changes between pytest 7.4.4 and 8.0.0, which pointed to pytest-dev/pytest@385796b as the commit introducing the issue.

I don't really have an idea why this is happening and what's the connection with that pytest commit, help appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Triage/Discuss
Development

No branches or pull requests

2 participants