Skip to content

test(e2e): poll for app.json restore convergence (UC-E01 false FAIL) - #846

Merged
rebuildup merged 1 commit into
release-0-14-0from
845
Nov 29, 2026
Merged

rebuildup merged 1 commit into
release-0-14-0from
845

Conversation

@rebuildup

Copy link
Copy Markdown
Contributor

概要

Closes #845

withManagedRootSnapshot の finally は managed root を復元して panel-1 を reload するが、withManagedRootPersistenceLock 経由で serialize された in-flight な settings save が restore 後・reload 中に着地し得る。check が reload 直後に app.json を1回だけ読むと過渡状態を捉えて FAIL する(devnode results-final-205730 UC-E01: check 時点で不一致、suite 終了後のファイルは snapshot と byte 一致=収束は発生していた)。

変更

  • waitForRestoredAppJson helper を追加: readAppJson が pre-case の before と一致するまで最大25秒 poll
  • settings/app.json restored after case の3箇所(UC-E01 locale / UC-E01 UI round-trip / UC-E02 appearance)を一括置換
  • 真の非収束(restore 破壊・永続的 clobber)は引き続き FAIL になる

検証

  • bunx tsc --noEmit / bunx biome check clean
  • 実機再検証は devnode の最終 suite run 完了後に実施予定

Generated with Devin

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: feae7352-ab22-41cd-8215-9f8a32c5ada0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
2817544 2026-11-29T12:16:27.287Z View logs ↗
  • Build: Failed ❌

View logs ↗
6a1d376 2026-11-29T12:06:56.985Z View logs ↗

…read

The snapshot wrapper restores files and best-effort reloads panel-1, but an in-flight settings save serialized through the managed-root persistence lock can land after the restore and be overwritten again by the panel post-reload persist. Sampling app.json once right after reload catches the transient state (UC-E01 false FAIL while the file converges to the snapshot bytes seconds later). Poll until the parsed document matches the pre-case value; genuine non-convergence still fails.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

1 participant