[Bug]: JS examples CI still invokes Jest after Vitest migration

未關閉
#918 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

已經有一個關聯 PR 被合併了。

  • #925 來自 @ParidelPooya —— 已合併

評估

難度
3/5
預估耗時
1-2 天
新手友好度
55/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
github-actions, javascript, node.js, python

研究方向

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 內容生成。

描述

bug needs-triage
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:

Steps to Reproduce
  1. Use Python SDK checkout db37e61ed0101e092262b7f173c5829d2a35078a, Python 3.14, Node.js 22, and Hatch 1.16.5.

  2. Check out aws/aws-durable-execution-sdk-js at a34bf9288ac6a35def7d15283dbbdb111bdcf1f3 in js-sdk/.

  3. 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 小時
30 天內合併 PR
80

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

aws/aws-durable-execution-sdk-python 的其他 Issue

查看 aws/aws-durable-execution-sdk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。