Mount test data dir read-only in docker#1327
Merged
jmchilton merged 6 commits intogalaxyproject:masterfrom Nov 29, 2022
Merged
Conversation
That's an easy fix for data managers that access (test) reference data.
d2bab1a to
352f421
Compare
352f421 to
3ec6264
Compare
Collaborator
bernt-matthias
left a comment
There was a problem hiding this comment.
I might be wrong, but are the tests skipped? In test (3.7, unit-quick) I found
tests/test_cmd_test.py::CmdTestTestCase::test_data_manager SKIPPED (...) [ 10%]
tests/test_cmd_test.py::CmdTestTestCase::test_data_manager_docker_mount SKIPPED [ 11%]
Also wondering if the following might be related:
galaxy.util ERROR 2022-11-28 15:45:20,548 [pN:main,p:3073228,tN:MainThread] Error parsing file /tmp/tmpdzfmq09t/galaxy-dev/config
Traceback (most recent call last):
File "/tmp/tmpdzfmq09t/galaxy-dev/lib/galaxy/util/__init__.py", line 271, in parse_xml
tree = etree.parse(fname, parser=parser)
File "src/lxml/etree.pyx", line 3536, in lxml.etree.parse
File "src/lxml/parser.pxi", line 1875, in lxml.etree._parseDocument
File "src/lxml/parser.pxi", line 1901, in lxml.etree._parseDocumentFromURL
File "src/lxml/parser.pxi", line 1805, in lxml.etree._parseDocFromFile
File "src/lxml/parser.pxi", line 1177, in lxml.etree._BaseParser._parseDocFromFile
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "/tmp/tmpdzfmq09t/galaxy-dev/config", line 1
lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1
galaxy.tools.data_manager.manager ERROR 2022-11-28 15:45:20,550 [pN:main,p:3073228,tN:MainThread] There was an error parsing your Data Manager config file "/tmp/tmpdzfmq09t/galaxy-dev/config": Document is empty, line 1, column 1 (config, line 1)
I see this during all my recent tool tests (no data managers).
TIL you can extend a list with tuples Co-authored-by: M Bernt <m.bernt@ufz.de>
Member
Author
Yes, the quick tests are those that don't start galaxy. Full tests are in the nonredundant chunk (https://github.com/galaxyproject/planemo/actions/runs/3566510641/jobs/5993046612#step:8:62) |
Member
Author
that's just a noisy way to fail on an empty file. |
jmchilton
approved these changes
Nov 29, 2022
1 task
bernt-matthias
added a commit
to bernt-matthias/planemo-ci-action
that referenced
this pull request
Jan 29, 2023
bernt-matthias
added a commit
to bernt-matthias/planemo-ci-action
that referenced
this pull request
Jan 29, 2023
bernt-matthias
added a commit
to bernt-matthias/planemo-ci-action
that referenced
this pull request
Jan 29, 2023
mvdbeek
pushed a commit
to galaxyproject/planemo-ci-action
that referenced
this pull request
Jan 30, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a bunch of data manager tests that are failing the weekly iuc tests. I think this started failing after we stopped copying the whole tool directory to tmp.
The additional
--docker_extra_volumechange let's us mount the whole tool repo for tool tests, which would fix test using symlinks to scripts outside of the tool directory, and for the iwc we can just mount in the whole of cvmfs, which means we don't need to use--tool_data_path(which brings additional things in, like watching for changes, which I think is unnecessary in a CI context).