(cli/core): concurrent asset builds for ILocalBundling.tryBundle()

Abierto
#1,200 0 comentarios 3 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
build-system, cli

Línea de trabajo

Empieza revisando el PR #983 y la nota de que --asset-build-concurrency solo se aplica a builds basados en Docker. Traza cómo se llama a ILocalBundling.tryBundle() durante la síntesis y compáralo con el grafo de trabajo de la CLI; el issue señala que podrían estar implicados tanto aws-cdk-lib como la CLI. Se considerará completado cuando exista un enfoque para builds locales de assets concurrentes aprobado por un maintainer.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

aws-cdk feature-request p1
Describe the feature

In this PR https://github.com/aws/aws-cdk-cli/pull/983 - were introduced concurrent asset builds for Docker builds, but we need the same for local

comment from previous PR

You're right that --asset-build-concurrency only applies to Docker-based asset builds in the CLI's work graph, not to ILocalBundling.

Deferring local bundling to the work graph is a very appealing idea. However, ILocalBundling.tryBundle() is called synchronously during synthesis inside the CDK app process, which is a completely separate phase from the CLI's work graph execution. This would require changes on both the framework side (aws-cdk-lib) and the CLI side, which is a significant architectural change beyond the scope of this PR.

It might be worth opening a separate feature request issue for that so the maintainers can weigh in on the approach. In the meantime, a note in the documentation clarifying that this flag applies to Docker-based builds only could also help avoid confusion.

Use Case

I have 1xxx of golang lambdas builded localy - I would like to use the same --asset-build-concurrency 4 flag for these local builds

Proposed Solution

No response

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
CDK version used

v2.1109.0

Environment details (OS name and version, etc.)

Fedora 44

Lenguaje dominante
TypeScript
Estrellas
110
Forks
138
Merge medio
1 d 9 h
PR fusionados (30 d)
55

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de aws/aws-cdk-cli

Todos los issues de aws/aws-cdk-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.