Skip to content

Test: Unit test for update training job #180

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

Merged
merged 103 commits into from
Dec 8, 2022

Conversation

ananth102
Copy link
Member

@ananth102 ananth102 commented Nov 28, 2022

Description of changes:

Merge after #179

Unit tests for update training job.

File changes:
sagemaker-controller/pkg/resource/training_job/testdata/v1alpha1/update/* - Test files
sagemaker-controller/pkg/resource/training_job/testdata/sdkapi/update - Mock api responses
sagemaker-controller/pkg/resource/training_job/testdata/test_suite.yaml - Test cases
sagemaker-controller/pkg/resource/training_job/manager_test_suite_test.go - Change to support update API

@ack-bot
Copy link
Collaborator

ack-bot commented Dec 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ananth102, ryansteakley

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ananth102
Copy link
Member Author

/retest

@ryansteakley ryansteakley merged commit c0e559a into aws-controllers-k8s:main Dec 8, 2022
ryansteakley pushed a commit to ryansteakley/sagemaker-controller that referenced this pull request Jan 19, 2024
* feat: warm pool

* added custom code

* test: unit tests

* fix: hack for HPO and warmpool

* fix: futureproofing

* format: reformat one file

* fix: made pr changes

* added unit test

* fix: use conditions instead of requeue error

* unit test fixes

* Feature: Update TrainingJob

* test: added integration test

* fix: corrected hook

* fix: small typo

* fix: corrected spelling/grammar erorrs

* fix: handle invalid update

* refactor: changed comments/terminal condition

* Feature: Update TrainingJob

* preliminary changes

* final test suite

* fix: corrected grammar mistake

* test: added another test and enhanced descriptions.

* updated unit teat

* [test] corrected rebase errors

* .

* fix/test: added nil check and new unit test

* Feature: Update TrainingJob

* test: added integration test

* fix: corrected hook

* fix: small typo

* fix: corrected spelling/grammar erorrs

* fix: handle invalid update

* refactor: changed comments/terminal condition

* updated test

* test: added more cases to improve coverage

* updates comments and removed unnecessary nil check

* fix: do not remove profiler

* regnerated controller

* regenerating controller

* test: unit test change

* pr changes

* unit test and general code changes

* updated unit tests

* updated test

* changed delta

* removed redundant nil check

* refactor: changed variable names

* updated update input logic

* minor refactor

* updated unit test

* changed function to method

* Using requeue on sucess instead of resource synced

* modified unit tests

* fix: setting the status of desired

* updating unit tests

* fixed merge issues

* corrected spelling

* updated descriptions

* changed error strings

* changed error strings

* control flow modifications

* logic improvements and clarifying comments

* new test structure

* testfix

* another fix

* revert test modification

* modified terminal conditions

* updated unit test

* changed error messaged and removed redundant check

* taking out hpo custom code

* eliminate api call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants