Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

test(e2e): 把 saved-view-filter.spec.ts 晋级进 live-e2e allowlist - #3487

Merged
yinlianghui merged 1 commit into
mainfrom
claude/issue-3472-livespec-allowlist
Aug 6, 2026
Merged

yinlianghui merged 1 commit into
mainfrom
claude/issue-3472-livespec-allowlist

Conversation

@yinlianghui

@yinlianghui yinlianghui commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3472

PR #3471 新增了 e2e/live/saved-view-filter.spec.ts,但按 live-e2e.yml 的晋级政策(spec 先证明无 flake 再入门禁)没有加进 test:e2e:live:ci。本 PR 完成晋级。

前提复核

在 origin/main@d003a8828 上确认:

前提成立。

证据run为什么先在本地跑

live-e2e.yml 的 workflow_dispatch 执行的是 pnpm test:e2e:live:ci,也就是 allowlist 本身。在 spec 尚未入列时,dispatch 一轮不会跑到它 —— 这条 lane 无法为"入列前"的 spec 产生记录。所以政策要求的"先证明无 flake",第一手证据只能来自本地对同一 pinned pair 的连跑;入列之后再由本 PR 自己的 lane 复核(见末节)。

本地栈按 e2e/live/ci/start-backend.sh 原样启动,pin 与 CI 完全一致(e2e/live/ci/backend.env):published @objectstack/*@17.0.0-rc.2 + showcase 元数据 89d2a4eb3f3b,objectstack dev --seed-admin --fresh;console 走 CI 同款 VITE_BASE_PATH=/ 的 vite build + vite preview,/api 代理到后端。

一处环境偏差,如实记录:本地容器的 egress proxy 拒绝 cdn.playwright.dev(403 request rejected: host not permitted),playwright install chromium 无法下载 playwright@1.62.1 对应的 v1234 构建,故本地改用容器预装的 /opt/pw-browsers/chromium-1194(Chromium 141)经 executablePath 覆盖运行。该覆盖写在一个未提交、跑完即删的本地 config 里,分支上没有它。浏览器版本这一处差异已由下面 CI lane 的实跑补齐(CI 用的是 1.62.1 配套的 v1234)。

本地连跑 3/3

✓  1 [chromium] › e2e/live/saved-view-filter.spec.ts:35:1 › a saved view filter reaches $filter as AST, and the server answers 200 (4.9s)
  1 passed (6.3s)

✓  1 [chromium] › e2e/live/saved-view-filter.spec.ts:35:1 › a saved view filter reaches $filter as AST, and the server answers 200 (4.8s)
  1 passed (6.1s)

✓  1 [chromium] › e2e/live/saved-view-filter.spec.ts:35:1 › a saved view filter reaches $filter as AST, and the server answers 200 (3.7s)
  1 passed (5.0s)

三次全绿,无重试(retries: 0),耗时 3.7–4.9s 之间平稳,离 spec 里 20s 的超时很远。

扩容后的 allowlist,本地一轮 5/5

只证明新 spec 自己稳定还不够 —— 它进的是一条 workers: 1、fullyParallel: false 的串行 lane,与既有 spec 共享同一个后端实例和同一份 seed 数据。所以按扩容后的完整列表又跑了一轮:

Running 5 tests using 1 worker

  ✓  1 [chromium] › e2e/live/action-modal.spec.ts:8:1 › a row Edit action opens a modal form and closes (5.0s)
  ✓  2 [chromium] › e2e/live/master-detail.spec.ts:36:1 › Create submits the populated parent in one atomic batch (5.3s)
  ✓  3 [chromium] › e2e/live/master-detail.spec.ts:58:1 › Create with a task line includes the child op referencing the parent (5.7s)
  ✓  4 [chromium] › e2e/live/saved-view-filter.spec.ts:35:1 › a saved view filter reaches $filter as AST, and the server answers 200 (3.2s)
  ✓  5 [chromium] › e2e/live/screen-flow.spec.ts:20:1 › a row flow action renders its screen and resumes the run (4.2s)

  5 passed (24.9s)

5 tests / 4 spec files(master-detail 有两个 test)。新 spec 只读不写(打开一个 shipped saved view 断言计数),不改 seed 数据,这一轮印证了它不干扰前面三个。

本 PR 自己的 Live E2E lane:5/5

Live E2E (informational)(job 92584733512)跑的正是扩容后的 allowlist,对 CI 真实后端 + CI 版本 Chromium。日志里的实跑记录:

> playwright test --config=playwright.live.config.ts screen-flow.spec.ts action-modal.spec.ts master-detail.spec.ts saved-view-filter.spec.ts

Running 5 tests using 1 worker

  ✓  1 [chromium] › e2e/live/action-modal.spec.ts:8:1 › a row Edit action opens a modal form and closes (4.2s)
  ✓  2 [chromium] › e2e/live/master-detail.spec.ts:36:1 › Create submits the populated parent in one atomic batch (4.3s)
  ✓  3 [chromium] › e2e/live/master-detail.spec.ts:58:1 › Create with a task line includes the child op referencing the parent (5.1s)
  ✓  4 [chromium] › e2e/live/saved-view-filter.spec.ts:35:1 › a saved view filter reaches $filter as AST, and the server answers 200 (3.3s)
  ✓  5 [chromium] › e2e/live/screen-flow.spec.ts:20:1 › a row flow action renders its screen and resumes the run (3.6s)

  5 passed (22.6s)

合起来:新 spec 在两套浏览器、两套后端实例上共 5 次连续全绿,无一次重试。

复核提示:这条 lane 是 continue-on-error: true,job 的 conclusion 恒为 success,哪怕步骤是红的 —— 所以上面这段是从 job 日志里取的逐条结果,不是拿 check 的绿勾当证据。(本次 job 只跑了 111 秒,是因为 backend fixture、Playwright 浏览器、pnpm store 三个 cache 全部命中。)

改动

  • package.json:test:e2e:live:ci 末尾追加 saved-view-filter.spec.ts,格式与既有项一致(裸文件名、空格分隔)。
  • e2e/live/saved-view-filter.spec.ts:仅改注释。原文档块写着 "NOT yet in the test:e2e:live:ci allowlist... Promote it in a follow-up",本 PR 之后这句话就是错的,替换为晋级记录。无逻辑改动。

无 changeset:纯测试/CI 配置,不面向用户(沿用 #3437 的先例)。未触碰 .github/workflows/。

顺手记录的 out-of-scope 发现

#3488(observation-class,未修):allowlist 的 spec 名单被逐名手抄在 .github/workflows/live-e2e.yml 头部注释和 content/docs/guide/ci-cd-pipeline.md:233 两处,本 PR 合并后这两处都会漏掉 saved-view-filter。两个文件都在本单的 file fence 之外,故只记录不改。

本地对 pinned live pair(@objectstack/*@17.0.0-rc.2 + showcase@89d2a4eb)
连跑 3 次全绿,再以扩容后的 allowlist 跑一次(5 tests / 4 specs)确认不
干扰既有三个 spec,符合 live-e2e.yml 的晋级政策。

同步修正 spec 顶部已失效的 "NOT yet in the allowlist" 说明。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GTRjn8xBqp75dk7kFupVRt
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
objectui Ignored Ignored Aug 6, 2026 10:06am

Request Review

@yinlianghui
yinlianghui marked this pull request as ready for review August 6, 2026 13:51
@yinlianghui
yinlianghui added this pull request to the merge queue Aug 6, 2026
Merged via the queue into main with commit 5a6cd24 Aug 6, 2026
16 checks passed
@yinlianghui
yinlianghui deleted the claude/issue-3472-livespec-allowlist branch August 6, 2026 13:52
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Aug 10, 2026
…listing specs (objectstack-ai#3508)

The allowlist's single source of truth is the `test:e2e:live:ci` script in
package.json. Its spec names were hand-copied into live-e2e.yml's header
comment and content/docs/guide/ci-cd-pipeline.md, and both went stale the
moment objectstack-ai#3487 promoted saved-view-filter.spec.ts (four specs, both copies
still said three). Replace each enumeration with a pointer to the script.

Fixes objectstack-ai#3488


Claude-Session: https://claude.ai/code/session_01GTRjn8xBqp75dk7kFupVRt

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[e2e] 把 saved-view-filter.spec.ts 晋级进 live-e2e allowlist(先跑一轮 nightly 证明无 flake)

2 participants