-
Notifications
You must be signed in to change notification settings - Fork 28
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
Pin dandischema
to require the latest schema
version
#1570
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1570 +/- ##
==========================================
+ Coverage 88.34% 88.44% +0.10%
==========================================
Files 78 78
Lines 10735 10735
==========================================
+ Hits 9484 9495 +11
+ Misses 1251 1240 -11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@kabilar This seems to be solving the wrong problem. If the client's schema version is newer than the server's — as the given error message states — then pinning to the latest schema version will just make it so users can't downgrade their |
Thanks @jwodder. Good catch. I misread the error message. |
We will still upgrade the @jwodder Would it be worth it to go ahead with this pull request to pin the From 'dandischema==0.11.0', # schema version 0.6.9 |
@kabilar I don't like the idea of pinning dandischema. What if a new dandischema version is released that doesn't change the schema version but still fixes some bug? If you really need dandischema to only be for the latest schema version, make the requirement be a range with the lower end being the point when that schema version was added. |
Thats fair.
So in this case would |
@kabilar I think that should be |
Sounds good. I have updated it. |
dandischema
to require the latest versiondandischema
to require the latest schema
version
tests are failing, fomr a sample run
looks like unrelated but that should be figured out (e.g. separate PR showing the same fails), and ideally fixed... FWIW yesterday's run seems had failed only in a single run https://github.com/dandi/dandi-cli/actions/runs/13025543642 , so more analysis should be done... assuming it was connection issue, I would restart failing tests now, so see if that would be gone |
Not sure what changed, but it looks like all tests are passing now. |
@kabilar probably they just flaked out due to connection issues or other external factors (redirects etc... as we were observing similar ones in upptime checks) |
🚀 PR was released in |
Fixes #1463
Edit:
We encountered this issue again today withdandi==0.66.4
so I suggest that we pin to the latestdandischema
version.Error message:$ dandi upload -i linc <path_to_ome_zarr>Error: Server requires schema version 0.6.8; client only supports 0.6.9. You may need to upgrade dandi and/or dandischemacc @aaronkanzer @dstansby