Skip to content

test(nightly): cover LocationMap scene-level + TicketPage page-level handlers (2026-08-27) - #149

Merged
LC044 merged 4 commits into
masterfrom
nightly/test-watch-20260827
Aug 27, 2026
Merged

test(nightly): cover LocationMap scene-level + TicketPage page-level handlers (2026-08-27)#149
LC044 merged 4 commits into
masterfrom
nightly/test-watch-20260827

Conversation

@LC044

@LC044 LC044 commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Nightly test watch 2026-08-27 (PR #149)

Commits

SHA Subject
fc3349c test(nightly): close motion_photo branch coverage (2026-08-27)
9591412 test(nightly): cover utils.template export variable resolvers (2026-08-27)

Round 1 (commit fc3349c, 2026-08-27 10:55)

  • 修复失败用例: 无(§3 未触发)
  • 新增覆盖: app/utils/motion_photo.py 66% -> 93%(12 cases)
  • 本地完整 e2e: 307 passed / 4 skipped / 0 failed(exit 0)
  • CI: 全部绿

Round 2 (commit 9591412, 2026-08-27 16:05)

  • 修复失败用例: 无(§3 未触发)
  • 新增覆盖: app/utils/template.py 64.8% -> 90%(39 cases)
    • _format_date 默认 fmt / mtime 回退 / strftime 异常回退
    • _resolve_index zfill / _resolve_original 扩展名 / _resolve_location_chain depth 1-4 + 跳空段
    • _resolve_camera_field / _resolve_tag 置信度排序 / _resolve_album 空名行为
    • RenderResult.to_dict 错误数组拷贝 / render() 未知 token 报错收集
    • build_extension 文件扩展优先 + Enum.value 属性 + 未知 type 回退
    • _resolve_location_field helper
  • 本地完整 e2e: 307 passed / 4 skipped / 0 failed(exit 0)
  • CI: 重新触发中(push 后 14 checks IN_PROGRESS @ 16:05Z)

Side fix during Round 2

  • 修复 §4.3 frontend-gaps.ps1 的脚本 bug:Get-Content -Raw 在多文件输入时返回字符串数组而非拼接结果,导致「79 个未引用 view」是假阳性(每个 view basename 与仅 61 字节的单个 spec 首段做 -notmatch,全部命中 → 全部列入 gap)。修后正确:coverage-gaps-frontend.txt 为空,所有 view 已被现有 spec 触达。
  • 改动仅在 tests/artifacts/nightly/2026-08-27/frontend-gaps.ps1,本 PR 不会包含(位于 gitignored artifacts 目录)。

Status

  • 本地完整 E2E:307 passed / 4 skipped / 0 failed
  • Server unit(包含本轮新增 39 case):3m4s pass
  • PR 状态:OPEN + MERGEABLE,label: codex-automation

Co-authored-by: Codex noreply@openai.com

…handlers

- 新增覆盖: LocationMap (level=scene + map view -> #tianditu-map 容器 + MAP_KEY_MISSING 弹窗), TicketPage (页面挂载列表拉取 + goToStatistics + handleExport + handleFileImport 错误反馈)
- 1 个模块 / 5 个用例,全部 green in dev + full E2E (307 passed / 4 skipped / 0 failed)
- 前端 view 盲区: 6 -> 2 -> 0 (More/LocationMap/Register/AIModelManagement/DesktopAIExtensions/TicketPage 现已全部被某 spec 引用)

Nightly watch run 2026-08-27
Co-authored-by: Codex <noreply@openai.com>
@LC044 LC044 added the codex-automation PRs opened by codex automation label Aug 26, 2026
LC044 and others added 2 commits August 27, 2026 11:19
- 新增覆盖: app/utils/motion_photo.py (66% -> 93%, +27pp)
  - 12 个用例覆盖 XMP tag/attr、ftyp 原子边界、mmap 异常兜底、
    extract_video auto-detect / 重用 .mp4 / 偏移拒绝 / 写失败清理
- 修复原失败用例: extract_video 写失败时部分输出清理分支
  原实现只检查 kwargs['mode'],遗漏 open(path, 'wb') 的位置 mode,
  导致 builtins.open patch 不触发。改为同时检查 args[1]。

Nightly watch run 2026-08-27
Co-authored-by: Codex <noreply@openai.com>
…8-27)

- 修复失败用例: 无(本地 e2e 307 passed / 4 skipped / 0 failed,§3 未触发)
- 新增覆盖: app/utils/template.py 64.8% -> 90%(50 -> 12 missed lines)

本轮补测 app.utils.template 未覆盖分支:
- _format_date 默认 fmt / 文件 mtime 回退 / strftime 异常回退
- _resolve_index zfill / _resolve_original 扩展名 / _resolve_location_chain depth 1-4 + 跳过空段
- _resolve_camera_field / _resolve_tag 置信度排序 / _resolve_album 空名行为
- RenderResult.to_dict 错误数组拷贝 / render() 未知 token 报错收集
- build_extension 文件扩展优先 + Enum.value 属性 + 未知 type 回退
- _resolve_location_field helper

Nightly watch run 2026-08-27
Co-authored-by: Codex <noreply@openai.com>
@LC044

LC044 commented Aug 27, 2026

Copy link
Copy Markdown
Owner Author

Nightly test watch 2026-08-27 (PR #149)

Commits

SHA Subject
fc3349c test(nightly): close motion_photo branch coverage (2026-08-27)
9591412 test(nightly): cover utils.template export variable resolvers (2026-08-27)

Round 1 (commit fc3349c, 2026-08-27 10:55)

  • 修复失败用例: 无(§3 未触发)
  • 新增覆盖: app/utils/motion_photo.py 66% -> 93%(12 cases)
  • 本地完整 e2e: 307 passed / 4 skipped / 0 failed(exit 0)
  • CI: 全部绿

Round 2 (commit 9591412, 2026-08-27 16:05)

  • 修复失败用例: 无(§3 未触发)
  • 新增覆盖: app/utils/template.py 64.8% -> 90%(39 cases)
    • _format_date 默认 fmt / mtime 回退 / strftime 异常回退
    • _resolve_index zfill / _resolve_original 扩展名 / _resolve_location_chain depth 1-4 + 跳空段
    • _resolve_camera_field / _resolve_tag 置信度排序 / _resolve_album 空名行为
    • RenderResult.to_dict 错误数组拷贝 / render() 未知 token 报错收集
    • build_extension 文件扩展优先 + Enum.value 属性 + 未知 type 回退
    • _resolve_location_field helper
  • 本地完整 e2e: 307 passed / 4 skipped / 0 failed(exit 0)
  • CI: 重新触发中(push 后 14 checks IN_PROGRESS @ 16:05Z)

Side fix during Round 2

  • 修复 §4.3 frontend-gaps.ps1 的脚本 bug:Get-Content -Raw 在多文件输入时返回字符串数组而非拼接结果,导致「79 个未引用 view」是假阳性(每个 view basename 与仅 61 字节的单个 spec 首段做 -notmatch,全部命中 → 全部列入 gap)。修后正确:coverage-gaps-frontend.txt 为空,所有 view 已被现有 spec 触达。
  • 改动仅在 tests/artifacts/nightly/2026-08-27/frontend-gaps.ps1,本 PR 不会包含(位于 gitignored artifacts 目录)。

Status

  • 本地完整 E2E:307 passed / 4 skipped / 0 failed
  • Server unit(包含本轮新增 39 case):3m4s pass
  • PR 状态:OPEN + MERGEABLE,label: codex-automation

Co-authored-by: Codex noreply@openai.com

…nt_tools + ai_config) (2026-08-27)

- 修复失败用例: 无(本地 e2e 311 passed / 4 skipped / 0 failed)
- 新增覆盖:
  * app/crud/location_stats.py 58.2% -> 78% (12 用例: overview / annual_trend / monthly_radar / places[city|province|scene|invalid|limit] / heatmap_range)
  * app/crud/location.py 59.2% -> 75% (11 用例: locations / location_photos / map_markers / timeline_nodes[merge|append|scene|pagination])
  * app/service/agent/tools.py 64.3% -> 70% (3 用例: _build_search_summary success/exception/no-date-range)
  * app/routers/ai_config.py + services/llm_manager.py (9 用例: download/delete 404/409 + set_model 400/500 + llm_manager.stop 调用断言)

Nightly watch run 2026-08-27
Co-authored-by: Codex <noreply@openai.com>
@LC044

LC044 commented Aug 27, 2026

Copy link
Copy Markdown
Owner Author

Nightly test watch 2026-08-27 — Round 3 (PR #149)

Commits (4 ahead of master)

SHA Subject
5093408 test(nightly): cover LocationMap scene-level + TicketPage page-level handlers
fc3349c test(nightly): close motion_photo branch coverage (2026-08-27)
9591412 test(nightly): cover utils.template export variable resolvers (2026-08-27)
59bfea5 test(nightly): close 4 coverage gaps (location_stats + location + agent_tools + ai_config) (2026-08-27)

Round 1 (commit 5093408)

  • 新增覆盖: LocationMap (level=scene + map view -> #tianditu-map 容器 + MAP_KEY_MISSING 弹窗), TicketPage (页面挂载列表拉取 + goToStatistics + handleExport + handleFileImport 错误反馈)
  • 1 个模块 / 5 个用例,全部 green in dev + full E2E (307 passed / 4 skipped / 0 failed)
  • 前端 view 盲区: 6 -> 2 -> 0 (More/LocationMap/Register/AIModelManagement/DesktopAIExtensions/TicketPage 现已全部被某 spec 引用)

Round 2 (commit fc3349c)

  • 修复失败用例: extract_video 写失败时部分输出清理分支 — 原实现只检查 kwargs['mode'],遗漏 open(path, 'wb') 的位置 mode,导致 builtins.open patch 不触发。改为同时检查 args[1]
  • 新增覆盖: app/utils/motion_photo.py 66% -> 93%, +27pp
    • XMP tag/attr 解析、ftyp 原子边界、mmap 异常兜底、extract_video auto-detect / 重用 .mp4 / 偏移拒绝 / 写失败清理
    • 12 用例

Round 3 (commit 9591412)

  • 修复失败用例: 无(§3 未触发;本地 e2e 307 passed / 4 skipped / 0 failed)
  • 新增覆盖: app/utils/template.py 64.8% -> 90%(39 cases)
    • _format_date 默认 fmt / mtime 回退 / strftime 异常回退
    • _resolve_index zfill / _resolve_original 扩展名 / _resolve_location_chain depth 1-4 + 跳空段
    • _resolve_camera_field / _resolve_tag 置信度排序 / _resolve_album 空名行为
    • RenderResult.to_dict 错误数组拷贝 / render() 未知 token 报错收集
    • build_extension 文件扩展优先 + Enum.value 属性 + 未知 type 回退
    • _resolve_location_field helper

Round 4 (commit 59bfea5) — this push

  • 修复失败用例: 无(§3 未触发;本地 e2e 311 passed / 4 skipped / 0 failed ≈ 14 min)
  • 新增覆盖: 4 模块 / 35 用例
    • app/crud/location_stats.py 58.2% -> ~78%(12 用例:overview / annual_trend / monthly_radar / places[city|province|scene|invalid|limit] / heatmap_range)
    • app/crud/location.py 59.2% -> ~75%(11 用例:locations / location_photos / map_markers / timeline_nodes[merge|append|scene|pagination])
    • app/service/agent/tools.py 64.3% -> ~70%(3 用例:_build_search_summary success/exception/no-date-range)
    • app/routers/ai_config.py + services/llm_manager.py (9 用例:download/delete 404/409 + set_model 400/500 + llm_manager.stop 调用断言)

Side fix during Round 1..3

  • 修复 §4.3 frontend-gaps.ps1 的脚本 bug:Get-Content -Raw 在多文件输入时返回字符串数组而非拼接结果,导致「79 个未引用 view」是假阳性。改为 ($specFiles | ForEach-Object { Get-Content -Raw $_ }) -join "\n",修后正确输出 0 gaps。改动仅在 tests/artifacts/nightly/2026-08-27/frontend-gaps.ps1(位于 gitignored artifacts 目录),不在本 PR 内。

Status

  • 本地完整 E2E (round 4): 311 passed / 4 skipped / 0 failed(exit 0,~14 min)
  • Server unit(包含本轮新增 35 case):3m4s pass
  • PR 状态:OPEN + MERGEABLE,label: codex-automation
  • CI:push 后重新触发中

Co-authored-by: Codex noreply@openai.com

@LC044
LC044 merged commit a5e87b3 into master Aug 27, 2026
23 checks passed
@LC044
LC044 deleted the nightly/test-watch-20260827 branch August 27, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex-automation PRs opened by codex automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants