-
Notifications
You must be signed in to change notification settings - Fork 41
Feature Group Testing #45
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
Conversation
…n the service_bootstrap.py.
… a tmp folder for testing efficiency of the feature group integration tests.
Hi @BriannaRoskind. Thanks for your PR. I'm waiting for a aws-controllers-k8s member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…after the delete requeue PR is merged.
…the Feature Group DeleteFailed state after the delete requeue PR is merged.
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.
@BriannaRoskind I believe you forgot to git add pkg/resource/featuregroup/
:) In addition, please do remember to write a full PR description and summary message.
Thanks!
-jay
…eation and S3StorageConfig by creating a custom_delta.go file. This sets their default values if the user did not specify them, and it is called via the delta_pre_compare hook (added in generator.yaml).
|
||
// A group of versioned models in the model registry. | ||
type ModelPackageGroup struct { | ||
CreationTime *metav1.Time `json:"creationTime,omitempty"` |
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 see the CreationTime
field has been added to a whole bunch of resources and type definitions... is this because you are using a new(er) version of aws-sdk-go to build the sagemaker-controller? If so, it would be best to regenerate the sagemaker-controller with that new aws-sdk-go version but without adding the new FeatureGroup resource. That way, we can isolate the changes in this PR to only those introduced due to the new FeatureGroup resource. Make sense?
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.
The funny thing is... I don't actually see a change to the go.mod
file in this PR... @BriannaRoskind did you happen to regenerate the sagemaker-controller and pass in a specific aws-sdk-go version to generate the controller with but forgot to change the go.mod
file in the sagemaker-controller repo?
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.
+1 please check this out. types unrelated to this resources are getting added like ModelPackage and Notebook
# time out errors at a 10 second wait period. | ||
_, deleted = k8s.delete_custom_resource(reference, 3, 15) | ||
assert deleted | ||
# TODO: Once the delete requeue PR is merged, |
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.
which PR is the above referring to? :)
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.
good question. I guess she is looking for this https://github.com/aws-controllers-k8s/runtime/pull/21/files
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.
Few comments.
Were you planning to create a separate PR to handle requeueOnCreate until Created?
You can also handle long-running delete like in here - https://github.com/aws-controllers-k8s/elasticache-controller/pull/34/files
|
||
// A group of versioned models in the model registry. | ||
type ModelPackageGroup struct { | ||
CreationTime *metav1.Time `json:"creationTime,omitempty"` |
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.
+1 please check this out. types unrelated to this resources are getting added like ModelPackage and Notebook
generator.yaml
Outdated
- IncompleteSignature | ||
- MissingAuthenticationToken | ||
- NotAuthorized | ||
- ValidationError |
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.
as discussed remove the auth related errors and ValidationError from terminal. Validation mainly because I have seen SM service wrap a lot of different error under this and we cant be sure if all of them are terminal. Auth related because these can be corrected without changing the resource itself
generator.yaml
Outdated
fields: | ||
FailureReason: | ||
is_read_only: true | ||
is_printable: true |
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.
update code gen and use new format aws-controllers-k8s/code-generator#82
} | ||
} | ||
|
||
// ResolvedOutputS3URI has a timestamped generated default value, it cannot be null. |
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.
nit: it cannot be null
is a bit confusing, IMO you can remove these words and the meaning of the sentence will remain same
RoleName=role_name, PolicyArn="arn:aws:iam::aws:policy/AmazonS3FullAccess" | ||
) | ||
# This policy accommodates use of the feature group controller. | ||
iam.attach_role_policy( |
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.
did you check what is present in this policy that is not in SagemakerFullAccess?
# time out errors at a 10 second wait period. | ||
_, deleted = k8s.delete_custom_resource(reference, 3, 15) | ||
assert deleted | ||
# TODO: Once the delete requeue PR is merged, |
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.
good question. I guess she is looking for this https://github.com/aws-controllers-k8s/runtime/pull/21/files
k8s.get_resource_arn(resource) | ||
== get_sagemaker_feature_group(feature_group_name)["FeatureGroupArn"] | ||
) | ||
|
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.
add check for created status
… we still see the ACK.Recoverable Condition being set alternatingly to true/false.
…print format, and removed authorization related errors from the terminal_codes of feature group.
…in test_feature_group.py, but the test file has not yet been tested.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BriannaRoskind The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…est version with wait for Completing status.
… status before asserting we have reached Created status.
Summary:
Generated Feature Group controller code and wrote passing integration tests for the Feature Group controller.
Files Added:
Files Edited: