-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/aws_codebuild_project: Implements git_submodules_config block #10952
Conversation
Current CI build fails due to merged PR #9115 |
This has been opened for a few weeks, I know it isn't a popular request or anything, but it is a very small change which would make the life of a few people a lot easier. Anything that needs to be done in order to get this reviewed? |
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.
Hi @jValdron 👋 Thank you for submitting this. Overall its looking pretty good, just some testing and documentation adjustments and this should be good to merge. Please reach out if you have any questions or do not have time to implement the feedback items.
Adjusts hash values for CodeBuildProject/CodeCommit related test, adds a new test for GitSubmodulesConfig with Secondary Sources and a few nit fixes
Thanks @bflad for taking the time to review this! :) |
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.
Looks great, thanks for those updates, @jValdron 🚀
Output from acceptance testing:
--- PASS: TestAccAWSCodeBuildProject_ARMContainer (92.62s)
--- PASS: TestAccAWSCodeBuildProject_Artifacts_ArtifactIdentifier (47.04s)
--- PASS: TestAccAWSCodeBuildProject_Artifacts_EncryptionDisabled (66.34s)
--- PASS: TestAccAWSCodeBuildProject_Artifacts_Location (192.93s)
--- PASS: TestAccAWSCodeBuildProject_Artifacts_Name (52.07s)
--- PASS: TestAccAWSCodeBuildProject_Artifacts_NamespaceType (56.03s)
--- PASS: TestAccAWSCodeBuildProject_Artifacts_OverrideArtifactName (131.45s)
--- PASS: TestAccAWSCodeBuildProject_Artifacts_Packaging (43.52s)
--- PASS: TestAccAWSCodeBuildProject_Artifacts_Path (83.45s)
--- PASS: TestAccAWSCodeBuildProject_Artifacts_Type (52.39s)
--- PASS: TestAccAWSCodeBuildProject_BadgeEnabled (43.37s)
--- PASS: TestAccAWSCodeBuildProject_basic (44.80s)
--- PASS: TestAccAWSCodeBuildProject_BuildTimeout (157.79s)
--- PASS: TestAccAWSCodeBuildProject_Cache (144.10s)
--- PASS: TestAccAWSCodeBuildProject_Description (80.83s)
--- PASS: TestAccAWSCodeBuildProject_EncryptionKey (62.33s)
--- PASS: TestAccAWSCodeBuildProject_Environment_Certificate (56.64s)
--- PASS: TestAccAWSCodeBuildProject_Environment_EnvironmentVariable (133.92s)
--- PASS: TestAccAWSCodeBuildProject_Environment_EnvironmentVariable_Type (69.10s)
--- PASS: TestAccAWSCodeBuildProject_Environment_RegistryCredential (46.80s)
--- PASS: TestAccAWSCodeBuildProject_LogsConfig_CloudWatchLogs (277.31s)
--- PASS: TestAccAWSCodeBuildProject_LogsConfig_S3Logs (270.04s)
--- PASS: TestAccAWSCodeBuildProject_QueuedTimeout (55.61s)
--- PASS: TestAccAWSCodeBuildProject_SecondaryArtifacts (52.52s)
--- PASS: TestAccAWSCodeBuildProject_SecondaryArtifacts_ArtifactIdentifier (114.04s)
--- PASS: TestAccAWSCodeBuildProject_SecondaryArtifacts_EncryptionDisabled (50.52s)
--- PASS: TestAccAWSCodeBuildProject_SecondaryArtifacts_Location (55.77s)
--- PASS: TestAccAWSCodeBuildProject_SecondaryArtifacts_NamespaceType (70.16s)
--- PASS: TestAccAWSCodeBuildProject_SecondaryArtifacts_OverrideArtifactName (46.25s)
--- PASS: TestAccAWSCodeBuildProject_SecondaryArtifacts_Packaging (56.84s)
--- PASS: TestAccAWSCodeBuildProject_SecondaryArtifacts_Path (39.60s)
--- PASS: TestAccAWSCodeBuildProject_SecondaryArtifacts_Type (77.54s)
--- PASS: TestAccAWSCodeBuildProject_SecondarySources_CodeCommit (28.46s)
--- PASS: TestAccAWSCodeBuildProject_SecondarySources_GitSubmodulesConfig (94.98s)
--- PASS: TestAccAWSCodeBuildProject_Source_GitCloneDepth (64.49s)
--- PASS: TestAccAWSCodeBuildProject_Source_GitSubmodulesConfig (253.86s)
--- PASS: TestAccAWSCodeBuildProject_Source_InsecureSSL (235.09s)
--- PASS: TestAccAWSCodeBuildProject_Source_ReportBuildStatus_Bitbucket (93.96s)
--- PASS: TestAccAWSCodeBuildProject_Source_ReportBuildStatus_GitHub (116.11s)
--- PASS: TestAccAWSCodeBuildProject_Source_ReportBuildStatus_GitHubEnterprise (103.51s)
--- PASS: TestAccAWSCodeBuildProject_Source_Type_Bitbucket (42.17s)
--- PASS: TestAccAWSCodeBuildProject_Source_Type_CodeCommit (28.32s)
--- PASS: TestAccAWSCodeBuildProject_Source_Type_CodePipeline (56.95s)
--- PASS: TestAccAWSCodeBuildProject_Source_Type_GitHubEnterprise (45.62s)
--- PASS: TestAccAWSCodeBuildProject_Source_Type_NoSource (27.93s)
--- PASS: TestAccAWSCodeBuildProject_Source_Type_NoSourceInvalid (11.59s)
--- PASS: TestAccAWSCodeBuildProject_Source_Type_S3 (85.86s)
--- PASS: TestAccAWSCodeBuildProject_Tags (102.04s)
--- PASS: TestAccAWSCodeBuildProject_VpcConfig (144.61s)
--- PASS: TestAccAWSCodeBuildProject_WindowsContainer (51.60s)
This has been released in version 2.48.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 for triage. Thanks! |
@@ -1000,6 +1026,21 @@ func expandProjectSourceData(data map[string]interface{}) codebuild.ProjectSourc | |||
} | |||
} | |||
|
|||
// Only valid for CODECOMMIT source types. | |||
if sourceType == codebuild.SourceTypeCodecommit { |
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.
Why is it valid only for Codecommit and not for other providers? It does work for us with GitHub when we set it manually (not through Terraform).
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.
No specific reason except that for some reason, I thought it was only valid for CodeCommit. Not sure where I thought I had seen that, but clearly should work with everything. AWS docs doesn't seem to have anything mentioning that it should be CodeCommit only.
Seeing as this has been merged, and released, I'm not sure what is the best way forward to resolve this.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #9534
Release note for CHANGELOG:
Output from acceptance testing: