Repository navigation
fix(workflow): leave room for retries in AI unit tests - #3436
Merged
Merged
Conversation
quanru
marked this pull request as ready for review
November 25, 2026 05:02
EAGzzyCSL
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
packages/core/tests/ai/service/service.test.tsare identical tomain.main, sync withmainand retain its version. The final diff contains only the AI unit workflow and the Taobao screenshot replacement. Both the iOS and deep-locate test files are identical to the current base.CI evidence
Current head
b3af28926includesmainat51c3046c4. The complete AI unit suite finished with 141 passed, 34 skipped. Both Taobao deep-locate cases and the web navigation case passed. All applicable PR checks passed and GitHub reports no merge conflict. AI unit suite · Regular CIOn the previous head
e3fe20eb2: 141 passed, 34 skipped in the complete AI unit suite. Both deep-locate tests and the browser navigation test passed. All applicable PR workflows passed. The first AI run passed both deep-locate tests, then timed out capturing an external page in the separate Web test. Android and Chrome recorder each passed on a same-commit retry. Final AI suite · Regular CI · First AI run · Android retry · Recorder retryOn fix(core): normalize legacy YAML reference images into locate prompts #3419’s Todo case, holding the first model request open exhausted the old 180-second test budget. With the new configuration, a second request started at 85 seconds and returned HTTP 200 at 110 seconds. The original assertions and both healthy controls passed. Same-runner experiment
Against the original PNG, the config-only PR head had 139 passing tests, 2 failures and 34 skips. Both search-area tests exhausted three 80-second attempts on the initial uncropped screenshot. The web and CLI suites passed. Config-only full suite
On a single runner against the live Doubao 2.1 Turbo endpoint, we ran the original, unchanged service test file three times at the 80-second limit. JPEG passed 4/4 active cases, PNG failed both search-area cases, and JPEG passed 4/4 again. The two deep-locate cases took 46–65 seconds per case across the JPEG runs. Alternating fixture encoding
On two runners we replayed the same JPEG and prompt, changing only JSON whitespace and reversing the order. The 219 KB request completed in 33.5 and 35.9 seconds. At 1.34 MB the client recorded request-body transmission complete at 163.3 and 176.0 seconds, and received a full response at 171.1 and 197.9 seconds. All four responses were HTTP 200. Large request first · Small request first
Local verification
pnpm run lintactionlint -shellcheck= -pyflakes= .github/workflows/ai-unit-test.ymlgit diff --check origin/main...HEADpnpm exec nx build @midscene/iospnpm exec tsc --noEmit --pretty false -p packages/ios/tsconfig.jsonpnpm exec nx test @midscene/ios -- tests/unit-test/input-readiness.test.tspnpm exec nx build @midscene/reportandpnpm --filter @midscene/core sync-report-templateto prepare the report template for core testspnpm exec nx test @midscene/core