← Back to Pull requests

test(creator): retain count-in RPC proofs across reopen #2484

Closed
unknown closed this pull request without merging on Oct 24, 2026 04:29 UTC
View on GitHub
unknown unknown commented on Oct 24, 2026 04:19 UTC
Author

Summary

成功的 Native COUNT-IN 旅程现在会保存原始 RPC JSON 文件。三条需要重开的旅程在实际reload前保存,afterEach保留失败/普通场景的兜底;按TestInfo附件清单去重,使用默认line reporter也能留存。

 Native COUNT-IN proof
- afterEach读取新window,只附内联body
+ 重开前保存旧window的原始RPC JSON,并附文件路径
+ afterEach兜底,成功用例必须恰有一个JSON文件附件

Related Issue

Relates to #2112 and #2233. 版本/候选、完整故障组合、S5/I2c及设备验收继续待办。

Evidence

  • Before: #2483原24条报告中,7条Native只有4份inline RPC,3条实际reopen后丢失旧window日志;7条均没有named RPC文件。同一分发/结果目录能找到4份S3 named authority文件作为正对照。新文件留存断言在旧实现完整7条旅程上 7 FAIL/109.673s,全在afterEach同一artifact断言,原音乐/Truth/reopen腿已执行。

  • After: 同产物、同原7条Native完整选择 7/7 PASS/98.533s;默认line reporter、无JSON reporter。7份named文件和7份对应附件逐字节一致,1523条原COUNT-IN inspect请求的原ID/Native dispatch ID/response ID、1000ms请求预算读回一致,7次genuine positive consume、2次真实stall完整留存。三个重开用例均有原日志,无重复附件。
  • Verification

  • Node26 node --check tests/platform/web/creator/creator_web_count_in.spec.mjs: PASS。

  • owned官方分发服务及原PCM observer route下:npm --prefix tests/platform/web test -- --project=chromium --workers=1 creator/creator_web_count_in.spec.mjs,完整7/7 PASS,wrapper实际exit0/98.533s;原PCM边界/Master隔离/混音/resample、真实held duration、跨S Release、取消、Stop、整Truth/Asset字节清单及fresh reopen断言、时限和容差均未改变。

  • 复用 #2483 已验证的官方ordinary package,producer 3dbcfeb414437aea19c5e0230fafee7e31c21e5c 的整个tree等于本base f8a17a1c1a899a2c3bf06319fc32a688ed178b3d。10个dist/双官方fixture/observer和修改的spec/plan哈希均绑定;非conformance包,固定6.0.5/Node26/锁定Chromium,音频首尾built-in、无告警。本层没有新build,不冒充新产物验证。

  • python3 tests/build/ci_change_scope_test.py: staged77/77及committed77/77 PASS;whitespace和clean final commit输入检查通过。新afterEach断言只捕获本Native spec的原RPC文件留存缺陷,包含why/remedy,不新增通用PR/CI job门槛;失败旅程保留原错误。
  • 此前 #2483 的完整24条与unit2046为其实际source的历史结果;本层未重新执行完整Creator/candidate/full lanes,也不清除旧1000ms live/control失败或Host TSan480s TIMEOUT。S5/I2c产品问题、版本/immutable snapshot、35屏、Safari/真机/听感仍待。

    PR Review

    Current head: 381e493462d6788c3a03a434dd602201ec6dd5c5. Await authenticated independent current-head review, actual finding dispositions and conversation/protection checks before guarded merge. No owner waiver.

    CI Scope

    Expected mode: focused
    Expected selected lanes: creator docs_static
    Expected skipped lanes: portal ci_contract core_ubuntu core_asan core_coverage core_macos web_toolchain web_runtime_host web_runtime_lab deploy_contract package
    ci:full required: no
    Reason: 仅两个声明文件,Native spec与计划分别由creator/docs_static已有规则覆盖;creator batch_only只是ownership,完整lane未执行不计PASS。

    Version Management

    Version impact: none
    Reason: 只改测试证据持久化,无产品/SDK/ABI/Contract/Project、manifest/Build/snapshot变化,#2237既有债不变。

    Documentation Impact

    Documentation impact: none
    Reason: 仅计划与测试可观测性,没有当前Portal事实变化。

    Pitfall Impact

    Pitfall impact: none — reason: 现有spec可直接读出reload/afterEach顺序及body-only输出,新的文件断言完整表达该测试留存缺陷;复用公开TestInfo附件API,无新流程/基础设施规则。

    Release Impact

    Release impact: none
    Candidate tag: none
    Profile: none
    Channel: none
    Intent disposition: none
    Release assets: none
    Release gates: none
    Reason: 冻结CI/发布路径未触及,无Release、部署或Channel操作。

    Merge Danger

    Door: two-way

    Blast Radius: Tests

    增加原始测试日志文件和成功场景的文件留存检查;不改Native或Creator产品行为。

    Transition authority

    Authorized transitions: push PR merge cleanup
    用户持续授权完成#2112/逐层合并,AGENTS standing Task authorization适用;清理只限本Task已合、完整patch保留、干净且无活动进程的工位。No tag, Release, deploy, publication, or Channel promotion is implied.

    Diff: 419 lines (+314 / -105) across 5 files Reviewer: endaye Review duration: 9m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.45) × (1 − Review Confidence (0.55)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 419 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 92% · Reviewer familiarity: 35%
    54%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.361
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2484"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 54.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.0% (MEDIUM) · Higher = larger blast radius
    45.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 54.9% · Lower = rushed or shallow review
    54.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.3% · Safe to merge
    20.3%
    Repository