Commit Graph
15557 Commits
Author SHA1 Message Date
Nicola Soranzo c0c95548a3 Merge branch 'release_17.05' into release_17.09 2018-01-31 10:16:33 +00:00
John Chilton 9fcac13145 Fix the PJA type issue when mapping renames over nested lists. 2018-01-30 11:16:20 -05:00
mvdbeek a70f2875b3 Remove r channel from more locations 2018-01-29 18:07:29 +01:00
mvdbeek 414c031247 Follow IUC and Drop r channel from default cond channels 2018-01-29 17:35:49 +01:00
Dannon Baker 9c187f0e5a Constrain workflow tool panel entries to those not deleted. 2018-01-25 13:44:40 -05:00
Martin Cech 73418ab787 Merge pull request #5343 from ValentinChCloud/fixes
[17.09] Fix tool-shed-config-validate
2018-01-25 10:30:55 -05:00
Martin Cech 0fdb63e5e3 remove charlimit for fetching urls
fixes #5349
this would only allow a number of urls that fit 1024 chars together
moreover it would truncate (and break) the last one
2018-01-19 16:00:56 -05:00
guerler 662440e730 Add quotes 2018-01-19 14:55:57 +01:00
mvdbeek b5d0030b3e Fix history import by file on multi-handler setups
The uploaded archive was going to be deleted before the job started running.
2018-01-19 12:15:16 +01:00
guerler b82676b8ee Switch to transparent readmode for history tarfiles 2018-01-19 12:14:35 +01:00
mvdbeek 5554c2f9b9 Fix import by url for history archive import tool 2018-01-19 12:14:24 +01:00
ValentinChCloud 747309b278 Fix tool-shed-config-validate 2018-01-19 10:28:14 +00:00
Dannon Baker 3c85407ec8 Merge pull request #5331 from mvdbeek/data_manager_reload_fix
[17.09] Prevent reloading when data table is being modified
2018-01-18 10:42:33 -05:00
mvdbeek 8f91ae0db9 Reload tool data tables for 'undeclared_tables'
Thanks @nsoranzo!
2018-01-18 15:25:39 +01:00
mvdbeek 8c1807c287 Trigger reload for each modified data table
In unindeted one level too much in the previous commit, which would only reload
the last table (thanks @dannon). The alternative would be to reload all tables,
but I think this is more efficient.
2018-01-18 15:17:14 +01:00
mvdbeek d94148ff79 Prevent reloading when data table is being modified
Fixes https://github.com/galaxyproject/galaxy/issues/4783.
2018-01-18 15:05:47 +01:00
mvdbeek a847dbd3d5 Fix tool report submission 2018-01-12 13:14:19 +01:00
Nicola Soranzo a81f3e4e8c Merge branch 'release_17.05' into release_17.09
Conflicts:
	lib/galaxy/workflow/modules.py
2018-01-11 15:42:37 +01:00
NCEichner 27c9fff8b9 #5187
In order to get rid of the conda error described in #5187 I raised the version number beginning from which conda is allowed to use the '--offline' parameter again to "4.4"
2018-01-11 13:56:29 +01:00
mvdbeek 7483648b3e Catch error when displaying broken BAM file
This should fix https://github.com/galaxyproject/galaxy/issues/5252.
2018-01-02 11:59:47 +02:00
John Chilton 121285b40b Let ToolProvidedMetadata interface more directly decide if it has failed outputs.
I like this better for three reasons:

- Since usually it is scripts producing this JSON - we have the most control at that point for determining the failure and we don't have to deal with an artificial dependency between the tool's stdio and the output.
- At some point we could potentially allow some datasets to be ok now even though the job fails.
- It is a cleaner interface at the Python level between job finish and output collection IMO (no need for isinstance checking).
2017-12-15 08:34:35 -05:00
mvdbeek 9ee2a7d457 Adjust stderr collection to (Legacy-)ToolProvidedMetadata 2017-12-15 11:23:38 +01:00
mvdbeek 3d2adcd1f3 Restrict reading tool provided metadata to tools that actually provide metadata 2017-12-14 17:49:39 +01:00
mvdbeek a1f399c451 Read in stderr form galaxy.json
before checking whether stderr and exit code combination should result in a
failed job. This should fix https://github.com/galaxyproject/galaxy/issues/5214.
2017-12-14 17:21:09 +01:00
John Chilton bb39b7d60b Provide UI collection output information for subworkflows.
This fixes #5158 and should provide more correct extension based connection information as well.

Includes a backport of #4346 which fixes #3120.
2017-12-08 15:46:33 -05:00
Dannon Baker e9f05cb1b1 Merge pull request #5099 from mvdbeek/toolshed_install_stability
[17.09] Toolshed install stability improvements
2017-12-07 11:23:31 -05:00
Nicola Soranzo a0eae9510c Merge branch 'release_17.05' into release_17.09 2017-12-07 16:21:38 +00:00
John Chilton fd223e3033 Fix connecting non-input modules to subworkflow inputs.
It has been broken since introduced in 16.01, it just happens that the test tools I normally use have the same complete hack of an output type.
2017-12-06 11:25:47 -05:00
Nicola Soranzo 95579883de More precise SDF sniffer
First check 4th line: if this is conforming, scan up to 10000 lines.
Add 2 test files downloaded from:

https://github.com/rdkit/rdkit/tree/master/Code/GraphMol/FileParsers/test_data
2017-12-02 06:34:02 +01:00
Nicola Soranzo 72aa96c7bc Stricter checks for SDF sniffing
I had a bunch of protein FASTA files being sniffed as 'sdf'.

Also fix https://github.com/galaxyproject/galaxy/issues/4558 .
2017-12-02 06:34:02 +01:00
mvdbeek eb3d2eac20 Fix installation of data manager revision updates
Without this updates of data managers fails with
```
AttributeError: 'NoneType' object has no attribute 'get'
  File "galaxy/web/framework/middleware/sentry.py", line 40, in __call__
    iterable = self.application(environ, start_response)
  File "/bioinfo/guests/mvandenb/galaxy/.venv/local/lib/python2.7/site-packages/paste/recursive.py", line 85, in __call__
    return self.application(environ, start_response)
  File "/bioinfo/guests/mvandenb/galaxy/.venv/local/lib/python2.7/site-packages/paste/httpexceptions.py", line 640, in __call__
    return self.application(environ, start_response)
  File "galaxy/web/framework/base.py", line 136, in __call__
    return self.handle_request(environ, start_response)
  File "galaxy/web/framework/base.py", line 215, in handle_request
    body = method(trans, **kwargs)
  File "galaxy/web/framework/decorators.py", line 98, in decorator
    return func(self, trans, *args, **kwargs)
  File "galaxy/webapps/galaxy/controllers/admin_toolshed.py", line 1849, in update_to_changeset_revision
    persist=True)
  File "tool_shed/galaxy_install/metadata/installed_repository_metadata_manager.py", line 30, in __init__
    metadata_dict=metadata_dict, user=None)
  File "tool_shed/metadata/metadata_generator.py", line 63, in __init__
    self.metadata_dict = {'shed_config_filename': self.shed_config_dict.get('config_filename', None)}
```
2017-11-30 13:47:38 +01:00
mvdbeek 562ea1d5e2 Do not write shed_tool_data_table_config in place
This should prevent errors such as:
```
galaxy.util ERROR 2017-11-17 09:20:12,842 Error parsing file /data/users/mvandenb/gx/config/shed_tool_data_table_conf.xml
Traceback (most recent call last):
  File "lib/galaxy/util/__init__.py", line 217, in parse_xml
    root = tree.parse(fname, parser=ElementTree.XMLParser(target=DoctypeSafeCallbackTarget()))
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse
    self._root = parser.close()
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1654, in close
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: no element found: line 1, column 0
```
reported in https://github.com/galaxyproject/galaxy/issues/5031.
2017-11-30 13:47:38 +01:00
Martin Cech a82d325d18 Merge pull request #5079 from mvdbeek/admin_panel_exception_fix
[17.09] Fix exception in admin panel
2017-11-28 15:49:25 -05:00
Marius van den Beek e903cb708e Merge pull request #5010 from guerler/fix_pages_workflows
[17.09] Do not visit child inputs of invalid conditionals
2017-11-28 16:29:33 +01:00
Eric Rasche 802c943fff Merge pull request #5073 from jmchilton/backport_5045
[17.09] Backport #5045
2017-11-28 14:22:28 +00:00
John Chilton ff3a6b0849 Merge pull request #5086 from mvdbeek/sentry_report_fix
[17.09] Always fill `message` to avoid KeyError for sentry ERROR_TEMPLATE
2017-11-28 08:52:49 -05:00
Marius van den Beek f6aedb0d20 Merge pull request #5042 from abretaud/icm_dt
[17.09] Add ICM datatype for glimmer
2017-11-28 14:47:53 +01:00
mvdbeek 0493763938 Always fill message to avoid KeyError for sentry ERROR_TEMPLATE 2017-11-28 13:58:59 +01:00
mvdbeek 385aaf2bd7 Fix exception in admin panel
TypeError: Non-hexadecimal digit found
  File "galaxy/web/framework/middleware/sentry.py", line 40, in __call__
    iterable = self.application(environ, start_response)
  File "/bioinfo/guests/mvandenb/galaxy/.venv/local/lib/python2.7/site-packages/paste/recursive.py", line 85, in __call__
    return self.application(environ, start_response)
  File "/bioinfo/guests/mvandenb/galaxy/.venv/local/lib/python2.7/site-packages/paste/httpexceptions.py", line 640, in __call__
    return self.application(environ, start_response)
  File "galaxy/web/framework/base.py", line 136, in __call__
    return self.handle_request(environ, start_response)
  File "galaxy/web/framework/base.py", line 215, in handle_request
    body = method(trans, **kwargs)
  File "galaxy/web/framework/decorators.py", line 98, in decorator
    return func(self, trans, *args, **kwargs)
  File "galaxy/webapps/galaxy/controllers/admin_toolshed.py", line 660, in manage_repositories
    return self.repository_installation_grid(trans, **kwd)
  File "galaxy/web/framework/helpers/grids.py", line 85, in __call__
    query = self.build_initial_query(trans, **kwargs)
  File "tool_shed/galaxy_install/grids/admin_toolshed_grids.py", line 334, in build_initial_query
    clause_list.append(self.model_class.table.c.id == trans.security.decode_id(tool_shed_repository_id))
  File "galaxy/web/security/__init__.py", line 107, in decode_id
    return int(id_cipher.decrypt(obj_id.decode('hex')).lstrip("!"))
  File "encodings/hex_codec.py", line 42, in hex_decode
    output = binascii.a2b_hex(input)

This is due to `tool_shed_repository_ids` being a json dump of a list
in certain consitions (noticed this after installing a new repository).
2017-11-27 17:23:50 +01:00
Nicola Soranzo ed162d5a69 Merge pull request #5072 from mvdbeek/metadata_investigation
[BUG][17.09] Fix metadata setting for Otu datatypes
2017-11-27 14:28:55 +00:00
John Chilton a58586f0e4 Cleanup SA objects between workflow invocation scheduling attempts.
This would seem to be a fairly serious memory leak in the abstract but I don't have data that it fixes anything. None the less if it gets into dev and the tests seem to pass I'll open a PR to backport it to at least 17.05 and maybe back even more.
2017-11-24 15:41:13 -05:00
John Chilton f16491cd65 Merge pull request #5070 from mvdbeek/docutils_upgrade
[BUG][[17.09] Fixes galaxy startup when LC_TYPE=UTF-8 on os-x
2017-11-24 15:18:49 -05:00
mvdbeek adfb623224 Fix metadata setting for Otu datatypes
I broke this in https://github.com/galaxyproject/galaxy/pull/4388.
I went through the other changes in that PR, and I believe this should be the
only error.
Figured out through the great detective work of @abernard.
2017-11-24 20:58:22 +01:00
mvdbeek cbc74f99e4 Ignore OSError when chmod'ing integrated_tool_panel_conf.xml
This fixes the first error in https://github.com/galaxyproject/galaxy/issues/5031:
```
Exception in thread ToolConfWatcher.thread:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "lib/galaxy/tools/toolbox/watcher.py", line 138, in check
    self.reload_callback()
  File "lib/galaxy/webapps/galaxy/config_watchers.py", line 24, in <lambda>
    self.tool_config_watcher = get_tool_conf_watcher(reload_callback=lambda: reload_toolbox(self.app), tool_cache=self.app.tool_cache)
  File "lib/galaxy/queue_worker.py", line 92, in reload_toolbox
    _get_new_toolbox(app)
  File "lib/galaxy/queue_worker.py", line 111, in _get_new_toolbox
    new_toolbox = tools.ToolBox(tool_configs, app.config.tool_path, app)
  File "lib/galaxy/tools/__init__.py", line 226, in __init__
    app=app,
  File "lib/galaxy/tools/toolbox/base.py", line 1061, in __init__
    super(BaseGalaxyToolBox, self).__init__(config_filenames, tool_root_dir, app)
  File "lib/galaxy/tools/toolbox/base.py", line 87, in __init__
    self._save_integrated_tool_panel()
  File "lib/galaxy/tools/toolbox/integrated_panel.py", line 46, in _save_integrated_tool_panel
    self._write_integrated_tool_panel_config_file()
  File "lib/galaxy/tools/toolbox/integrated_panel.py", line 106, in _write_integrated_tool_panel_config_file
    os.chmod(self._integrated_tool_panel_config, 0o644)
OSError: [Errno 2] No such file or directory: '/data/users/mvandenb/gx/config/integrated_tool_panel.xml'
```
2017-11-24 18:45:12 +01:00
mvdbeek 8db4288ab5 Fixes galaxy startup when LC_TYPE=UTF-8 on os-x
Closes https://github.com/galaxyproject/galaxy/issues/2645.
2017-11-24 17:13:20 +01:00
Anthony Bretaudeau 0bb7612977 don't read too much 2017-11-21 10:33:22 +01:00
John Chilton a7c8edbaa4 Bug fix - expose proper element_identifier in tool action template expansions. (#5049)
xref https://github.com/galaxyproject/tools-iuc/commit/f57f1bf4816f212b83c08e0e3c3782ebba8b7d9a
2017-11-20 23:11:00 +01:00
E Rasche f60a75c285 extraneous %s 2017-11-20 17:49:23 +00:00
Anthony Bretaudeau f44175b03c copy paste mistake... 2017-11-20 11:51:44 +01:00
Anthony Bretaudeau 1cfdf85879 add ICM datatype for glimmer 2017-11-20 11:41:06 +01:00