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

Concourse CI #91

Merged
merged 20 commits into from
Jan 11, 2019
Merged

Concourse CI #91

merged 20 commits into from
Jan 11, 2019

Conversation

Jberlinsky
Copy link
Contributor

@Jberlinsky Jberlinsky commented Jan 4, 2019

Prepares the repository to be run in Concourse:

  • Uses the base CFT build image
  • Append a random suffix to resources created during test runs that are unique by name

@Jberlinsky
Copy link
Contributor Author

Per conversation with @adrienthebo, he's going to take on the changes to fixtures necessary to get make test_integration_docker running and tearing down to completion, then I'll pick this back up.

@adrienthebo
Copy link
Contributor

We may need to revert #92, as I tested it without doing a clean build from scratch. I'm getting the following when running make test_integration_docker:

       Error: Error running plan: 7 error(s) occurred:

       * module.project-factory.google_project_iam_member.gke_host_agent: google_project_iam_member.gke_host_agent: value of 'count' cannot be computed
       * module.project-factory.google_compute_shared_vpc_service_project.shared_vpc_attachment: google_compute_shared_vpc_service_project.shared_vpc_attachment: value of 'count' cannot be computed
       * module.project-factory.google_compute_subnetwork_iam_member.gke_shared_vpc_subnets: google_compute_subnetwork_iam_member.gke_shared_vpc_subnets: value of 'count' cannot be computed
       * module.project-factory.google_project_iam_member.controlling_group_vpc_membership: google_project_iam_member.controlling_group_vpc_membership: value of 'count' cannot be computed
       * module.project-factory.google_compute_subnetwork_iam_member.group_role_to_vpc_subnets: google_compute_subnetwork_iam_member.group_role_to_vpc_subnets: value of 'count' cannot be computed
       * module.project-factory.google_compute_subnetwork_iam_member.apis_service_account_role_to_vpc_subnets: google_compute_subnetwork_iam_member.apis_service_account_role_to_vpc_subnets: value of 'count' cannot be computed
       * module.project-factory.google_compute_subnetwork_iam_member.service_account_role_to_vpc_subnets: google_compute_subnetwork_iam_member.service_account_role_to_vpc_subnets: value of 'count' cannot be computed

This throws a pretty big gear in the works of creating self contained tests since this may require two Terraform runs to complete. @Jberlinsky you ran into this issue with the GKE module, right?

@adrienthebo
Copy link
Contributor

Rewound this PR to 31019d9 to remove the shared VPC host project creation.

@Jberlinsky Jberlinsky force-pushed the feature/ci branch 2 times, most recently from d369977 to 7639fde Compare January 9, 2019 19:06
@Jberlinsky Jberlinsky changed the title [WIP] Concourse CI Concourse CI Jan 10, 2019
Copy link
Contributor

@morgante morgante left a comment

Choose a reason for hiding this comment

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

Mostly good, just some questions on networking.

test/fixtures/full/main.tf Outdated Show resolved Hide resolved
test/fixtures/full/main.tf Outdated Show resolved Hide resolved
Copy link
Contributor

@aaron-lane aaron-lane left a comment

Choose a reason for hiding this comment

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

Some hygiene issues to address.

test/fixtures/full/extra_outputs.tf Show resolved Hide resolved
test/fixtures/shared/outputs.tf Show resolved Hide resolved
test/fixtures/shared/outputs.tf Outdated Show resolved Hide resolved
test/fixtures/shared/variables.tf Show resolved Hide resolved
test/make.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@morgante morgante left a comment

Choose a reason for hiding this comment

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

Just 2 more nits.

test/fixtures/shared/outputs.tf Outdated Show resolved Hide resolved
Jberlinsky and others added 2 commits January 11, 2019 16:36
Copy link
Contributor

@morgante morgante left a comment

Choose a reason for hiding this comment

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

LGTM

@morgante morgante merged commit 3a1fd58 into master Jan 11, 2019
morgante added a commit that referenced this pull request Jan 11, 2019
This was referenced Jan 11, 2019
@adrienthebo adrienthebo deleted the feature/ci branch January 18, 2019 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants