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

オープン
#1,200 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
typescript
領域
build-system, cli

調査の方向性

まず PR #983 と、--asset-build-concurrency は Docker ベースのビルドにのみ適用されるという注記を確認します。synthesis 中に ILocalBundling.tryBundle() がどのように呼び出されるかを追跡し、それを CLI のワークグラフと比較します。この issue では、aws-cdk-lib と CLI の両方が関係する可能性があると記載されています。完了の条件は、ローカルアセットビルドを並行実行するための、maintainer に承認されたアプローチが得られることです。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
110
フォーク
138
平均マージ
1日 9時間
マージ済み PR(30日)
55

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/aws-cdk-cli のほかの issue

aws/aws-cdk-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。