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

VCS Integration hangs if repository is empty #1308

Open
mattgrul opened this issue Apr 8, 2024 · 0 comments
Open

VCS Integration hangs if repository is empty #1308

mattgrul opened this issue Apr 8, 2024 · 0 comments
Labels

Comments

@mattgrul
Copy link

mattgrul commented Apr 8, 2024

Terraform Cloud

Terraform Cloud

Terraform version

1.7.5

Terraform Configuration Files

resource "tfe_workspace" "core_workspaces" {
  vcs_repo {
    identifier                 = "repo-name"
    branch                     = "main"
    github_app_installation_id = var.github_app_id
    ingress_submodules         = false
  }
}

Debug Output

Still Creating Workspace...

Expected Behaviour

An error message to display as per the TFC UI:

"Branch isn't ingressable. Ensure your repository is not empty or in the process of being created."

Actual Behavior

When running terraform apply it seems like if the repository is empty when the workspace attempts to be created then the whole command just hangs in the terminal in a cycle of printing:
Still Creating Workspace... [Xm]

In the TFC Cloud UI you get an error message printed it would be nice to incorporate this check into CLI runs otherwise half the resources in the workflow get created before it hits the problematic workspace.

@mattgrul mattgrul added the bug label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant