You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create a script to aid with migrating from v1.x to v2.0 #1478
To go along with the breaking changes proposed in #1459, we should provide a script that makes it easier to update one's code. For example, TensorFlow did this for upgrading to TF 2.0 (source).
I went through the ASTTransformer PR and it seems fine to me.
I want to try and move on to setting up tests.
Should these tests be ASTTransformer related or general v2 migration tests?
@Olamyy just for the ASTTransformer and code related to this migration script
edit: since I've merged some more code, just wanted to clarify - we're looking for some unit tests for testing the stuff in tools/compatibility/v2 that can also be run from buildspec-unittests.yml. You don't have to fill in tests for everything that's been merged this week, though - I can definitely help out with that :)
@Olamyy what you've got is good; I didn't have too much in mind at the time because, you're right, there's not a lot of code in ASTTransformer. I think I'd also add a test case where there shouldn't be any change with the code.
Closing this issue as we no longer need to track the migration from v1 to v2. This Milestone has been already achieved and this looks like a stale issue.
Activity
Olamyy commentedon May 11, 2020
Hi @laurenyu , would love to contribute to this feature. Are external contributors allowed in the migration? If yes, how can I help?
laurenyu commentedon May 12, 2020
@Olamyy yes! I've just posted a PR (#1492) to start laying some ground work. Take a look, comment with suggestions for refactoring, renaming, etc.
after that, I think the next steps would include:
ASTTransformerclass, and dumping the results into a new fileanything of the above jump out as something you'd like to pick up?
Olamyy commentedon May 13, 2020
I went through the ASTTransformer PR and it seems fine to me.
I want to try and move on to setting up tests.
Should these tests be ASTTransformer related or general v2 migration tests?
laurenyu commentedon May 13, 2020
@Olamyy just for the
ASTTransformerand code related to this migration scriptedit: since I've merged some more code, just wanted to clarify - we're looking for some unit tests for testing the stuff in
tools/compatibility/v2that can also be run from buildspec-unittests.yml. You don't have to fill in tests for everything that's been merged this week, though - I can definitely help out with that :)laurenyu commentedon May 29, 2020
@Olamyy have you had a chance to try working on things here?
Olamyy commentedon May 30, 2020
Hi @laurenyu , I currently have a setup here https://github.com/Olamyy/sagemaker-python-sdk/tree/v2-compability-tests/tests/unit/v2 where I plan to write the tests. I've been able to write a simple function to test the output of the ASTTransformer. here. However, i'm honestly not sure what other thing to test. Could you provide some tips on how you'll go about this for me? This would help me decide what tests I need to write and which are not important.
laurenyu commentedon Jun 2, 2020
@Olamyy what you've got is good; I didn't have too much in mind at the time because, you're right, there's not a lot of code in
ASTTransformer. I think I'd also add a test case where there shouldn't be any change with the code.The other thing is that we use pytest rather than unittest. I added some tests last week for my more recent changes, so that can help with seeing how some of the unit tests in this repo are written: https://github.com/aws/sagemaker-python-sdk/tree/zwei/tests/unit/sagemaker/cli/compatibility/v2
Olamyy commentedon Jun 8, 2020
Hi @laurenyu , I made a PR with the tests here #1555 .
Please, let me know if there's any fix I need to add.
laurenyu commentedon Aug 3, 2020
as we're nearing the release of v2.0, noting what's left:
knikure commentedon Apr 15, 2024
Closing this issue as we no longer need to track the migration from v1 to v2. This Milestone has been already achieved and this looks like a stale issue.
fix: overriding instance specific fields in config components (aws#1478)
feature: model optimization (#4775)
feature: model optimization (aws#4775)