commit/galaxy-central: greg: Keep track of the time taken to install and test each repository in the Tool Shed's install and test framework.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/2e8917d8f6d9/ Changeset: 2e8917d8f6d9 User: greg Date: 2014-02-24 17:58:58 Summary: Keep track of the time taken to install and test each repository in the Tool Shed's install and test framework. Affected #: 2 files diff -r ef5f750810f791d39d5fe37f256b2526fa9916ae -r 2e8917d8f6d97a984c8b984363a56e15ec4a81fa test/install_and_test_tool_shed_repositories/repositories_with_tools/functional_tests.py --- a/test/install_and_test_tool_shed_repositories/repositories_with_tools/functional_tests.py +++ b/test/install_and_test_tool_shed_repositories/repositories_with_tools/functional_tests.py @@ -212,6 +212,7 @@ repository = install_and_test_base_util.get_repository( name, owner, changeset_revision ) if repository is None: # The repository was not previously installed, so install it now. + start_time = time.time() tool_test_results_dict = install_and_test_base_util.initialize_tool_tests_results_dict( app, tool_test_results_dict ) repository, error_message = install_and_test_base_util.install_repository( app, repository_dict ) install_and_test_statistics_dict[ 'total_repositories_processed' ] += 1 @@ -340,6 +341,8 @@ repository_dict, params, can_update_tool_shed ) + print '\nAttempting to install revision %s of repository %s owned by %s took %s seconds.\n' % \ + ( changeset_revision, name, owner, str( time.time() - start_time ) ) else: remove_tests( app, repository ) print 'Skipped attempt to install revision %s of repository %s owned by %s because ' % \ diff -r ef5f750810f791d39d5fe37f256b2526fa9916ae -r 2e8917d8f6d97a984c8b984363a56e15ec4a81fa test/install_and_test_tool_shed_repositories/tool_dependency_definitions/functional_tests.py --- a/test/install_and_test_tool_shed_repositories/tool_dependency_definitions/functional_tests.py +++ b/test/install_and_test_tool_shed_repositories/tool_dependency_definitions/functional_tests.py @@ -143,6 +143,7 @@ repository = install_and_test_base_util.get_repository( name, owner, changeset_revision ) if repository is None: # The repository was not previously installed, so install it now. + start_time = time.time() tool_test_results_dict = install_and_test_base_util.initialize_tool_tests_results_dict( app, tool_test_results_dict ) repository, error_message = install_and_test_base_util.install_repository( app, repository_dict ) install_and_test_statistics_dict[ 'total_repositories_processed' ] += 1 @@ -192,6 +193,8 @@ encoded_repository_metadata_id, install_and_test_statistics_dict, can_update_tool_shed ) + print '\nAttempting to install revision %s of repository %s owned by %s took %s seconds.\n' % \ + ( changeset_revision, name, owner, str( time.time() - start_time ) ) else: print 'Skipped attempt to install revision %s of repository %s owned by %s because ' % \ ( changeset_revision, name, owner ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org