Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

LinkML test error #10

Closed
sbliven opened this issue Aug 26, 2024 · 2 comments
Closed

LinkML test error #10

sbliven opened this issue Aug 26, 2024 · 2 comments
Assignees

Comments

@sbliven
Copy link
Member

sbliven commented Aug 26, 2024

Running make all on the linkml_yaml branch fails with the following error:


Traceback (most recent call last):
  File "/home/runner/.cache/pypoetry/virtualenvs/oscem-schemas-HjusQlgA-py3.10/bin/linkml-run-examples", line 8, in <module>
    sys.exit(cli())
  File "/home/runner/.cache/pypoetry/virtualenvs/oscem-schemas-HjusQlgA-py3.10/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/runner/.cache/pypoetry/virtualenvs/oscem-schemas-HjusQlgA-py3.10/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/runner/.cache/pypoetry/virtualenvs/oscem-schemas-HjusQlgA-py3.10/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/runner/.cache/pypoetry/virtualenvs/oscem-schemas-HjusQlgA-py3.10/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/runner/.cache/pypoetry/virtualenvs/oscem-schemas-HjusQlgA-py3.10/lib/python3.10/site-packages/linkml/workspaces/example_runner.py", line 313, in cli
    runner.process_examples()
  File "/home/runner/.cache/pypoetry/virtualenvs/oscem-schemas-HjusQlgA-py3.10/lib/python3.10/site-packages/linkml/workspaces/example_runner.py", line 138, in process_examples
    self.process_examples_from_list(input_examples, fmt, False)
  File "/home/runner/.cache/pypoetry/virtualenvs/oscem-schemas-HjusQlgA-py3.10/lib/python3.10/site-packages/linkml/workspaces/example_runner.py", line 193, in process_examples_from_list
    raise ValueError(f"Example {input_example} failed validation:\n{e}")
ValueError: Example src/data/examples/EMDataset-001.yaml failed validation:
unhashable type: 'Institution'
@sbliven sbliven self-assigned this Aug 26, 2024
@sbliven
Copy link
Member Author

sbliven commented Aug 26, 2024

This is run by the CI, so PRs like #9 fail.

I think it might be python-specific. Running linkml-lint directly doesn't report errors. The cookie cutter uses the python bindings for testing, but we mostly care about the schema itself as well as the jsonschema derived files

@sbliven
Copy link
Member Author

sbliven commented Oct 28, 2024

Fixed now

@sbliven sbliven closed this as completed Oct 28, 2024
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

No branches or pull requests

1 participant