Skip to content

test(absurd-daily): trigger kitchen draw fault after idle - #1361

Open
teddashh wants to merge 1 commit into
mainfrom
fix/kitchen-draw-fault-test-20261117
Open

teddashh wants to merge 1 commit into
mainfrom
fix/kitchen-draw-fault-test-20261117

Conversation

@teddashh

@teddashh teddashh commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

改了什麼、為什麼

#1360 的 Verify shard 1 在 UX-7 等不到輕量料理畫面。切菜場景在 320ms 刀具動畫結束後會保留靜止畫面;測試只把 WebGL clear 改成丟錯,未要求下一次繪圖,因此較慢的瀏覽器命令可能完全不觸發錯誤。

測試先退出原生全螢幕並等待場景靜止,再注入錯誤及調整視窗大小,要求一次真正繪圖。保留原本的備援畫面、canvas 清除、進度 1/6、恢復立體畫面後 2/6 與零 pageerror 斷言。只改 absurd-daily 的一個既有測試檔。

怎麼驗證

基準 e491c3ce447fa1431ea7cb40efb14884d7b5b68c,提交 206c6df8937896e486145703730866101d0a82ee。Node 24、隔離 PostgreSQL schema、Chromium,單 worker;所有命令設記憶體與時間上限。

  • npm ci、npm run build 通過。
  • 在舊觸發方式加上 1 秒靜止時間:重現同一 .ck-visual-light 斷言失敗。
  • 修正案例 --grep 'a failed kitchen renderer' --repeat-each=5:5/5 通過。
  • tests/e2e/absurd-daily.spec.ts --grep 'UX-7':5/5 通過,包含載入失敗、context 遺失、真實觸控及完整料理操作。
  • 已提交版本執行 npm run check:pr -- --base e491c3ce447fa1431ea7cb40efb14884d7b5b68c 通過;完整 hosted CI 尚待結果。

check:pr 最後五行:

✓ runtime tests (0 changed) 0.0s

通過:contracts:build、typecheck、module:check、check:runtime-text、git diff --check
CI 預估:模組快速通道(12 個 E2E 規格;以 CI 結果為準)
下一步:若有改畫面可補跑 npm run check:pr -- --e2e,確認無誤後推送並將摘要貼進 PR。

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@teddashh
teddashh enabled auto-merge (squash) November 17, 2026 22:53

@detna-vibe-coding detna-vibe-coding left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

正式審查 206c6df:已核對唯一測試變更及 kitchen-stage resize 實作。靜態料理畫面進入 idle 後,viewport 變化會確實要求 render,避免只替換 clear 卻未觸發故障;既有 fallback、canvas 移除、1/6 進度保留、重試 3D 與 2/6 恢復斷言均保留。Verify 44194258672 四個 UI 分片、ui-e2e 與 verify 均成功,CodeQL 44194258929 成功;此 test-only 選路的 runtime/static 為 skipped,並非重新驗過。未發現新增阻擋缺陷,核准此 head。分支目前 behind,仍須依保護規則同步 main 並驗證,未合併或部署。

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants