Commit Graph
20436 Commits
Author SHA1 Message Date
Martin Cech 905471e32f Merge pull request #1226 from jmchilton/jobs_api_test_fix
Wait on jobs and history in certain API test cases.
2015-12-04 11:33:35 -05:00
carlfeberhard 5c87d07e0f Merge pull request #1233 from jmchilton/underscore_shim
Fix qunit shim to match base_panels.mako shim.
2015-12-04 11:29:17 -05:00
John Chilton 74f7b90036 Merge pull request #1230 from openlangrid/dev
Replacement should be applied only to first occurrence.
2015-12-04 11:11:56 -05:00
Nate Coraor 600338dac7 Merge pull request #1231 from nsoranzo/dev_tests_conditional_wheels
Export GALAXY_TEST_DBURI as GALAXY_CONFIG_OVERRIDE_DATABASE_CONNECTION before installing wheels.
2015-12-04 10:40:08 -05:00
John Chilton fcabc5242c Merge pull request #1160 from Christian-B/unlinked_dependencies
Allowed for capitalised package names such as R
2015-12-04 09:15:23 -05:00
Nicola Soranzo 0c8a738a35 Export GALAXY_TEST_DBURI as GALAXY_CONFIG_OVERRIDE_DATABASE_CONNECTION before installing wheels. Fix #1205.
As test/docker/base/run_test_wrapper.sh does.
2015-12-04 11:39:36 +00:00
John Chilton f969eabf26 Fix qunit shim to match base_panels.mako shim.
QUnit tests of things with underscore require statements would not work without this change.
2015-12-04 11:24:43 +00:00
Nicola Soranzo 11c46f4f35 Merge branch 'master' into dev 2015-12-04 09:37:28 +00:00
Takao Nakaguchi 102eeef2d7 Replacement should be applied only to first occurrence. 2015-12-04 01:28:23 +00:00
Eric Rasche e76933b557 Merge pull request #1229 from martenson/remove-readthecdocs-badge
replace the readthedocs badge,
2015-12-03 16:56:03 -06:00
Martin Cech 6735c9dece replace the readthedocs badge,
we cannot use it until https://github.com/rtfd/readthedocs.org/issues/1767 is resolved
2015-12-03 17:11:52 -05:00
John Chilton 516b079ab9 Merge pull request #1222 from nsoranzo/release_15.10_tool_shed_fixes
[15.10] Tool Shed fixes.
2015-12-03 16:36:25 -05:00
Martin Cech 9a1fc647a3 Merge pull request #1212 from jmchilton/tool_opts_6
Smaller Tool Optimization PR
2015-12-03 16:23:41 -05:00
Daniel Blankenberg d1684e7c9d Merge pull request #1224 from jmchilton/collection_naming_performance
[15.10] Backport #1217
2015-12-03 16:13:51 -05:00
John Chilton 14ac3665ee Merge pull request #598 from davebx/async_metadata_reset
Make bulk repository metadata resets asynchronous.
2015-12-03 16:10:22 -05:00
John Chilton 92a7b995b0 Merge pull request #1217 from ericenns/collection-tool-input-fixes
Collection tool input mapping performance fixes
2015-12-03 15:31:10 -05:00
John Chilton a570956612 Merge pull request #396 from jessevdam/dev
Added better support for formats that store triples.
2015-12-03 15:25:13 -05:00
Jesse 4c13c92540 Merge pull request #2 from jmchilton/triples_2
Remove deprecated datatype stuff
2015-12-03 21:22:30 +01:00
John Chilton 65e6a1c3b6 Merge pull request #1209 from chambm/feature/idpdb_hdf5_sniffers
Add idpDB and HDF5 sniffers and fix MzSQlite sniffer
2015-12-03 15:11:34 -05:00
Nicola Soranzo 2b697e3c1a Fix detection of missing repository dependencies when reinstalling an updated Tool Shed repository.
Fix test/tool_shed/functional/test_1087_install_updated_repository_dependencies.py .
2015-12-03 20:05:50 +00:00
Nicola Soranzo c9abc2bc97 Fix for test/tool_shed/functional/test_1440_missing_env_sh_files.py .
Properly order the installation of the repositories adding
prior_installation_required="True". Otherwise filter_1440 is installed first
and ends in INSTALLED status because of the logic of
Repository.create_tool_dependency_with_initialized_env_sh_file() method
contained in
lib/tool_shed/galaxy_install/tool_dependencies/recipe/tag_handler.py .
2015-12-03 20:00:22 +00:00
Eric Enns 362a25e6e6 Updated tool input collection to only add items from a collection which are being used by the tool and not the entire collection. (Thanks to @markiskander for helping me find this). 2015-12-03 10:48:39 -06:00
Martin Cech d83e8d358f Merge pull request #1215 from blankenberg/rerunfix_15.10
[15.10] Fix for updating tool parameter dicts when a new parameter has been added to a section
2015-12-03 11:38:55 -05:00
John Chilton 1adff983f2 Wait on jobs and history in certain API test cases.
This strategy proved to work around certain race conditions in tool testing so hopefully it will solve the transiently failing job searching and filtering test cases.
2015-12-03 16:33:45 +00:00
Daniel Blankenberg ee5a87af2e Fix for updating tool parameter dicts when a new parameter has been added to a section. Fixes issues seen during rerun under mentioned condition. 2015-12-03 11:33:27 -05:00
Eric Rasche c034dc3e33 Merge pull request #1213 from jmchilton/tool_logging_2
Add debug statement in output checker for why job is failing.
2015-12-03 10:16:59 -06:00
Nicola Soranzo 20b96d883d Merge pull request #1202 from jmchilton/workflow_tool_refactoring
Small Tool and Workflow Refactoring and Fixes
2015-12-03 15:53:22 +00:00
Eric Enns a5b7e6cb8e Updated tool input collection to only add items from a collection which are being used by the tool and not the entire collection. (Thanks to @markiskander for helping me find this). 2015-12-03 15:48:30 +00:00
John Chilton a443d99fdd Undo deprecated datatypes stuff, doesn't work with Galaxy well. 2015-12-03 15:15:31 +00:00
John Chilton 3de8579633 Add debug statement in output checker for why job is failing.
Should help tool testing and other Galaxy testing.
2015-12-03 10:49:51 +00:00
John Chilton ab2c7c2c07 Tool execution micro optimization...
... Don't create an extra list to reverse, just iterate over in reversed order.
2015-12-03 10:16:12 +00:00
John Chilton a190b69e33 Optimize tools that produce multiple outputs.
Fetch HIDs for these datasets all at once and flush once for all assignments. Creating jobs from 4 threads each job producing 10 outputs - this resulted in reducing the runtime of this portion of the code by 90% and saving around 20 seconds per job.

Before:

galaxy.tools.actions INFO 2015-11-30 15:53:46,235 Add outputs to history (22494.829 ms)
galaxy.tools.actions INFO 2015-11-30 15:53:47,295 Add outputs to history (22239.062 ms)
galaxy.tools.actions INFO 2015-11-30 15:53:48,320 Add outputs to history (23781.079 ms)
galaxy.tools.actions INFO 2015-11-30 15:53:51,490 Add outputs to history (21820.567 ms)
galaxy.tools.actions INFO 2015-11-30 15:54:24,506 Add outputs to history (25353.837 ms)

After:

galaxy.tools.actions INFO 2015-11-30 16:08:47,640 Add outputs to history (2781.675 ms)
galaxy.tools.actions INFO 2015-11-30 16:08:47,860 Add outputs to history (3177.738 ms)
galaxy.tools.actions INFO 2015-11-30 16:08:48,776 Add outputs to history (2425.528 ms)
galaxy.tools.actions INFO 2015-11-30 16:09:02,942 Add outputs to history (2579.022 ms)
2015-12-03 10:16:12 +00:00
John Chilton 64b7cc9fef Add sample tool that creates 10 outputs. 2015-12-03 10:16:12 +00:00
John Chilton 41d3dc62f7 Parallelize executing tool parameter combinations.
Should work when mapping over collections or for big muli-run tool submissions.

Because of database tension with sqlalchemy it is not strictly a linear increase, but the end user walltime experience for a 24 dataset collection being submitted using 4 threads instead 1 drops execution time from 68 seconds to 35.

Rebased with fixes thanks to @nsoranzo - https://github.com/jmchilton/galaxy/commit/7f6514a21222ea787a0676764e4a4fe825891b27#commitcomment-14712999.
2015-12-03 10:16:12 +00:00
John Chilton 876c28f88d Add more job timers. 2015-12-03 10:15:41 +00:00
John Chilton 299fbe99d7 Micro optimization, only fetch tool validation once per multi-run. 2015-12-03 10:15:11 +00:00
John Chilton dd7bddcaa6 Optimize initial queueing of jobs.
- Don't refresh job when this is the only thread fetching it.
 - Avoid a bunch of unnecessary flushes, just flush once essentially during process.

Brings this process from taking over 1 second per job on average on sqlite for cat1 on my laptop to around 400 ms on average.
2015-12-03 10:15:11 +00:00
John Chilton dd5f3aec52 Fix workflow extraction test cases broken with 77ed5681f8 2015-12-03 09:55:45 +00:00
chambm 97415de3ce Move idpDB and MzSQlite formats from proteomics.py to binary.py, because the SQLite sniffer lives there, and more specialized formats must be registered for sniffing before the generic format
Add proper idpDB sniffing logic (akin to MzSQlite) and test case
Add H5 sniffing based on magic number and test case
Add SQLite/IdpDB/MzSQlite/GeminiSQLite and H5 to default datatypes in registry.py
2015-12-02 18:27:33 -06:00
Daniel Blankenberg 30b13bb1d6 Merge pull request #1203 from gregvonkuster/release_15.10
[15.10] Fix ScIdx sniff method to handle first line comment
2015-12-02 15:32:05 -05:00
Greg Von Kuster c04b3a5bb5 Re-add egg imports 2015-12-02 09:26:36 -05:00
Greg Von Kuster 51cd41be94 Fix ScIdx sniff method to handle first line comment 2015-12-02 09:24:04 -05:00
Martin Cech ffb3de9ede Merge pull request #1153 from jmchilton/collection_type_source
Implement type_source on output collections.
2015-12-02 00:14:08 -05:00
John Chilton 67c98f54ca Merge pull request #1200 from nsoranzo/tool_shed_fixes
Tool shed fixes.
2015-12-01 23:51:47 -05:00
John Chilton 48340b5829 Add TODO items to workflow progress unit tests. 2015-12-01 23:44:26 +00:00
John Chilton 07c3d10f31 Extend workflow recovery progress test case to include replacement check. 2015-12-01 23:44:26 +00:00
John Chilton 7974c1f334 Add unit tests for workflow progress initialization. 2015-12-01 23:44:26 +00:00
John Chilton cf367ff0c7 Add another workflow progress test case.
This one for replacing a tool input with an input dataset.
2015-12-01 23:44:26 +00:00
John Chilton 8a01b42112 Refactor input_by_connections_name logic into model.
Continue to delay calculation of this but auto-compute it if requested and module injection code hasn't been called explicitly. Moves logic internal to class where it belongs also.
2015-12-01 23:44:26 +00:00
John Chilton 031a39aba8 Basic unit tests for workflow progress tracking. 2015-12-01 23:44:26 +00:00