-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fix linkml_files
#310
Fix linkml_files
#310
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #310 +/- ##
==========================================
+ Coverage 62.92% 64.33% +1.40%
==========================================
Files 62 62
Lines 8545 8580 +35
Branches 2437 2440 +3
==========================================
+ Hits 5377 5520 +143
+ Misses 2557 2450 -107
+ Partials 611 610 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx!
I think we should use pathib over os.path
but either is infinitely better than hardcoding slash
just trying to follow the surrounding conventions :) ez to change |
OK i went to swap out Problems:
So this PR
You'll notice a lot of skipped tests. those are the ones that make network requests, which we need to cache in the same way we do with |
linkml_files
ope i guess the tests aren't being run? idk how unittest works. ¯_(ツ)_/¯ if ya want 'em they're there! |
Thanks! I'd like to test this with the main I realize the current SOP for these kinds of tests is suboptimal, so we can strategize ways to improve things. I also realize I'm being very conservative here because as you point out a lot of this is legacy and things didn't break when paths changed.. I'm pretty certain this PR represents a much better way of doing things than before. But another approach might be to eliminate dependency on this file altogether. The metamodel should largely not operate so differently from other models, and including the cross product of all schema modules times formats is not a scalable strategy. |
We could make a manually triggered action that runs the linkml tests along with the PR version of linkml-runtime, and make a branch protection rule that says that action must be run and passing before merging to main? that would make it so we don't have to run all the tests all the time, but since these are tightly coupled packages, ensures that changes here don't break linkml.
I think it would be very useful to be able to at least get a reliable handle to the metamodel schema files from I could go either way on the github links part, i am not really sure when that would be useful.
true, but with caching these tests would be pretty fast:
so if perf is a concern, imo we should drop the link generation part. |
oh absolutely - my point was just that having an enormous list of N x M constants is not necessarily the best way to do this |
ah i see. yes totally agreed - ideally this metadata should come from the generators, no? or maybe projectgen? i'm actually still a little foggy on the workflow for updating the the thing we want here is 'given the metamodel and {projectgen or however the |
on windows, the paths for local model files look like this:
which seems to work, but it probably shouldn't.
change hardcoded
/
separators to useos.path.join
to make paths correct on windowsRelated to: linkml/linkml#1976