(integ-runner): `integ-runner` ignores stack list arg for destroy

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
typescript
領域
cli

調査の方向性

integ-runner による cdkCommandOptions.destroy.stacks の処理と、--all を強制する実装を特定してください。issue ではファイルパスもテストパスも指定されていません。まず、意図された解決策がスタックリストを尊重すること、オプションを削除すること、または不整合を文書化することのいずれであるかを判断し、その後、選択した動作が関連するテストまたはドキュメントでカバーされていることを確認してください。

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

説明

bug p2

Today, someone can write this:

integ = new IntegTest(appContext.cdkApp, `IntegTest`, {
  testCases: [stack, otherStack],
  assertionStack: testStack,
  enableLookups: true,
  stackUpdateWorkflow: false,
  cdkCommandOptions: {
    destroy: {
      stacks: [otherStack.node.id], // this is ignored
    },
  },
});

However the stacks argument get's ignored as the implementation is always forcing --all on the run.

We should either:

  • fix the bug
  • document the inconsistency (not preferred), or
  • remove the option completely.

Haven't thought about this a lot, but from an integ-runner product perspective I don't like these options. It makes the tool to generic. If this specificity is needed, someone can just use the Toolkit (CLI or library) directly. So I'm inclined to remove support for most options and only keep some that make sense.

主要言語
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 を短くまとめたダイジェスト。