Merge pull request 'fix: DxDataBook 写入前加载、超时证据与有限重试(#33 D6)' (#37) from codex/issue33-d6 into main
This commit was merged in pull request #37.
This commit is contained in:
commit
c114db9f31
12 files changed
+802
-29
No files matched your search
@@ -0,0 +1,26 @@
|
||||
# Issue #33 D6 · DxDataBook 加载失败验证
|
||||
|
||||
现场 `WIFI_RTL8723DU` 的 `LWB01` 在加载目标 `4885-S018D0-M220` 时超时。原报告记录了可见列表窗口,阶段为 `preflight`,本项写入凭据为 `prepared`。同代次此前的项已有写入凭据,项目进入保留和对账流程。类似的失败也出现在 `BOB` 与 `BOB_SHIELD` 的目标 `4885-S033D0-M220` 上。现场空标题窗口 `10750260` 属于同批后续 `WIFI_RTL8192FC` 会话的启动阶段。它与 `LWB01` 超时分属不同 CAD 进程和代次。现场日志能定位超时阶段及保留原因,库服务状态和窗口复建情况仍待同代次采样。
|
||||
|
||||
加载阶段根据 DxDataBook 控件是否已存在采用 45 秒或 20 秒窗口。加载过程重新发现同一窗口下的列表与筛选器,控件重建后重发筛选并重新验证行稳定性。超时前写下本项凭据状态,超时后至多重试一次。重试要求本项仍有身份匹配的 `prepared` 凭据。空窗口处理进一步要求窗口在本次浏览后出现,属于同一 CAD 进程、线程和替换对话框,且替换对话框已被禁用。窗口和子控件证据先写盘,随后才发送关闭消息并观察结果。替换提交、属性恢复和保存继续使用既有的写入凭据与关闭检查点。
|
||||
|
||||
## Windows 验证
|
||||
|
||||
| 场景 | 观测结果 |
|
||||
| --- | --- |
|
||||
| 冷加载列表重建注入 | 原列表 `10` 更新为 `20`,筛选器从 `11` 切换到 `21`,稳定性窗口重新计时,最终使用新列表。 |
|
||||
| 控件枚举与访问之间发生重建 | 筛选消息返回 Win32 `1400`,或列表读取返回 UIA `0x80040201`。两种故障都在当前加载时限内重取控件,访问新筛选器并选中正确的行。 |
|
||||
| 真实 Win32 空窗口,凭据 `prepared` | 私有桌面创建的 HWND `19728876` 属于替换对话框,保存窗口树后只关闭该窗口。加载重试一次后返回目标,原有同 PID 无关窗口仍打开,凭据仍为 `prepared`。 |
|
||||
| 真实 Win32 空窗口,凭据 `mutation_possible` | 窗口 `1183362` 具备同样的结构和归属,仅留下诊断。未重试,窗口与写入凭据均保留。 |
|
||||
| 先前已有暂存写入,当前项失败 | Windows `cscript.exe` 执行生产 VBS 清理过程。当前未写且无暂存项时经过原始状态核验并以 `SaveChanges=False` 关闭。已有前项暂存写入、当前项写入状态无法确认或保存已请求时,保留工程供对账。 |
|
||||
|
||||
真实 HWND 注入运行生产窗口检查和加载重试代码,测试用 Win32 窗口模拟 DxDataBook 的无按钮提示。测试将等待时间缩短到 1.5 秒,筛选响应由测试控制。原始诊断见 [prepared.json](evidence/2026-11-25-issue33-d6/prepared.json) 和 [mutation_possible.json](evidence/2026-11-25-issue33-d6/mutation_possible.json)。
|
||||
|
||||
另一组注入使用原生 ListView、Edit、UIA 行读取和消息驱动生产 `run_native`,CAD COM 属性与菜单资源由替身提供。先销毁筛选框触发 Win32 `1400`,再销毁列表触发 UIA `0x80040201`。程序复取新列表和筛选器,扫描两行后命中精确料号。提交回调只触发一次并读到持久化状态 `mutation_possible`。只有相似料号的对照执行两次筛选后超时,提交数为零,凭据仍为 `prepared`。 [精确命中](evidence/2026-11-25-issue33-d6/native-controls-positive.json) [没有精确命中](evidence/2026-11-25-issue33-d6/native-controls-negative.json)
|
||||
|
||||
定向回归 114 项通过,包含加载、窗口归属、写入凭据、VBS 失败收尾和现有目标 Cell 路径。另执行扩展集成测试时,丢失 UID 的旧测试出现保存回读证明缺失,用 `origin/main` 的原始 VBS 同例复现。
|
||||
|
||||
## 真实工程副本
|
||||
|
||||
- 现场备份 `WIFI_RTL8723DU` 使用本机 `Skyworth_Lib` 中央库替代现场 `S:\mentor_lib.lmc`,BOM 核验找到 `LWB01` 并确认 UID。执行停在 `open_project` 249 秒,回到 `open_sheet` 安全边界时停止,关闭检查点仍观测到工程打开。写入凭据为 `prepared`,工程保护标记保留。此次在进入 DxDataBook 前结束,现场目标件换料及保存回读尚待验证。 [现场副本记录](evidence/2026-11-25-issue33-d6/field-copy.json)
|
||||
- `Audio_D2128` 副本上,`RV05` 从 `4100-CA0000-T7` 换为 `4100-CA0000-T0`。已存在的 DxDataBook 控件在 2.703 秒内返回目标。原生替换报告成功,保存请求和返回各一次,工程完成关闭及重新读取,状态为 `saved_ok/project_committed`,独立网表比对为 `verified`。关闭整个 CAD 进程时超出 15 秒并触发资源释放保护标记,任务目录未产生业务不确定标记。 [正常副本记录](evidence/2026-11-25-issue33-d6/normal-copy.json)
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"mode": "field",
|
||||
"environment": "Windows, DxDesigner 7.9.5, source runtime",
|
||||
"library_mapping": "Skyworth_Lib",
|
||||
"library_lmc_unchanged": true,
|
||||
"project": "WIFI_RTL8723DU.prj",
|
||||
"request_old_new_refdes": [
|
||||
"483C-S018D0-M210",
|
||||
"4885-S018D0-M220",
|
||||
"LWB01"
|
||||
],
|
||||
"attempt": {
|
||||
"session_id": "bf846ff076254e5fbb3bc7ccf1ee859d",
|
||||
"generation": 1,
|
||||
"attempt_id": "44a747ec3c5d440fb60d5a2a407b8037",
|
||||
"job_id": "08d6ebdc6cc540f7b2296a2ef737947a_0",
|
||||
"state": "prepared"
|
||||
},
|
||||
"native": [],
|
||||
"status_log": [
|
||||
"job_id\tstate\tcode\tmessage"
|
||||
],
|
||||
"operation_log_excerpt": [
|
||||
"2026/11/25 9:57:21\tINFO\tstage=open_project target=<copy-root>\\project\\WIFI_RTL8723DU.prj",
|
||||
"2026/11/25 10:01:30\tERROR\tstage=open_sheet number=-2147220644 source=QuickPartReplace.SafeStop description=stopped at a safe boundary before native mutation after inactivity; prewrite pause closure was not proven: %7F3A%5C11%5BF9%8C61",
|
||||
"quick_run_uncertain monitor_failure error=project close checkpoint failed: owned CAD still has a project open; no implicit save or discard\\r\\n"
|
||||
],
|
||||
"independent_verification": [
|
||||
"not_completed"
|
||||
],
|
||||
"uncertain_flags_relative_to_data_root": [
|
||||
"batch-resources/bf846ff076254e5fbb3bc7ccf1ee859d/generation-1/uncertain.flag",
|
||||
"tasks/546160ef-0e8f-4b15-8394-e35f8c562366/quick-run/uncertain.flag"
|
||||
],
|
||||
"queue_outcome": "project remained open at the close checkpoint"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
[
|
||||
{
|
||||
"stage": "preflight",
|
||||
"databook": {
|
||||
"loads": [
|
||||
{
|
||||
"mode": "warm",
|
||||
"timeout_seconds": 20,
|
||||
"attempt_state_before_load": "mutation_possible",
|
||||
"list_handle": 17,
|
||||
"filter_handle": 18,
|
||||
"error": "Native DxDataBook did not finish loading target part: NEW",
|
||||
"elapsed_seconds": 1.594,
|
||||
"dialogs": [
|
||||
{
|
||||
"hwnd": 1183362,
|
||||
"owner": 200514,
|
||||
"pid": 56180,
|
||||
"title": "",
|
||||
"children": [],
|
||||
"browser": false,
|
||||
"dismissible": true
|
||||
}
|
||||
],
|
||||
"attempt_state": "mutation_possible",
|
||||
"retry": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"window_closed": [],
|
||||
"marker_state": "mutation_possible"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"attempt": "prepared",
|
||||
"events": [
|
||||
{
|
||||
"controls": [
|
||||
21630720,
|
||||
528470
|
||||
]
|
||||
},
|
||||
{
|
||||
"edit_hwnd": 528470,
|
||||
"text": "NEW"
|
||||
},
|
||||
{
|
||||
"read_list": 21630720,
|
||||
"row_count": 1
|
||||
},
|
||||
{
|
||||
"read_list": 21630720,
|
||||
"row_count": 1
|
||||
},
|
||||
{
|
||||
"edit_hwnd": 528470,
|
||||
"text": "NEW"
|
||||
},
|
||||
{
|
||||
"read_list": 21630720,
|
||||
"row_count": 1
|
||||
},
|
||||
{
|
||||
"read_list": 21630720,
|
||||
"row_count": 1
|
||||
}
|
||||
],
|
||||
"report": {
|
||||
"native_command": {
|
||||
"id": 33977,
|
||||
"executable": "C:\\Users\\ABS_Windows\\AppData\\Local\\Programs\\Python\\Python312\\python.exe",
|
||||
"trigger": "resource_command"
|
||||
},
|
||||
"native_options": {
|
||||
"1704": {
|
||||
"text": "Option",
|
||||
"checked": true
|
||||
},
|
||||
"1105": {
|
||||
"text": "Option",
|
||||
"checked": true
|
||||
},
|
||||
"1697": {
|
||||
"text": "Option",
|
||||
"checked": true
|
||||
},
|
||||
"1700": {
|
||||
"text": "Option",
|
||||
"checked": true
|
||||
}
|
||||
},
|
||||
"databook": {
|
||||
"main_visible_before_browse": true,
|
||||
"browse_button": 3017658,
|
||||
"loads": [
|
||||
{
|
||||
"mode": "cold",
|
||||
"timeout_seconds": 45,
|
||||
"attempt_state_before_load": "prepared",
|
||||
"list_handle": 21630720,
|
||||
"filter_handle": 528470,
|
||||
"error": "Native DxDataBook did not finish loading target part: NEW",
|
||||
"elapsed_seconds": 3.437,
|
||||
"dialogs": [],
|
||||
"attempt_state": "prepared",
|
||||
"retry": true
|
||||
},
|
||||
{
|
||||
"mode": "warm",
|
||||
"timeout_seconds": 20,
|
||||
"attempt_state_before_load": "prepared",
|
||||
"list_handle": 21630720,
|
||||
"filter_handle": 528470,
|
||||
"error": "Native DxDataBook did not finish loading target part: NEW",
|
||||
"elapsed_seconds": 3.344,
|
||||
"dialogs": [],
|
||||
"attempt_state": "prepared",
|
||||
"retry": false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"error": "TimeoutError('Native DxDataBook did not finish loading target part: NEW')"
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"attempt": "mutation_possible",
|
||||
"events": [
|
||||
{
|
||||
"controls": [
|
||||
21696256,
|
||||
594006
|
||||
]
|
||||
},
|
||||
{
|
||||
"controls": [
|
||||
21761792,
|
||||
659542
|
||||
]
|
||||
},
|
||||
{
|
||||
"dead_edit": 594006,
|
||||
"winerror": 1400
|
||||
},
|
||||
{
|
||||
"edit_hwnd": 659542,
|
||||
"text": "NEW"
|
||||
},
|
||||
{
|
||||
"read_list": 21761792,
|
||||
"row_count": 2
|
||||
},
|
||||
{
|
||||
"controls": [
|
||||
21827328,
|
||||
725078
|
||||
]
|
||||
},
|
||||
{
|
||||
"dead_ui_list": 21761792,
|
||||
"hresult": -2147220991,
|
||||
"exception": "COMError(-2147220991, '\u4e8b\u4ef6\u65e0\u6cd5\u8c03\u7528\u4efb\u4f55\u8ba2\u6237', (None, None, None, 0, None))"
|
||||
},
|
||||
{
|
||||
"edit_hwnd": 725078,
|
||||
"text": "NEW"
|
||||
},
|
||||
{
|
||||
"read_list": 21827328,
|
||||
"row_count": 2
|
||||
},
|
||||
{
|
||||
"read_list": 21827328,
|
||||
"row_count": 2
|
||||
},
|
||||
{
|
||||
"submit": "mutation_possible"
|
||||
}
|
||||
],
|
||||
"report": {
|
||||
"native_command": {
|
||||
"id": 33977,
|
||||
"executable": "C:\\Users\\ABS_Windows\\AppData\\Local\\Programs\\Python\\Python312\\python.exe",
|
||||
"trigger": "resource_command"
|
||||
},
|
||||
"native_options": {
|
||||
"1704": {
|
||||
"text": "Option",
|
||||
"checked": true
|
||||
},
|
||||
"1105": {
|
||||
"text": "Option",
|
||||
"checked": true
|
||||
},
|
||||
"1697": {
|
||||
"text": "Option",
|
||||
"checked": true
|
||||
},
|
||||
"1700": {
|
||||
"text": "Option",
|
||||
"checked": true
|
||||
}
|
||||
},
|
||||
"databook": {
|
||||
"main_visible_before_browse": true,
|
||||
"browse_button": 3017658,
|
||||
"loads": [
|
||||
{
|
||||
"mode": "warm",
|
||||
"timeout_seconds": 20,
|
||||
"attempt_state_before_load": "prepared",
|
||||
"list_handle": 21827328,
|
||||
"filter_handle": 725078,
|
||||
"elapsed_seconds": 6.125
|
||||
}
|
||||
],
|
||||
"list_handle": 21827328,
|
||||
"list_visible": true,
|
||||
"main_visible_after_load": true
|
||||
},
|
||||
"library_row": [
|
||||
"DATA",
|
||||
"NEW",
|
||||
"LIB:EXACT",
|
||||
"",
|
||||
"Exact",
|
||||
"Target"
|
||||
],
|
||||
"slot_count": 1,
|
||||
"row_rectangle": [
|
||||
157,
|
||||
398,
|
||||
769,
|
||||
422
|
||||
],
|
||||
"list_handle": 21827328,
|
||||
"target_text": "NEW",
|
||||
"symbol_text": "LIB:EXACT",
|
||||
"target_submit_enabled": true,
|
||||
"transaction": {
|
||||
"snapshot_sha256": "d36e0c485331eac7b3c0d25de6dbfc5e915b761dd7eb738caf49b69d89640daa",
|
||||
"project_path": "g:\\dx33\\acceptance\\d6-native-controls-03\\positive\\synthetic.prj",
|
||||
"sheet_identity": "MAIN:1",
|
||||
"old_part_number": "OLD",
|
||||
"new_part_number": "NEW",
|
||||
"source_uids": [
|
||||
"uid"
|
||||
],
|
||||
"target_selectors": null,
|
||||
"library_row": [
|
||||
"DATA",
|
||||
"NEW",
|
||||
"LIB:EXACT",
|
||||
"",
|
||||
"Exact",
|
||||
"Target"
|
||||
],
|
||||
"target_symbol": "LIB:EXACT",
|
||||
"slot_count": 1
|
||||
},
|
||||
"stage": "native_replace_verified",
|
||||
"replaced_uids": [
|
||||
"uid"
|
||||
],
|
||||
"promoted_pins": []
|
||||
},
|
||||
"error": null
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"mode": "normal",
|
||||
"environment": "Windows, DxDesigner 7.9.5, source runtime",
|
||||
"library_mapping": "Skyworth_CBB_Lib",
|
||||
"library_lmc_unchanged": true,
|
||||
"project": "Audio_D2128.prj",
|
||||
"request_old_new_refdes": [
|
||||
"4100-CA0000-T7",
|
||||
"4100-CA0000-T0",
|
||||
"RV05"
|
||||
],
|
||||
"attempt": {
|
||||
"session_id": "588db35caf664589a499f02800559ff0",
|
||||
"generation": 1,
|
||||
"attempt_id": "65d0375a0a3e4e02a0e0225f5cd7da1d",
|
||||
"job_id": "3fd4cca09997419cbf0850fe2907f1b5_0",
|
||||
"state": "mutation_possible"
|
||||
},
|
||||
"native": [
|
||||
{
|
||||
"ok": true,
|
||||
"stage": "native_replace_applied",
|
||||
"databook": {
|
||||
"main_visible_before_browse": true,
|
||||
"browse_button": 1577092,
|
||||
"loads": [
|
||||
{
|
||||
"mode": "warm",
|
||||
"timeout_seconds": 20,
|
||||
"attempt_state_before_load": "prepared",
|
||||
"list_handle": 266464,
|
||||
"filter_handle": 266532,
|
||||
"elapsed_seconds": 2.703
|
||||
}
|
||||
],
|
||||
"list_handle": 266464,
|
||||
"list_visible": true,
|
||||
"main_visible_after_load": true
|
||||
},
|
||||
"library_row": [
|
||||
"RESISTOR",
|
||||
"4100-CA0000-T0",
|
||||
"skyworth:res01",
|
||||
"unassigned",
|
||||
"RESC1608N",
|
||||
"0R",
|
||||
""
|
||||
],
|
||||
"replaced_uids": [
|
||||
"$2I2014"
|
||||
],
|
||||
"pin_promotion_phase": "promotion_complete"
|
||||
}
|
||||
],
|
||||
"status_log": [
|
||||
"job_id\tstate\tcode\tmessage",
|
||||
"3fd4cca09997419cbf0850fe2907f1b5_0\tawaiting_native_replace\t\tSnapshot captured; automatic native replacement is starting.",
|
||||
"3fd4cca09997419cbf0850fe2907f1b5_0\tpending_save\tsession_staged\tWrites staged; awaiting engineering project save and saved native data verification.",
|
||||
"3fd4cca09997419cbf0850fe2907f1b5_0\tpending_save\tproject_saved\tEngineering project saved and closed; awaiting saved native data verification.",
|
||||
"3fd4cca09997419cbf0850fe2907f1b5_0\tsaved_ok\tproject_committed\t%5DE5%7A0B%7EDF%4E00%4FDD%5B58%FF0C%539F%751F%6570%636E%6838%9A8C%901A%8FC7%3002"
|
||||
],
|
||||
"operation_log_excerpt": [
|
||||
"2026/11/25 10:03:45\tINFO\tstage=open_project target=<copy-root>\\project\\Audio_D2128.prj",
|
||||
"2026/11/25 10:03:59\tINFO\tstage=open_sheet schematic=Audio-D2128 sheet=S905L CVBS-LR",
|
||||
"2026/11/25 10:04:49\tINFO\tnative_helper_exit code=0",
|
||||
"2026/11/25 10:05:16\tINFO\treplacement RV05 4100-CA0000-T7 -> 4100-CA0000-T0",
|
||||
"2026/11/25 10:05:17\tINFO\tsave_requested job=3fd4cca09997419cbf0850fe2907f1b5_0",
|
||||
"2026/11/25 10:05:17\tINFO\tsave_returned job=3fd4cca09997419cbf0850fe2907f1b5_0",
|
||||
"2026/11/25 10:05:22\tINFO\tproject_closed job=3fd4cca09997419cbf0850fe2907f1b5_0"
|
||||
],
|
||||
"independent_verification": [
|
||||
"verified"
|
||||
],
|
||||
"uncertain_flags_relative_to_data_root": [
|
||||
"batch-resources/588db35caf664589a499f02800559ff0/generation-1/uncertain.flag"
|
||||
],
|
||||
"queue_outcome": "CAD exit exceeded 15 seconds during batch resource cleanup after the saved business receipt"
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
[
|
||||
{
|
||||
"stage": "preflight",
|
||||
"databook": {
|
||||
"loads": [
|
||||
{
|
||||
"mode": "warm",
|
||||
"timeout_seconds": 20,
|
||||
"attempt_state_before_load": "prepared",
|
||||
"list_handle": 17,
|
||||
"filter_handle": 18,
|
||||
"error": "Native DxDataBook did not finish loading target part: NEW",
|
||||
"elapsed_seconds": 1.547,
|
||||
"dialogs": [
|
||||
{
|
||||
"hwnd": 19728876,
|
||||
"owner": 134972,
|
||||
"pid": 5004,
|
||||
"title": "",
|
||||
"children": [],
|
||||
"browser": false,
|
||||
"dismissible": true
|
||||
}
|
||||
],
|
||||
"attempt_state": "prepared",
|
||||
"retry": true,
|
||||
"closed_dialog": 19728876
|
||||
},
|
||||
{
|
||||
"mode": "warm",
|
||||
"timeout_seconds": 20,
|
||||
"attempt_state_before_load": "prepared",
|
||||
"list_handle": 17,
|
||||
"filter_handle": 18,
|
||||
"elapsed_seconds": 0.187
|
||||
}
|
||||
]
|
||||
},
|
||||
"window_closed": [
|
||||
19728876
|
||||
],
|
||||
"marker_state": "prepared"
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user