Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TestCaseValidation error: #19705

Open
bernt-matthias opened this issue Feb 26, 2025 · 1 comment
Open

TestCaseValidation error: #19705

bernt-matthias opened this issue Feb 26, 2025 · 1 comment
Assignees

Comments

@bernt-matthias
Copy link
Contributor

Describe the bug

I do not understand the following (for IUC tool tools/ete-toolkit/ete-treeviewer.xml):

Linting tool tools/ete-toolkit/ete-treeviewer.xml
.. WARNING: Test 5: failed to validate assertions. Validation errors are [188 validation errors for RootModel[List[Union[Annotated[Union[has_line_model, has_line_matching_model, has_n_lines_model, has_text_model, has_text_matching_model, not_has_text_model, has_n_columns_model, attribute_is_model, attribute_matches_model, element_text_model, element_text_is_model, element_text_matches_model, has_element_with_path_model, has_n_elements_with_path_model, is_valid_xml_model, xml_element_model, has_json_property_with_text_model, has_json_property_with_value_model, has_h5_attribute_model, has_h5_keys_model, has_archive_member_model, has_size_model, has_image_center_of_mass_model, has_image_channels_model, has_image_depth_model, has_image_frames_model, has_image_height_model, has_image_mean_intensity_model, has_image_mean_object_size_model, has_image_n_labels_model, has_image_width_model], FieldInfo(annotation=NoneType, required=True, discriminator='that')], has_line_model_nested, has_line_matching_model_nested, has_n_lines_model_nested, has_text_model_nested, has_text_matching_model_nested, not_has_text_model_nested, has_n_columns_model_nested, attribute_is_model_nested, attribute_matches_model_nested, element_text_model_nested, element_text_is_model_nested, element_text_matches_model_nested, has_element_with_path_model_nested, has_n_elements_with_path_model_nested, is_valid_xml_model_nested, xml_element_model_nested, has_json_property_with_text_model_nested, has_json_property_with_value_model_nested, has_h5_attribute_model_nested, has_h5_keys_model_nested, has_archive_member_model_nested, has_size_model_nested, has_image_center_of_mass_model_nested, has_image_channels_model_nested, has_image_depth_model_nested, has_image_frames_model_nested, has_image_height_model_nested, has_image_mean_intensity_model_nested, has_image_mean_object_size_model_nested, has_image_n_labels_model_nested, has_image_width_model_nested]]]
0.tagged-union[has_line_model,has_line_matching_model,has_n_lines_model,has_text_model,has_text_matching_model,not_has_text_model,has_n_columns_model,attribute_is_model,attribute_matches_model,element_text_model,element_text_is_model,element_text_matches_model,has_element_with_path_model,has_n_elements_with_path_model,is_valid_xml_model,xml_element_model,has_json_property_with_text_model,has_json_property_with_value_model,has_h5_attribute_model,has_h5_keys_model,has_archive_member_model,has_size_model,has_image_center_of_mass_model,has_image_channels_model,has_image_depth_model,has_image_frames_model,has_image_height_model,has_image_mean_intensity_model,has_image_mean_object_size_model,has_image_n_labels_model,has_image_width_model].has_image_width.min
  Assertion failed, Invalid type found 500 [type=assertion_error, input_value='500', input_type=str]
0.has_line_model_nested.has_line
  Field required [type=missing, input_value={'that': 'has_image_width', 'min': '500'}, input_type=dict]
0.has_line_model_nested.that
  Extra inputs are not permitted [type=extra_forbidden, input_value='has_image_width', input_type=str]
0.has_line_model_nested.min
  Extra inputs are not permitted [type=extra_forbidden, input_value='500', input_type=str]
0.has_line_matching_model_nested.has_line_matching
  Field required [type=missing, input_value={'that': 'has_image_width', 'min': '500'}, input_type=dict]
0.has_line_matching_model_nested.that
  Extra inputs are not permitted [type=extra_forbidden, input_value='has_image_width', input_type=str]
0.has_line_matching_model_nested.min
  Extra inputs are not permitted [type=extra_forbidden, input_value='500', input_type=str]
0.has_n_lines_model_nested.has_n_lines
  Field required [type=missing, input_value={'that': 'has_image_width', 'min': '500'}, input_type=dict]
0.has_n_lines_model_nested.that
  Extra inputs are not permitted [type=extra_forbidden, input_value='has_image_width', input_type=str]
0.has_n_lines_model_nested.min
  Extra inputs are not permitted [type=extra_forbidden, input_value='500', input_type=str]
0.has_text_model_nested.has_text
  Field required [type=missing, input_value={'that': 'has_image_width', 'min': '500'}, input_type=dict]
0.has_text_model_nested.that
  Extra inputs are not permitted [type=extra_forbidden, input_value='has_image_width', input_type=str]
0.has_text_model_nested.min
  Extra inputs are not permitted [type=extra_forbidden, input_value='500', input_type=str]
0.has_text_matching_model_nested.has_text_matching
  Field required [type=missing, input_value={'that': 'has_image_width', 'min': '500'}, input_type=dict]
0.has_text_matching_model_nested.that
  Extra inputs are not permitted [type=extra_forbidden, input_value='has_image_width', input_type=str]
0.has_text_matching_model_nested.min
  Extra inputs are not permitted [type=extra_forbidden, input_value='500', input_type=str]
0.not_has_text_model_nested.not_has_text
  Field required [type=missing, input_value={'that': 'has_image_width', 'min': '500'}, input_type=dict]
0.not_has_text_model_nested.that
  Extra inputs are not permitted [type=extra_forbidden, input_value='has_image_width', input_type=str]
0.not_has_text_model_nested.min
  Extra inputs are not permitted [type=extra_forbidden, input_value='500', input_type=str]
0.has_n_columns_model_nested.has_n_columns
  Field required [type=missing, input_value={'that': 'has_image_width', 'min': '500'}, input_type=dict]
...

Galaxy Version and/or server at which you observed the bug
Galaxy Version: (check <galaxy_url>/api/version if you don't know)
Commit: (run git rev-parse HEAD if you run this Galaxy server)

Browser and Operating System
Operating System: Windows, Linux, macOS
Browser: Firefox, Chrome, Chrome-based, Safari

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@jmchilton jmchilton self-assigned this Feb 26, 2025
@jmchilton
Copy link
Member

Yeah - this is just a dumb @jmchilton bug. Sorry about this. We're validating the conversion of the XML to dictionaries with teh YAML/JSON models which have more strict typing. So while all the methods are annotated as potentially consuming strings (like "500" coming from the XML), the validation done by the linter is not taking that into account. I'm not sure how to fix it but I'm working on it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants