[galaxyproject/galaxy] f52028: Fixes at least 4 more bugs related to sniffing of ...
Branch: refs/heads/release_18.05 Home: https://github.com/galaxyproject/galaxy Commit: f52028f40093af71632e530c79a83bd7148944ed https://github.com/galaxyproject/galaxy/commit/f52028f40093af71632e530c79a83... Author: John Chilton <jmchilton@gmail.com> Date: 2018-05-10 (Thu, 10 May 2018) Changed paths: M lib/galaxy/datatypes/registry.py M lib/galaxy/datatypes/sniff.py A lib/galaxy/datatypes/test/1.fastqsanger.bz2 A lib/galaxy/datatypes/test/1.fastqsanger.gz M test/unit/datatypes/test_datatypes_registry.py Log Message: ----------- Fixes at least 4 more bugs related to sniffing of compressed datatypes. - Incorrect parsing of default auto sniff flag value. - Not respecting flag value when adding to dict of compressed sniffers. - Not checking the right value when checking for compressed datatype instances to add to sniff order. - Not filtering out the sniffers from being automatically added during the default stage of sniffer handling where all types with sniff are added at the end. This last point is the most complicated. I added a hack with #6091 so that the compressed sniffers would only return True if in validation mode or explicitly enabled. I'm not convinced that approached worked and I'm definitely convinced it was a bad approach. The better, cleaner approach is to just always let the sniffer return its truth regardless of validation mode or not and instead only add it to the list of sniffers if it should be enabled. This is what I was assuming would happen but I found this method append_to_sniff_order that was adding sniffers back in that I didn't want added. Commit: 8a58711e391de36b62fc20dc4db5f8ccd55f786d https://github.com/galaxyproject/galaxy/commit/8a58711e391de36b62fc20dc4db5f... Author: John Chilton <jmchilton@gmail.com> Date: 2018-05-10 (Thu, 10 May 2018) Changed paths: M lib/galaxy/datatypes/data.py M tools/data_source/upload.py Log Message: ----------- Remove validate_mode prop for sniffing, no longer needed with previous fixes. This does undo an attempt that Nate made to auto sniff fastq.gz files when they can't be converted anyway, but that was kind of broken in its own way.
From Gitter:
jmchilton: natefoo "# Link mode can't decompress anyway, so enable sniffing for keep-compressed datatypes even when auto_decompress is enabled" Did you test this hack? I get the thought process but it seems like it results in uploaded fastq.gz files defaulting to fastqcssanger.gz? Maybe it didn't at some point though? Nate Coraor: ummmmmmmmmmmm maybe probably not John Chilton: I have four fixes for compressed datatypes that all fall apart because of this hack... can I just use the configured sniff order or do you want me to try to preserve this and write a test case Nate Coraor: nah go ahead and de-hack John Chilton: There is a good argument to be made for making the behavior more consistent anyway right? Cool thanks Commit: 2d103a09bce34ac64a5decdff316a92f9223c54c https://github.com/galaxyproject/galaxy/commit/2d103a09bce34ac64a5decdff316a... Author: John Chilton <jmchilton@gmail.com> Date: 2018-05-10 (Thu, 10 May 2018) Changed paths: M lib/galaxy/datatypes/registry.py Log Message: ----------- Fix sniff_compressed_dynamic_datatypes_default config option not propagating to upload tool. Resolving the default when unspecified in the XML before writing out datatype confs fixes this. This makes this option always explicit in the datatypes conf that is shared with the upload tool. Commit: 67257da24b484f093c6cdba68d4e0d0c358ac571 https://github.com/galaxyproject/galaxy/commit/67257da24b484f093c6cdba68d4e0... Author: John Chilton <jmchilton@gmail.com> Date: 2018-05-11 (Fri, 11 May 2018) Changed paths: M lib/galaxy/datatypes/registry.py Log Message: ----------- Fixes for compressed datatype fixes thanks to @nsoranzo. Commit: f06adba766a987aa8ac59ed99d537008e76a4913 https://github.com/galaxyproject/galaxy/commit/f06adba766a987aa8ac59ed99d537... Author: Martin Cech <marten@bx.psu.edu> Date: 2018-05-11 (Fri, 11 May 2018) Changed paths: M lib/galaxy/datatypes/data.py M lib/galaxy/datatypes/registry.py M lib/galaxy/datatypes/sniff.py A lib/galaxy/datatypes/test/1.fastqsanger.bz2 A lib/galaxy/datatypes/test/1.fastqsanger.gz M test/unit/datatypes/test_datatypes_registry.py M tools/data_source/upload.py Log Message: ----------- Merge pull request #6115 from jmchilton/dynamic_compressed_types_fix_5 [18.05] More compressed datatype sniffing fixes. Compare: https://github.com/galaxyproject/galaxy/compare/f1eaaea24e67...f06adba766a9 **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
participants (1)
-
GitHub