(cli tests): cdk-explorer Jest process does not exit after all 197 tests pass
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #2046 @lazerg による — マージされずにクローズ
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- node.js, typescript
- 領域
- testing
調査の方向性
Start in packages/@aws-cdk/cdk-explorer and reproduce with the supplied Jest command on the specified commit; the report does not identify the resource or pending operation keeping the process alive. Trace open handles or pending work used by the package tests and check whether the finding reproduces outside Linux/WSL2. Done means all 197 tests pass and Jest exits with status 0; linked open PR #2046 may already be working on this issue.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The @aws-cdk/cdk-explorer Jest process stays alive after all unit tests report success on an unmodified aws/aws-cdk-cli checkout at df34416fefcbd5361b9fd3686307f718f3ac1ec1.
This is a test-process termination report. It does not establish that cdk explore, cdk synth or cdk deploy hangs in production.
Expected Behavior
Jest exits with status 0 after the package's tests complete, so the next workspace's tests can run.
Current Behavior
The full package reports:
Test Suites: 14 passed, 14 total
Tests: 197 passed, 197 total
Snapshots: 0 total
Ran all test suites.
The process does not terminate. An initial run with coverage enabled additionally printed:
Jest did not exit one second after the test run has completed.
Repeating with --detectOpenHandles still completed all 197 tests and did not exit; it did not print a handle identifying the cause. No --forceExit was used. The run on the unmodified source commit was bounded to 120 seconds and terminated after that timeout.
Reproduction Steps
Use a disposable checkout of aws/aws-cdk-cli at the commit above, Node.js 24.13.1 and pinned Yarn 4.17.1. Run corepack yarn install --immutable, then corepack yarn compile, with the yarn shim available to child tasks. Both completed successfully here.
From packages/@aws-cdk/cdk-explorer, run:
CI=true TESTING_CDK=1 \
node ../../../node_modules/jest/bin/jest.js \
--ci --runInBand --coverage=false --detectOpenHandles
Wait after Ran all test suites.. In my clean baseline run all assertions completed in about four seconds, but the process remained running until the 120-second limit. No AWS credentials, deployment or custom application is required.
Additional Information/Context
The non-termination was reproduced on the unmodified source commit specified above.
aws/aws-cdk-cli#1217 also concerns a non-exiting Node process, but it describes CLI commands in GitLab/Kubernetes, not this package's Jest suite; I have not established a common root cause. Searches in both CDK repositories for cdk-explorer, Jest exit/hang and matching PRs did not find an equivalent test report. The open explorer integration PR aws/aws-cdk#1748 was inspected, but its discussion did not identify this test-process behavior.
The underlying resource or pending operation is not yet identified. Please treat this as an environment-specific reproduction on Linux/WSL2 until confirmed elsewhere.
Last Known Working CDK Version
Unknown; no known passing version established.
CDK CLI Version
Source checkout df34416fefcbd5361b9fd3686307f718f3ac1ec1; package unit tests, not a published CLI command.
Node.js Version
v24.13.1
OS
Ubuntu 24.04 / WSL2, Linux 6.6.87.2-microsoft-standard-WSL2
Language
TypeScript 5.9.3; Jest 29.
Other information
AI assistance was used in the investigation and preparation of this report. The test commands were executed. No production or test-source workaround was applied, and the non-exiting runs were not counted as clean passes.
- 主要言語
- TypeScript
- スター
- 110
- フォーク
- 138
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 55
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws/aws-cdk-cli のほかの issue
-
aws-cdk bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
aws/aws-cdk-cli#2179 ·
メンテナーはふだん 1 日以内に返信
-
(cli): deploy waits forever when an AWS API call gets no response, because requestTimeout only logs a warning対応中かも @abhiramshaji-cyber が 27 日前に担当しました。 オープンaws-cdk bug p2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
aws/aws-cdk-cli#2097 ·
メンテナーはふだん 1 日以内に返信
-
(bootstrap) FilePublishingRoleDefaultPolicy permission incorrect when FileAssetsBucketKmsKeyId is an ARN value対応中かも @lemon0333 が 95 日前に担当しました。 オープンbug p2
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
aws/aws-cdk-cli#921 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
(garbage-collection): cdk gc takes hours on a large bootstrap bucket対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
aws/aws-cdk-cli#2165 ·
メンテナーはふだん 1 日以内に返信
-
(cli): cdk flags --set always reports no template differences before applying flags対応中かも @go-to-k が 9 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
aws/aws-cdk-cli#2153 ·
メンテナーはふだん 1 日以内に返信
aws/aws-cdk-cli の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
volcengine/OpenViking#8432 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
jupyterlab/eslint-plugin#178 · コメント 2 件 ·
-
bug from-app needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
nightly-labs/openbot#16303 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100