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

d/aws_sagemaker_prebuilt_ecr_image - Add new deep learning images and enhance test cases #38575

Conversation

deepakbshetty
Copy link
Contributor

@deepakbshetty deepakbshetty commented Jul 28, 2024

Description

d/aws_sagemaker_prebuilt_ecr_image

[1] Sync data source with Sagemaker image repositories
[2] Add new regions to existing image repositories
[3] Add new test cases for each case condition

Relations

Closes #32060

Output from Acceptance Testing

Tested on us-east-1 and eu-west-1

$ make testacc TESTS=TestAccSageMakerPrebuiltECRImageDataSource_* PKG=sagemaker
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/sagemaker/... -v -count 1 -parallel 20 -run='TestAccSageMakerPrebuiltECRImageDataSource_*'  -timeout 360m
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_basic
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_basic
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_region
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_region
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseClarify
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseClarify
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDataWrangler
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDataWrangler
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDebugger
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDebugger
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoInferentiaPyTorch
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoInferentiaPyTorch
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoTensorflowInferentia
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoTensorflowInferentia
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostSparkML
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostSparkML
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostHuggingFaceTEICPU
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostHuggingFaceTEICPU
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerChainer
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerChainer
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerMXNetServingEIA
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerMXNetServingEIA
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerTensorFlowEIA
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerTensorFlowEIA
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningHuggingFacePyTorchTGIInference
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningHuggingFacePyTorchTGIInference
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningNVIDIATritionInference
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningNVIDIATritionInference
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningStabilityAI
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningStabilityAI
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerBasePython
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerBasePython
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerRL
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerRL
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSpark
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSpark
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_basic
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerChainer
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningStabilityAI
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerRL
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoInferentiaPyTorch
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDebugger
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningNVIDIATritionInference
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSpark
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostSparkML
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoTensorflowInferentia
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostHuggingFaceTEICPU
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseClarify
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerTensorFlowEIA
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerBasePython
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDataWrangler
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningHuggingFacePyTorchTGIInference
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_region
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerMXNetServingEIA
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDebugger (126.76s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoTensorflowInferentia (131.67s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningStabilityAI (132.46s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseClarify (133.35s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostHuggingFaceTEICPU (135.39s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningHuggingFacePyTorchTGIInference (135.39s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerBasePython (135.57s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_region (135.58s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerRL (136.30s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerMXNetServingEIA (136.60s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerTensorFlowEIA (137.26s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSpark (138.38s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoInferentiaPyTorch (138.67s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostSparkML (138.96s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSagemakerCustomSagemakerChainer (139.21s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_basic (139.48s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDataWrangler (140.05s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningNVIDIATritionInference (140.90s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker  172.852s
...

@deepakbshetty deepakbshetty requested a review from a team as a code owner July 28, 2024 14:52
Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@terraform-aws-provider terraform-aws-provider bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/sagemaker Issues and PRs that pertain to the sagemaker service. size/XL Managed by automation to categorize the size of a PR. labels Jul 28, 2024
@deepakbshetty deepakbshetty force-pushed the f-aws_sagemaker_prebuilt_ecr_image_data_source_add_dlc_images branch from 594c1f6 to 7ea01fa Compare July 28, 2024 15:01
@deepakbshetty deepakbshetty changed the title d/aws_sagemaker_prebuilt_ecr_image - Add new deep learning images and new test cases d/aws_sagemaker_prebuilt_ecr_image - Add new deep learning images and enhance test cases Jul 28, 2024
@deepakbshetty
Copy link
Contributor Author

Dear @DrFaust92, Kindly review.

@deepakbshetty deepakbshetty force-pushed the f-aws_sagemaker_prebuilt_ecr_image_data_source_add_dlc_images branch from 7ea01fa to 6e3f915 Compare July 28, 2024 15:08
@deepakbshetty deepakbshetty force-pushed the f-aws_sagemaker_prebuilt_ecr_image_data_source_add_dlc_images branch from 6e3f915 to 7f24b79 Compare July 28, 2024 19:52
Copy link
Collaborator

@DrFaust92 DrFaust92 left a comment

Choose a reason for hiding this comment

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

LGTM

@DrFaust92 DrFaust92 added the enhancement Requests to existing resources that expand the functionality or scope. label Jul 29, 2024
@deepakbshetty
Copy link
Contributor Author

👋 @ewbankkit Wondering if you can consider this for upcoming provider releases. There is considerable demand for this long standing data source request.

@ewbankkit ewbankkit self-assigned this Jul 31, 2024
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Jul 31, 2024
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccSageMakerPrebuiltECRImageDataSource_' PKG=sagemaker ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/sagemaker/... -v -count 1 -parallel 4  -run=TestAccSageMakerPrebuiltECRImageDataSource_ -timeout 360m
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_basic
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_basic
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_region
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_region
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseClarify
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseClarify
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDataWrangler
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDataWrangler
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDebugger
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDebugger
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoInferentiaPyTorch
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoInferentiaPyTorch
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoTensorflowInferentia
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoTensorflowInferentia
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostSparkML
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostSparkML
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostHuggingFaceTEICPU
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostHuggingFaceTEICPU
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerChainer
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerChainer
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerMXNetServingEIA
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerMXNetServingEIA
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerTensorFlowEIA
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerTensorFlowEIA
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningHuggingFacePyTorchTGIInference
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningHuggingFacePyTorchTGIInference
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningNVIDIATritionInference
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningNVIDIATritionInference
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningStabilityAI
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningStabilityAI
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerBasePython
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerBasePython
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerRL
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerRL
=== RUN   TestAccSageMakerPrebuiltECRImageDataSource_caseSpark
=== PAUSE TestAccSageMakerPrebuiltECRImageDataSource_caseSpark
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_basic
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerChainer
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningStabilityAI
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoInferentiaPyTorch
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerChainer (6.61s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostSparkML
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningStabilityAI (6.61s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostHuggingFaceTEICPU
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_basic (6.62s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDataWrangler
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoInferentiaPyTorch (6.64s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDebugger
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostSparkML (6.16s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseClarify
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDebugger (6.23s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerRL
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDataWrangler (6.25s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSpark
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseXGBoostHuggingFaceTEICPU (6.26s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningHuggingFacePyTorchTGIInference
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseClarify (6.13s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningNVIDIATritionInference
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSpark (6.06s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoTensorflowInferentia
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerRL (6.14s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_region
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningHuggingFacePyTorchTGIInference (6.14s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerBasePython
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseDeepLearningNVIDIATritionInference (6.28s)
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerTensorFlowEIA
=== CONT  TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerMXNetServingEIA
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerBasePython (6.17s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseInferentiaNeoTensorflowInferentia (6.30s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_region (6.23s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerMXNetServingEIA (5.80s)
--- PASS: TestAccSageMakerPrebuiltECRImageDataSource_caseSageMakerCustomSageMakerTensorFlowEIA (5.83s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker	36.021s

@ewbankkit
Copy link
Contributor

@deepakbshetty Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 66d0131 into hashicorp:main Jul 31, 2024
47 checks passed
@github-actions github-actions bot added this to the v5.61.0 milestone Jul 31, 2024
@deepakbshetty deepakbshetty deleted the f-aws_sagemaker_prebuilt_ecr_image_data_source_add_dlc_images branch July 31, 2024 18:40
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Aug 2, 2024
Copy link

github-actions bot commented Aug 2, 2024

This functionality has been released in v5.61.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

github-actions bot commented Sep 1, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/sagemaker Issues and PRs that pertain to the sagemaker service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
3 participants