Skip to content

Mount test data dir read-only in docker#1327

Merged
jmchilton merged 6 commits intogalaxyproject:masterfrom
mvdbeek:mount_test_data_dir_ro
Nov 29, 2022
Merged

Mount test data dir read-only in docker#1327
jmchilton merged 6 commits intogalaxyproject:masterfrom
mvdbeek:mount_test_data_dir_ro

Conversation

@mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Nov 21, 2022

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_volume change 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).

That's an easy fix for data managers that access (test) reference data.
@mvdbeek mvdbeek force-pushed the mount_test_data_dir_ro branch 3 times, most recently from d2bab1a to 352f421 Compare November 22, 2022 12:44
@mvdbeek mvdbeek force-pushed the mount_test_data_dir_ro branch from 352f421 to 3ec6264 Compare November 22, 2022 13:55
@mvdbeek mvdbeek requested a review from nsoranzo November 28, 2022 14:24
Copy link
Collaborator

@bernt-matthias bernt-matthias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@mvdbeek
Copy link
Member Author

mvdbeek commented Nov 28, 2022

I might be wrong, but are the tests skipped? In test (3.7, unit-quick) I found

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)

@mvdbeek
Copy link
Member Author

mvdbeek commented Nov 28, 2022

lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1

that's just a noisy way to fail on an empty file.

@jmchilton jmchilton merged commit 50d88e4 into galaxyproject:master Nov 29, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants