[Bug]: JS examples CI still invokes Jest after Vitest migration
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #925 @ParidelPooya による — マージ済み
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- github-actions, javascript, node.js, python
- 領域
- devtools, testing-qa
調査の方向性
Start with the Jest invocation in .github/scripts/js_examples/run.py (around lines 679-696) and the checkout step in .github/workflows/js-examples.yml (lines 51-55). Read how the harness parses the JSON results file, then run hatch run dev-testing:js-examples --js-dir js-sdk --out /tmp/js-examples to reproduce. Done when the harness invokes Vitest's integration config with a JSON reporter, the harness tests and docs are updated, and the workflow passes against the migrated JS SDK.
索引モデルが issue の本文から書いたものです。
説明
Expected Behavior
The JS Examples workflow should run the JS SDK's example tests against the Python local runner using the test runner provided by the checked-out JS SDK.
Actual Behavior
The JS SDK installs and builds successfully, but the Python harness exits before any example tests run:
npm error npx canceled due to missing packages and no YES option: ["[email protected]"]
[js-examples] error: jest wrote no results to .../js-examples/jest.json; see its output above
Process completed with exit code 2.
Observed in both:
- PR #917 CI run.
- An earlier run on main, with the same error and JS revision. This predates #917's version bump and test cleanup.
Steps to Reproduce
-
Use Python SDK checkout
db37e61ed0101e092262b7f173c5829d2a35078a, Python 3.14, Node.js 22, and Hatch 1.16.5. -
Check out
aws/aws-durable-execution-sdk-jsata34bf9288ac6a35def7d15283dbbdb111bdcf1f3injs-sdk/. -
Run:
hatch run dev-testing:js-examples --js-dir js-sdk --out /tmp/js-examples
The harness installs and builds the JS packages, then fails when starting Jest.
SDK Version
Python repository commit db37e61ed0101e092262b7f173c5829d2a35078a (Core 3.1.0 / Testing 1.4.1 release preparation). Also reproduced by CI on main at e4bbbcd5fcc74c1b04c40bb34461e9e0978d7494.
Python Version
3.14.10
Is this a regression?
Yes. The workflow previously passed, for example run 41498565642. It follows JS main, so an upstream test-framework change can break a Python run without a Python behavior change.
Additional Context
The JS SDK migrated from Jest to Vitest in aws/aws-durable-execution-sdk-js#1167. At the failing JS revision, the examples package uses vitest.config.ts and NODE_ENV=integration vitest run; Jest and jest.config.integration.js have been removed.
Python's JS examples harness still invokes:
npx --no-install jest --config jest.config.integration.js ...
The workflow checks out JS main by default.
Update the harness to use Vitest's integration configuration, CLI options, and JSON reporter. Preserve test selection, worker limits, expected-failure handling, and failure detection when results are missing or incomplete. Update the harness tests and documentation, and validate the workflow against the migrated JS SDK. Installing Jest alone would not restore the removed configuration or migrated test code.
- 主要言語
- Python
- スター
- 58
- フォーク
- 32
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 80
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws/aws-durable-execution-sdk-python のほかの issue
-
enhancement needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
aws/aws-durable-execution-sdk-python#927 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aws/aws-durable-execution-sdk-python#875 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
aws/aws-durable-execution-sdk-python#794 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
aws/aws-durable-execution-sdk-python#921 ·
メンテナーはふだん 1 日以内に返信
-
bug pkg:telemetry
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
aws/aws-durable-execution-sdk-python#908 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
aws/aws-durable-execution-sdk-python の issue をすべて見る
似ている issue
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
Community
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kedro-org/kedro-plugins#1575 ·
メンテナーはふだん 1 日以内に返信
-
hive size:simple
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
Significant-Gravitas/AutoGPT#16733 ·
メンテナーはふだん 1 日以内に返信
-
changelog investigate
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
ramnes/notion-sdk-py#444 ·