GoogleCloudPlatform / GoogleCloudPlatform/solution-acceleration-toolkit

integration test fails occasionally

Open
#1,097 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
161
Forks
66
PR merge metrics
No merged PRs in 30d

Description

Relatively often, integration test fails on the first run. Fortunately, it fails within the first 5 minutes and re-running the test from Cloud Build interface has a good chance of success (if there are no other issues).

For example, Build `0e00111a` around log line 850 contains:
```
Step #1 - "Terraform Engine integration tests": Error: Error creating App Engine application: googleapi: Error 403: The caller does not have permission, forbidden
Step #1 - "Terraform Engine integration tests":
Step #1 - "Terraform Engine integration tests": on main.tf line 166, in resource "google_app_engine_application" "cloudbuild_scheduler_app":
Step #1 - "Terraform Engine integration tests": 166: resource "google_app_engine_application" "cloudbuild_scheduler_app" {
Step #1 - "Terraform Engine integration tests":
Step #1 - "Terraform Engine integration tests":
Step #1 - "Terraform Engine integration tests": integration_test.go:113: command [terraform apply -auto-approve] in "/tmp/157127156/cicd": exit status 1
```

I suspect a timing issue with propagation of permissions, but it needs to be tested.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.