[Bug]: JS examples CI still invokes Jest after Vitest migration
Maintainer antworten meist innerhalb von 1 Tag
Ein zugehöriger Pull Request wurde bereits gemerged.
- #925 von @ParidelPooya — gemerged
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions, javascript, node.js, python
- Bereich
- devtools, testing-qa
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 58
- Forks
- 32
- Ø Merge
- 1 T. 6 Std.
- Gemergte PRs (30 T.)
- 80
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus aws/aws-durable-execution-sdk-python
-
enhancement needs-triage
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 72/100
aws/aws-durable-execution-sdk-python#927 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
aws/aws-durable-execution-sdk-python#875 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
aws/aws-durable-execution-sdk-python#794 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 58/100
aws/aws-durable-execution-sdk-python#921 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug pkg:telemetry
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
aws/aws-durable-execution-sdk-python#908 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in aws/aws-durable-execution-sdk-python
Ähnliche Issues
-
enhancement good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
Community
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
kedro-org/kedro-plugins#1575 ·
Maintainer antworten meist innerhalb von 1 Tag
-
hive size:simple
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Significant-Gravitas/AutoGPT#16733 ·
Maintainer antworten meist innerhalb von 1 Tag
-
changelog investigate
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 74/100
ramnes/notion-sdk-py#444 ·