-
Notifications
You must be signed in to change notification settings - Fork 1
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: new function have no image #356
fix: new function have no image #356
Conversation
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
/e2e --tests sdk,substrafl --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
/e2e --tests sdk,substrafl --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
/e2e --tests mnist,substrafl --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
/e2e --tests sdk,mnist --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
/e2e --tests sdk,mnist --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
/e2e --tests sdk,mnist --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive,substra-ci=revert/frontend-parse-input |
End to end tests: ❌ FAILURE “Boy, that escalated quickly.” ― Ron Burgundy, Anchorman: The Legend of Ron Burgundy |
/e2e --tests sdk,mnist --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
/e2e --tests substrafl,camelyon --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
End to end tests: ✔️ SUCCESS “To infinity and beyond!” ― Buzz Lightyear, Toy Story |
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
/e2e --tests sdk,mnist,substrafl,camelyon,doc --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
Name: "Updated function name", | ||
Key: "4c67ad88-309a-48b4-8bc4-c2e2c1a87a83", | ||
Name: "Updated function name", | ||
Image: &asset.Addressable{StorageAddress: "test/storage/address", Checksum: "4c67ad88309a48b48bc4c2e2c1a87a83"}, |
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.
I feel like we want to duplicate this test, to check the update of the name / the image, or both?
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.
I added a test that update name only. But as the name cannot be blank (raise an error), I did't add the test where we update the image only.
So we have one test that updates both, and one test that updates the name only.
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
/e2e --tests sdk,mnist,substrafl,camelyon --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
End to end tests: ❌ FAILURE “Rien ne sert de courir ; il faut partir à point.” ― Jean de La Fontaine (Le Lièvre et la Tortue) |
/e2e --tests sdk --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
End to end tests: ❌ FAILURE “Rien ne sert de courir ; il faut partir à point.” ― Jean de La Fontaine (Le Lièvre et la Tortue) |
/e2e --tests sdk --refs orchestrator=fix/new-function-have-no-image,substra-backend=feat/check-image-checksum,substra=feat/rename-function-to-archive,substrafl=feat/rename-function-to-archive |
End to end tests: ✔️ SUCCESS Awesome! 🎉 |
## Description On top of #288. We remove Image from NewFunction, and we create the Addressable Image with empty strings when we register the Function. We create the `getOrAddAddressable` to avoid multiple creation of the empty Image Addressable. ## How has this been tested? <!-- Please describe the tests that you ran to verify your changes. --> ## Checklist - [ ] [changelog](../CHANGELOG.md) was updated with notable changes - [ ] documentation was updated --------- Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Description
On top of #288.
We remove Image from NewFunction, and we create the Addressable Image with empty strings when we register the Function.
We create the
getOrAddAddressable
to avoid multiple creation of the empty Image Addressable.How has this been tested?
Checklist