Test additional tag fix#23
Open
mvdbeek wants to merge 6 commits into
Open
Conversation
We need the exit code in the metadata script to figure out the correct job messages. This would fix ``` FAILED test/functional/test_toolbox_pytest.py::test_tool[detect_errors_test_1] FAILED test/functional/test_toolbox_pytest.py::test_tool[detect_errors_test_2] FAILED test/functional/test_toolbox_pytest.py::test_tool[detect_errors_test_3] FAILED test/functional/test_toolbox_pytest.py::test_tool[detect_errors_test_5] FAILED test/functional/test_toolbox_pytest.py::test_tool[detect_errors_test_9] FAILED test/functional/test_toolbox_pytest.py::test_tool[detect_errors_test_10] ``` that are broken when using `metadata_strategy: extended` (galaxyproject#13551).
Fixes ``` FAILED test/integration_selenium/test_dataset_details_source_transforms.py::DatasetSourceTransformSeleniumIntegrationTestCase::test_displaying_source_transformations_grooming FAILED test/integration_selenium/test_dataset_details_source_transforms.py::DatasetSourceTransformSeleniumIntegrationTestCase::test_displaying_source_transformations_posixlines FAILED test/integration_selenium/test_dataset_details_source_transforms.py::DatasetSourceTransformSeleniumIntegrationTestCase::test_displaying_source_transformations_spaces_to_tabs ```
xref: galaxyproject#13551, fixes ``` galaxy.jobs ERROR 2022-03-15 00:21:29,515 [pN:main,p:2180,tN:LocalRunner.work_thread-3] problem importing job outputs. stdout [] stderr [ Traceback (most recent call last): File "metadata/set.py", line 1, in <module> from galaxy_ext.metadata.set_metadata import set_metadata; set_metadata() File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/metadata/set_metadata.py", line 121, in set_metadata set_metadata_portable() File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/metadata/set_metadata.py", line 291, in set_metadata_portable collect_dynamic_outputs(job_context, output_collections) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/job_execution/output_collect.py", line 147, in collect_dynamic_outputs persist_elements_to_hdca(job_context, elements, hdca, collector=DEFAULT_DATASET_COLLECTOR) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/store/discover.py", line 719, in persist_elements_to_hdca filenames, File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/store/discover.py", line 292, in populate_collection_elements final_job_state=final_job_state, File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/store/discover.py", line 354, in _populate_elements self.add_tags_to_datasets(datasets=element_datasets["datasets"], tag_lists=element_datasets["tag_lists"]) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/store/discover.py", line 576, in add_tags_to_datasets self.tag_handler.add_tags_from_list(user, dataset, tags, flush=False) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/tags.py", line 61, in add_tags_from_list return self.set_tags_from_list(user, item, new_tags_set, flush=flush) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/tags.py", line 75, in set_tags_from_list self.apply_item_tags(user, item, unicodify(new_tags_str, "utf-8"), flush=flush) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/tags.py", line 207, in apply_item_tags self.apply_item_tag(user, item, name, value, flush=flush) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/tags.py", line 179, in apply_item_tag tag = self._get_or_create_tag(lc_name) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/tags.py", line 281, in _get_or_create_tag tag = self._create_tag(scrubbed_tag_str) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/tags.py", line 246, in _create_tag tag = self._create_tag_instance(tag_name) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/tags.py", line 428, in _create_tag_instance tag = super()._create_tag_instance(tag_name) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/tags.py", line 259, in _create_tag_instance Session = sessionmaker(self.sa_session.bind) AttributeError: 'NoneType' object has no attribute 'bind' ] Traceback (most recent call last): File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/jobs/__init__.py", line 1828, in finish import_model_store.perform_import(history=job.history, job=job) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/store/__init__.py", line 209, in perform_import datasets_attrs = self.datasets_properties() File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/store/__init__.py", line 930, in datasets_properties datasets_attrs = load(open(datasets_attrs_file_name)) FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp19s6x278/tmpt0rr8vmw/tmp2mjq6ysx/database/job_working_directory1/000/7/metadata/outputs_populated/datasets_attrs.txt' galaxy.jobs.runners ERROR 2022-03-15 00:21:29,516 [pN:main,p:2180,tN:LocalRunner.work_thread-3] (7/) Job wrapper finish method failed Traceback (most recent call last): File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/jobs/runners/__init__.py", line 594, in _finish_or_resubmit_job job_stderr=job_stderr, File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/jobs/__init__.py", line 1828, in finish import_model_store.perform_import(history=job.history, job=job) File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/store/__init__.py", line 209, in perform_import datasets_attrs = self.datasets_properties() File "/home/runner/work/galaxy/galaxy/galaxy root/lib/galaxy/model/store/__init__.py", line 930, in datasets_properties datasets_attrs = load(open(datasets_attrs_file_name)) FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp19s6x278/tmpt0rr8vmw/tmp2mjq6ysx/database/job_working_directory1/000/7/metadata/outputs_populated/datasets_attrs.txt' ```
Owner
Author
|
/api env_vars="GALAXY_CONFIG_OVERRIDE_METADATA_STRATEGY=extended GALAXY_CONFIG_OVERRIDE_OUTPUTS_TO_WORKING_DIRECTORY=true" |
2 similar comments
Owner
Author
|
/api env_vars="GALAXY_CONFIG_OVERRIDE_METADATA_STRATEGY=extended GALAXY_CONFIG_OVERRIDE_OUTPUTS_TO_WORKING_DIRECTORY=true" |
Owner
Author
|
/api env_vars="GALAXY_CONFIG_OVERRIDE_METADATA_STRATEGY=extended GALAXY_CONFIG_OVERRIDE_OUTPUTS_TO_WORKING_DIRECTORY=true" |
f79eaae to
1aec0ff
Compare
4f2da95 to
cf46c5c
Compare
75cf0bb to
a351bd1
Compare
e2f5703 to
5890212
Compare
85e6819 to
4609a48
Compare
8157203 to
e442c21
Compare
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.
(Please replace this header with a description of your pull request. Please include BOTH what you did and why you made the changes. The "why" may simply be citing a relevant Galaxy issue.)
(If fixing a bug, please add any relevant error or traceback)
(For UI components, it is recommended to include screenshots or screencasts)
How to test the changes?
(Select all options that apply)
License