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

resource/aws_codebuild_project: Implements git_submodules_config block #10952

Merged
merged 3 commits into from
Jan 31, 2020
Merged

resource/aws_codebuild_project: Implements git_submodules_config block #10952

merged 3 commits into from
Jan 31, 2020

Conversation

jValdron
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Closes #9534

Release note for CHANGELOG:

resource/aws_codebuild_project: Implements git_submodules_config block

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSCodeBuildProject_Source_GitSubmodulesConfig'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -count 1 -parallel 20 -run=TestAccAWSCodeBuildProject_Source_GitSubmodulesConfig -timeout 120m
?       github.com/terraform-providers/terraform-provider-aws   [no test files]
=== RUN   TestAccAWSCodeBuildProject_Source_GitSubmodulesConfig
=== PAUSE TestAccAWSCodeBuildProject_Source_GitSubmodulesConfig
=== CONT  TestAccAWSCodeBuildProject_Source_GitSubmodulesConfig
--- PASS: TestAccAWSCodeBuildProject_Source_GitSubmodulesConfig (30.38s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       30.409s
...

@jValdron jValdron requested a review from a team November 20, 2019 18:46
@ghost ghost added size/M Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. service/codebuild Issues and PRs that pertain to the codebuild service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Nov 20, 2019
@jValdron
Copy link
Contributor Author

Current CI build fails due to merged PR #9115

@jValdron
Copy link
Contributor Author

jValdron commented Nov 20, 2019

Fixed with 4e449b0. a18727b created to kick off CI build. Not sure if there is a better way of re-triggering a build, sorry if that's not the proper way!

@jValdron
Copy link
Contributor Author

jValdron commented Jan 2, 2020

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?

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 29, 2020
Copy link
Contributor

@bflad bflad left a 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.

aws/resource_aws_codebuild_project.go Show resolved Hide resolved
aws/resource_aws_codebuild_project_test.go Outdated Show resolved Hide resolved
website/docs/r/codebuild_project.html.markdown Outdated Show resolved Hide resolved
aws/resource_aws_codebuild_project_test.go Show resolved Hide resolved
Adjusts hash values for CodeBuildProject/CodeCommit related test, adds a new test for GitSubmodulesConfig with Secondary Sources and a few nit fixes
@ghost ghost added size/L Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Jan 30, 2020
@jValdron jValdron requested a review from bflad January 30, 2020 13:05
@jValdron
Copy link
Contributor Author

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.

Thanks @bflad for taking the time to review this! :)

@bflad bflad added this to the v2.48.0 milestone Jan 31, 2020
Copy link
Contributor

@bflad bflad left a 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)

@bflad bflad merged commit 32ff704 into hashicorp:master Jan 31, 2020
bflad added a commit that referenced this pull request Jan 31, 2020
@jValdron jValdron deleted the codebuild-gitsubmodules branch February 3, 2020 17:35
@ghost
Copy link

ghost commented Feb 7, 2020

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 {

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).

Copy link
Contributor Author

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.

@ghost
Copy link

ghost commented Mar 2, 2020

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!

@ghost ghost locked and limited conversation to collaborators Mar 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. service/codebuild Issues and PRs that pertain to the codebuild service. size/L 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
Development

Successfully merging this pull request may close these issues.

Support for gitSubmodulesConfig in source block of codebuild_project resource
4 participants