pipedv1 Terraform plugin fails to parse plans that invoke actions
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go, terraform
- Área
- devops, infrastructure
Línea de trabajo
Empieza por pkg/app/pipedv1/plugin/terraform/provider/terraform.go e inspecciona planHasChangeRegex y parsePlanResult; después, busca las pruebas relacionadas con el análisis de la salida del plan de Terraform. Reproduce el fallo con una línea de resumen que incluya Actions: 1 to invoke. y comprueba que los resúmenes se analicen correctamente con y sin ese sufijo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened:
Since Terraform v1.14.0, a plan that triggers action blocks prints the summary as
Plan: 1 to add, 0 to change, 0 to destroy. Actions: 1 to invoke.
planHasChangeRegex in pkg/app/pipedv1/plugin/terraform/provider/terraform.go ends with to destroy\.$, so it does not match this line. parsePlanResult returns unable to parse plan output, and the TERRAFORM_PLAN stage and plan preview fail.
What you expected to happen:
The plan is parsed as before (1 to add), and the stage continues.
How to reproduce it:
- Use Terraform 1.14.0 or later with this config:
terraform {
required_providers {
local = { source = "hashicorp/local", version = "2.9.1" }
}
}
action "local_command" "notify" {
config {
command = "echo"
arguments = ["deployed"]
}
}
resource "terraform_data" "app" {
input = "v1"
lifecycle {
action_trigger {
events = [after_create, after_update]
actions = [action.local_command.notify]
}
}
}
- Run a TERRAFORM_PLAN stage, or call
provider.Terraform.Planon the directory. It fails withFailed to plan (unable to parse plan output).
Checked with 1.14.0 and 1.17.2. 1.13.5 prints no Actions: suffix and parses fine. pipedv0 has the same regex.
Environment:
pipedversion: pipedv1 at master (2080402c2)control-planeversion: not relevant- Others: Terraform v1.14.0+, hashicorp/local v2.9.1
I'd like to work on this. The fix is to allow an optional Actions: N to invoke. suffix in the regex, with test cases.
- Lenguaje dominante
- Go
- Estrellas
- 1.4k
- Forks
- 403
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 40
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pipe-cd/pipecd
-
kind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Add a community meetings calendar to the websitePosiblemente ocupada @Dhirenderchoudhary la tomó hace 8 días. Abiertoarea/docs community good first issue
Dificultad 2/5 Medio día Aptitud para principiantes 65/100
pipe-cd/pipecd#7648 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
plugin/waitapproval: approvers list is unenforced, allowing approvals from unauthorized usersAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
pipe-cd/pipecd#7643 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
pipedv1: stopSignal handler panics on closed channel upon concurrent or duplicate signal callsQuizá libre de nuevo @darshpatel1052 la tomó hace 11 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pipe-cd/pipecd#7642 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
pipedv1: deployment remains stuck in PENDING when deploy source preparation fails in plannerPosiblemente ocupada @vikash7485 la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
pipe-cd/pipecd#7641 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de pipe-cd/pipecd
Issues similares
-
hive
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
/v1/chat/completions logprobs leave out top_logprobs when none are requestedPosiblemente ocupada @Shizoqua la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
service stage:spec
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[BUG] 172.15.0.0/16 rejected as "not a private LAN address", causing "Pairing port not found"Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
bug(terraform): a `kubernetes_manifest` the scan can't fully read is dropped and nothing says soPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día