-
Notifications
You must be signed in to change notification settings - Fork 30
Add EMBER support for automatic upload #1486
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
base: main
Are you sure you want to change the base?
Conversation
There are some conflicts at the moment. |
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.
This looks good to me, sorry for taking so long to review. Some things to decide about the testing infra but should be good to go.
if sandbox is None: | ||
sandbox = False | ||
|
||
assert os.getenv("DANDI_API_KEY"), ( |
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.
why are you removing this?
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.
It's moved up to https://github.com/catalystneuro/neuroconv/pull/1486/files#diff-043deaacc59c256b39a4c09f0fc74d19afcbae754774bb703a95216582b77171R72 dependent on instance
value
May actually prefer introducing a token
input kwarg so a user can decide which token to use (rather than requiring an environmental variable of a particular, possibly misleading name)
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.
instance_token
?
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.
Sure. You want to do that here or in separate PR
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.
Here is OK if you are Ok with it.
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.
Actually upon looking deeper, the core method for upload on DANDI side does not allow specific client to be passed: https://github.com/dandi/dandi-cli/blob/master/dandi/upload.py#L123
And instead autogenerates a client and authenticates it through the required environment variable (again cannot be passed explicitly): https://github.com/dandi/dandi-cli/blob/master/dandi/dandiapi.py#L500
If this changes we can come back to this but for now nothing to do
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.
Uh, i see, Ok.
Damn, the ruamel thing : / https://sourceforge.net/p/ruamel-yaml-clib/tickets/47/ Seems the made a bad release, want to constrain the pyproject with this version as a ceiling temporary? |
It has been blacklisted. Ran into it independently on |
Apparently they released a fix now: https://sourceforge.net/p/ruamel-yaml-clib/tickets/47/ But I see a key issue. Does it sound familiar to you or should I look into the CI to see if there is a secret missing? |
The current test failure in the CI does not seem to reference any lines of code that I have changed here |
Ok, I will take a look, on the other hand the tests on other PRs are not failing so I wonder: |
So I checked this today and the reason the tests are failing is because this comes from a fork. To merge this, I will fork this so it can come from a branch as I don't feel like an overhaul of how do we handle the secrets with branches should block this and this has been opened for a while. See: |
Oh, right. Forgot about that
Actually if you just change the base to a fresh branch off of main, merge into that, then re-open yourself from that branch to main, it should be cleaner than you forking my fork Otherwise that sounds like a good approach in general for staging/testing contributions from forks (as a 2-step process) |
Yes, I also realized that because of the skipif the tests were being skipped form a fork. That is, we had the danger of a false positive.
So I removed the skip ifs and will make the error earlier and more informative. |
@h-mayorquin OK I updated this branch with the updated testing suite split (and workflow adjustments) Please update your other testing setup accordingly |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1486 +/- ##
==========================================
- Coverage 89.90% 89.79% -0.11%
==========================================
Files 155 156 +1
Lines 10016 10065 +49
==========================================
+ Hits 9005 9038 +33
- Misses 1011 1027 +16
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Necessary along the path to NeurodataWithoutBorders/nwb-guide#989
Results can be seen at https://dandi.emberarchive.org/dandiset/000431
Might swap this to a staging Dandiset once that location stabilizes a bit (still a little in the air)