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

Api tests failing and producing alembic.util.exec.CommandError #15765

Closed
ahmedhamidawan opened this issue Mar 10, 2023 · 2 comments
Closed

Api tests failing and producing alembic.util.exec.CommandError #15765

ahmedhamidawan opened this issue Mar 10, 2023 · 2 comments

Comments

@ahmedhamidawan
Copy link
Member

ahmedhamidawan commented Mar 10, 2023

Describe the bug
Api tests fail and produce the following alembic.util.exec.CommandError for each test case:
alembic.util.exc.CommandError: Multiple heads are present; please specify a single target revision

Galaxy Version and/or server at which you observed the bug
Galaxy Version: dev
Commit:

To Reproduce
Steps to reproduce the behavior:

  1. Run any api test, for e.g.: sh run_tests.sh -api lib/galaxy_test/api/test_history_contents.py
  2. All tests fail with the same error: ERROR lib/galaxy_test/api/test_history_contents.py::TestHistoryContentsApi::test_hdca_from_library_datasets - alembic.util.exc.CommandError: Multiple heads are present; please specify a single target revision

Only experienced on dev, not on 23.0

@jdavcs
Copy link
Member

jdavcs commented Mar 10, 2023

Confirmed: reproduced locally. Relevant traceback:

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

lib/galaxy/util/unittest.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
lib/galaxy_test/base/testcase.py:53: in setUpClass
    cls._test_driver.setup(config_object=cls)
lib/galaxy_test/driver/driver_util.py:910: in setup
    self._register_and_run_servers(config_object)
lib/galaxy_test/driver/driver_util.py:965: in _register_and_run_servers
    server_wrapper = launch_server(
lib/galaxy_test/driver/driver_util.py:800: in launch_server
    app = app_factory()
lib/galaxy_test/driver/driver_util.py:966: in <lambda>
    app_factory=lambda: self.build_galaxy_app(galaxy_config),
lib/galaxy_test/driver/driver_util.py:978: in build_galaxy_app
    self.app = build_galaxy_app(galaxy_config)
lib/galaxy_test/driver/driver_util.py:584: in build_galaxy_app
    app = GalaxyUniverseApplication(**simple_kwargs)
lib/galaxy/app.py:600: in __init__
    super().__init__(fsmon=True, **kwargs)
lib/galaxy/app.py:495: in __init__
    super().__init__(**kwargs)
lib/galaxy/app.py:244: in __init__
    self._configure_models(check_migrate_databases=self.config.check_migrate_databases, config_file=config_file)
lib/galaxy/app.py:429: in _configure_models
    self._verify_databases(engine, install_engine, combined_install_database)
lib/galaxy/app.py:453: in _verify_databases
    verify_databases(
lib/galaxy/model/migrations/__init__.py:157: in verify_databases
    gxy_verifier.run()
lib/galaxy/model/migrations/__init__.py:209: in run
    if self._handle_no_database():
lib/galaxy/model/migrations/__init__.py:226: in _handle_no_database
    self._initialize_database()
lib/galaxy/model/migrations/__init__.py:314: in _initialize_database
    self.alembic_manager.stamp_model_head(self.model)
lib/galaxy/model/migrations/__init__.py:73: in stamp_model_head
    self.stamp_revision(revision)
lib/galaxy/model/migrations/base.py:315: in stamp_revision
    command.stamp(self.alembic_cfg, revision) 
...
E           alembic.util.exc.CommandError: Multiple heads are present; please specify a single target revision

.venv/lib/python3.10/site-packages/alembic/script/base.py:259: CommandErr

@bernt-matthias
Copy link
Contributor

#15771

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

Successfully merging a pull request may close this issue.

3 participants