-
Notifications
You must be signed in to change notification settings - Fork 452
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 HfApi.create_repo when repo_type is 'space' #394
Merged
Merged
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8aaa68c
:bug: fix create spaces
nateraw dba8272
:bug: fix create spaces bug
nateraw b6a0549
:sparkles: add spaces sdk types as constant
nateraw e1e9555
:test_tube: add a commit that unskips spaces test
nateraw 976f966
:white_check_mark: skip spaces tests while in beta
nateraw 5c00196
:construction: update cli
nateraw d6c573b
:bug: fix missed merge confict
nateraw 1f36461
:lipstick: style
nateraw ea50acd
:bug: add missing import
nateraw 8f5412e
:art: only hardcode gated param for spaces repos
nateraw 4532084
:white_check_mark: Update spaces tests to use prod
nateraw 652880f
:white_check_mark: use staging endpoint for spaces tests
nateraw 4784508
:fire: remove hack
nateraw File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@SBrandeis Repo updates fail if
gated
is not included as a parameter. Saw this was added recently, so just hardcodedFalse
for now. Is that ok?Referring to moon-landing PR: https://github.com/huggingface/moon-landing/pull/1316
CC @julien-c
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.
API endpoint should probably default to false server-side, @SBrandeis
Does this currently break all repo creation from hf_api, @nateraw? not just spaces, right?
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.
Oh actually its only failing for spaces. Can update accordingly here for now
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.
very weird, but good to hear that =)
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.
all done 😄
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.
Super weird that's it's failing only for spaces 🤔
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.
In the meantime, you can also test in production by adding the
@with_production_testing
decorator to your tests. These will run on the production server instead of the staging, so can be helpful while spaces are unavailable on staging.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.
not a great idea in my opinion, but we've just updated the staging env so
shouldmight work OTB nowThere 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.
Production tests are better than no tests :) if the staging is available, then that's definitely the way to go.
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.
@LysandreJik , after this convo earlier, we got the staging endpoint working 😀. All good!