terraform-google-modules / terraform-google-project-factory

Creates an opinionated Google Cloud project by using Shared VPC, IAM, and Google Cloud APIs
https://registry.terraform.io/modules/terraform-google-modules/project-factory/google
Apache License 2.0
826 stars 535 forks source link

running the lint test errors out on .gitignore'd files #297

Closed ideasculptor closed 4 years ago

ideasculptor commented 4 years ago

test/source.sh gets generated by the integration tests, but then that file causes the lint test to fail because it lacks the correct headers. It is listed in test/.gitignore. Remove the file to get tests to pass, but it would be better to just ignore it.

morgante commented 4 years ago

Good catch, we should add it to the ignored file: https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/build/developer-tools/build/scripts/task_helper_functions.sh#L59

ideasculptor commented 4 years ago

Woah, what the heck is that repo?! Are the terraform-google-modules mostly translations of those CFT templates to terraform code? I've been looking for examples more significant than those found in the google-cloud-fabric repo which actually string all of the modules together in a coherent way, while building my own reference architecture. I've only spent a couple of minutes digging through that repo, but could I maybe find the equivalent of that in there?

I wish I'd known about all of this work before I left Google in 2017. I was bored stiff and underutilized in a satellite office with little potential, so I left, but now here I am doing all of this work for free, instead. PR submission shortly.

morgante commented 4 years ago

Woah, what the heck is that repo?! Are the terraform-google-modules mostly translations of those CFT templates to terraform code?

Essentially, yes. They're human-translated/managed but we try to have DM templates and Terraform modules provide similar functionality.

The other key thing in that repo is the developer-tools image which is used for CI builds.

I've only spent a couple of minutes digging through that repo, but could I maybe find the equivalent of that in there?

Right now, the Fabric repo is probably the best reference. We're hoping to publish some more e2e examples this quarter though.

ideasculptor commented 4 years ago

I suspect this doesn't get fixed until a new release of the module happens (or maybe the cft repo needs a release), but it should go away sooner rather than later now that the fix is merged.

morgante commented 4 years ago

Specifically, it'll get fixed once the tool image here and here are updated to the latest version (0.4.7).

aaron-lane commented 4 years ago

Fixed by #312