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

Add support for the new golem registry #1044

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

cryptobench
Copy link
Member

I've tested this PR locally to check if everything is working as it should, and I have not come across any problems yet. I have mainly just changed the logic that is used when looking up an image.

There's 1 breaking change and that is that i've renamed image_hash in VmRepo to image as we are not solely relying on hashes in the future.

Please check it out and give comments.

@cryptobench cryptobench requested a review from a team November 9, 2022 20:44


async def main(
subnet_tag, min_cpu_threads, payment_driver=None, payment_network=None, show_usage=False
):
package = await vm.repo(
image_hash="9a3b5d67b0b27746283cb5f287c13eab1beaa12d92a9f536b747c7ae",
image="9a3b5d67b0b27746283cb5f287c13eab1beaa12d92a9f536b747c7ae",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any such breaking changes should follow a proper deprecation process...

BUT, having said that, I don't think that we want to have it implemented that way - rather I think we'd like to explicitly differentiate tags from hashes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree on the deprecation process - i'm just unsure how it's usually done, so please do suggest what to do.

I just think there will be less struggle for requestors if they can just define a single parameter to the package, and insert either a hash or tagged image and then yapapi automatically handles it for them. If we decide to split it up anyway, wouldn't it be smart to include some kind of check to see if they've accidentally used a hash on the tag parameter and vice versa?

@cryptobench
Copy link
Member Author

AutoPEP8 is installed on my IDE. I wasn't aware that Yapapi follows a specific formatter type.

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

Successfully merging this pull request may close these issues.

None yet

2 participants