feat(rstest): add @midscene/rstest package #2450
Draft
Annotations
11 errors and 1 warning
|
Check if script failed
Process completed with exit code 1.
|
|
Run tests:
packages/cli/tests/ai/bin.test.ts#L56
AssertionError: expected [Function] to throw error matching /assertion/i but got 'Command failed with exit code 1: /hom…'
- Expected:
/assertion/i
+ Received:
"Command failed with exit code 1: /home/runner/work/midscene/midscene/packages/cli/bin/midscene /tmp/ci_yaml_d857fedb-1668-4fcc-8ccb-10dd3b461db3.yml
Welcome to @midscene/cli v1.8.4
Executing YAML files...
Scripts:
- /tmp/ci_yaml_d857fedb-1668-4fcc-8ccb-10dd3b461db3.yml
📋 Execution plan
Concurrency: 1
Keep window: false
Headed: false
Continue on error: false
Share browser context: false
Summary output: summary-1779360253690.json
◌ ../../../../../../../tmp/ci_yaml_d857fedb-1668-4fcc-8ccb-10dd3b461db3.yml
✘ ../../../../../../../tmp/ci_yaml_d857fedb-1668-4fcc-8ccb-10dd3b461db3.yml
✘ check content (task 1/1)
error:
Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
📋 Execution Results:
✘ ../../../../../../../tmp/ci_yaml_d857fedb-1668-4fcc-8ccb-10dd3b461db3.yml
✘ check content (task 1/1)
error:
Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
Execution finished:
📊 Execution Summary:
Total files: 1
Successful: 0
Failed: 1
Partial failed: 0
Not executed: 0
Duration: 1.39s
Summary: /home/runner/work/midscene/midscene/packages/cli/midscene_run/output/summary-1779360253690.json
❌ Failed files
/tmp/ci_yaml_d857fedb-1668-4fcc-8ccb-10dd3b461db3.yml
⚠️ Some files failed or were not executed."
❯ tests/ai/bin.test.ts:56:5
|
|
Run tests:
packages/cli/tests/ai/bin.test.ts#L39
ExecaError: Command failed with exit code 1: /home/runner/work/midscene/midscene/packages/cli/bin/midscene /tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml
Welcome to @midscene/cli v1.8.4
Executing YAML files...
Scripts:
- /tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml
📋 Execution plan
Concurrency: 1
Keep window: false
Headed: false
Continue on error: false
Share browser context: false
Summary output: summary-1779360251343.json
◌ ../../../../../../../tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml
✘ ../../../../../../../tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml
✘ local page (task 1/1)
error:
Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
📋 Execution Results:
✘ ../../../../../../../tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml
✘ local page (task 1/1)
error:
Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
Execution finished:
📊 Execution Summary:
Total files: 1
Successful: 0
Failed: 1
Partial failed: 0
Not executed: 0
Duration: 1.26s
Summary: /home/runner/work/midscene/midscene/packages/cli/midscene_run/output/summary-1779360251343.json
❌ Failed files
/tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml
⚠️ Some files failed or were not executed.
❯ getFinalError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/final-error.js:6:9
❯ makeError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/result.js:108:16
❯ getAsyncResult ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:167:4
❯ handlePromise ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:150:17
❯ tests/ai/bin.test.ts:39:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { shortMessage: 'Command failed with exit code 1: /home/runner/work/midscene/midscene/packages/cli/bin/midscene /tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml', command: '/home/runner/work/midscene/midscene/packages/cli/bin/midscene /tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml', escapedCommand: '/home/runner/work/midscene/midscene/packages/cli/bin/midscene /tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml', cwd: '/home/runner/work/midscene/midscene/packages/cli', durationMs: 2643.325212, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '\nWelcome to @midscene/cli v1.8.4\n\n Executing YAML files...\n Scripts:\n - /tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml\n📋 Execution plan\n Concurrency: 1\n Keep window: false\n Headed: false\n Continue on error: false\n Share browser context: false\n Summary output: summary-1779360251343.json\n\u001b[90m◌\u001b[39m \u001b[90m../../../../../../../tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml\u001b[39m\n\u001b[31m✘\u001b[39m \u001b[90m../../../../../../../tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml\u001b[39m\n \u001b[31m✘\u001b[39m local page \u001b[90m(task 1/1)\u001b[39m\n \u001b[90merror:\u001b[39m\n Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html\n\n📋 Execution Results:\n\u001b[31m✘\u001b[39m \u001b[90m../../../../../../../tmp/ci_yaml_991b30ab-71bf-48d3-88ad-f7a61ea32210.yml\u001b[39m\n \u001b[31m✘\u001b[39m local page \u001b[90m(task 1/1)\u001b[39m\n \u001b[90merror:\u001b[39m\n Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html\nExecution finished:\n\n📊 Execution Summary:\n Total files: 1\n Successful: 0\n Failed: 1\n Partial failed: 0\n Not executed: 0\n Duration: 1.26s\n Summary: /home/runner/work/midscene/midscene/pac
|
|
Run tests:
packages/cli/tests/ai/bin.test.ts#L39
ExecaError: Command failed with exit code 1: /home/runner/work/midscene/midscene/packages/cli/bin/midscene /tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml
Welcome to @midscene/cli v1.8.4
Executing YAML files...
Scripts:
- /tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml
📋 Execution plan
Concurrency: 1
Keep window: false
Headed: false
Continue on error: false
Share browser context: false
Summary output: summary-1779360248469.json
◌ ../../../../../../../tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml
✘ ../../../../../../../tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml
✘ local page (task 1/1)
error:
Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
📋 Execution Results:
✘ ../../../../../../../tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml
✘ local page (task 1/1)
error:
Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
Execution finished:
📊 Execution Summary:
Total files: 1
Successful: 0
Failed: 1
Partial failed: 0
Not executed: 0
Duration: 1.48s
Summary: /home/runner/work/midscene/midscene/packages/cli/midscene_run/output/summary-1779360248469.json
❌ Failed files
/tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml
⚠️ Some files failed or were not executed.
❯ getFinalError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/final-error.js:6:9
❯ makeError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/result.js:108:16
❯ getAsyncResult ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:167:4
❯ handlePromise ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:150:17
❯ tests/ai/bin.test.ts:39:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { shortMessage: 'Command failed with exit code 1: /home/runner/work/midscene/midscene/packages/cli/bin/midscene /tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml', command: '/home/runner/work/midscene/midscene/packages/cli/bin/midscene /tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml', escapedCommand: '/home/runner/work/midscene/midscene/packages/cli/bin/midscene /tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml', cwd: '/home/runner/work/midscene/midscene/packages/cli', durationMs: 3161.283405, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '\nWelcome to @midscene/cli v1.8.4\n\n Executing YAML files...\n Scripts:\n - /tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml\n📋 Execution plan\n Concurrency: 1\n Keep window: false\n Headed: false\n Continue on error: false\n Share browser context: false\n Summary output: summary-1779360248469.json\n\u001b[90m◌\u001b[39m \u001b[90m../../../../../../../tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml\u001b[39m\n\u001b[31m✘\u001b[39m \u001b[90m../../../../../../../tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml\u001b[39m\n \u001b[31m✘\u001b[39m local page \u001b[90m(task 1/1)\u001b[39m\n \u001b[90merror:\u001b[39m\n Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html\n\n📋 Execution Results:\n\u001b[31m✘\u001b[39m \u001b[90m../../../../../../../tmp/ci_yaml_d328ecf6-5071-41f6-83db-d38c22bdedb4.yml\u001b[39m\n \u001b[31m✘\u001b[39m local page \u001b[90m(task 1/1)\u001b[39m\n \u001b[90merror:\u001b[39m\n Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html\nExecution finished:\n\n📊 Execution Summary:\n Total files: 1\n Successful: 0\n Failed: 1\n Partial failed: 0\n Not executed: 0\n Duration: 1.48s\n Summary: /home/runner/work/midscene/midscene/pac
|
|
Run tests:
packages/core/tests/ai/service/service.test.ts#L12
Error: Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
❯ tests/ai/service/service.test.ts:12:46
|
|
Run tests:
packages/core/tests/ai/llm-planning/input.test.ts#L23
Error: Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
❯ tests/ai/llm-planning/input.test.ts:23:53
|
|
Run tests:
packages/core/tests/ai/llm-planning/basic.test.ts#L15
Error: Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
❯ tests/ai/llm-planning/basic.test.ts:15:46
|
|
Run tests:
packages/core/tests/ai/extract/extract.test.ts#L11
Error: Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
❯ tests/ai/extract/extract.test.ts:11:53
|
|
Run tests:
packages/core/tests/ai/streaming.test.ts#L18
Error: Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
❯ tests/ai/streaming.test.ts:18:53
|
|
Run tests:
packages/core/tests/ai/llm-section-locator.test.ts#L8
Error: Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
❯ tests/ai/llm-section-locator.test.ts:8:46
|
|
Run tests:
packages/core/tests/ai/llm-inspect.test.ts#L10
Error: Model configuration is incomplete: model name (MIDSCENE_MODEL_NAME) is required. See https://midscenejs.com/model-strategy.html
❯ tests/ai/llm-inspect.test.ts:10:53
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02, pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
background
wait
wait-all
cancel
Loading