Open peterjc opened 8 years ago
For what it is worth - I don't think this ever worked with planemo. A fix for this is needed but I'd call it an enhancement more than a bug. My proposed solution was to build test versions of these .loc files - http://planemo.readthedocs.io/en/latest/writing_how_do_i.html#test-index-loc-data. I have recently realized this needs to be revised though for files with default data included - my original attempt at this was conceived of as a way to test bwa for instance where default non-test entries really wouldn't make sense.
So the logic should be something like - if a test variant is available, use it - otherwise use the sample.
That is what I think Galaxy's test framework did - test-data/example.loc
would be the first choice, failing that using tool-data/example.loc.sample
(which would become tool-data/example.loc
on installation).
Not sure if all of this was needed, but after removing all my manual TravisCI tool installation in https://github.com/peterjc/pico_galaxy/commit/0df534215fc9690cef04d9db3c77d78a6c5bdca8 (and just letting planemo do it), this commit was needed to get my tests to pass via TravisCI: https://github.com/peterjc/pico_galaxy/commit/f84c1f773b07fa1eeba0d0a432ed4c1d899740b1
Note that my workaround of manually copying *.loc
files into place is only possible if you have a local Galaxy instance for planemo test --galaxy_root ...
This is impossible when Planemo itself creates the Galaxy instance for testing, e.g. with planemo test --install_galaxy ...
or planemo test --galaxy_branch ... --galaxy_source ...
as currently used in https://github.com/galaxyproject/tools-iuc/blob/master/.travis.yml#L45 and https://github.com/galaxyproject/tools-devteam/blob/master/.travis.yml#L44
See also #96 for linting. Since switching to
planemo test
, I have been having problems withplanemo test
on TravisCI.I provide file
tool-data/effectiveT3.loc.sample
and expect Galaxy orplanemo test
to auto-generatetool-data/effectiveT3.loc
but it does not, resulting in a test failure, e.g.https://travis-ci.org/peterjc/pico_galaxy/jobs/150084912
Running locally,
planemo test tools/effectiveT3/effectiveT3.xml
works when it uses the local Galaxy install'stool-data/effectiveT3.loc
- but it will successful regenerate it from the sample if I remove it:This is running an old planemo 0.24.0dev0 and old Galaxy release_15.10, so the problem on TravisCI could be a regression in either?
I can workaround this on TravisCI using https://github.com/peterjc/pico_galaxy/commit/da75fc4ab1279493acb9b1b8a29910e027ba0e31 (now on master branch), see https://travis-ci.org/peterjc/pico_galaxy/builds/151178750 (test branch) and https://travis-ci.org/peterjc/pico_galaxy/builds/151184006 (master branch)