Skip to content

test(nightly): cover exif / path / scene / basic / filename gap modules (2026-08-04) - #107

Draft
LC044 wants to merge 3 commits into
masterfrom
nightly/test-watch-20260804
Draft

test(nightly): cover exif / path / scene / basic / filename gap modules (2026-08-04)#107
LC044 wants to merge 3 commits into
masterfrom
nightly/test-watch-20260804

Conversation

@LC044

@LC044 LC044 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

摘要

夜间测试值守 (2026-08-04) 自动产出。本次重点是补齐 app/utilsapp/utils/pathapp/utils/exifapp/crud/sceneapp/service/tasks/basicapp/utils/filename 的单元测试。

改动详情

  • test_exif_utils.py (新增 6 用例): get_gps_infoextract_metadata 回退链
  • test_path_utils.py (新增 11 用例): _normalizecompute_*build_folder_* 等纯函数
  • test_scene_crud.py (新增 7 用例): point_in_polygon + update_scene_photos 守卫
  • test_basic_tasks.py (新增 5 用例): 批处理包装 + BasicTaskStrategy.task_category
  • test_filename.py (新增 7 用例): unix 时间戳 + YYYY_MM_DD_HH-MM-SS 模式

合计 5 个模块 / 36 个新用例,全部单测在 0.6s 内通过。

测试结果

  • §3.6 修复重跑: 259 passed / 4 skipped / 0 failed
  • §5.5 增量后回归: 259 passed / 4 skipped / 0 failed
  • 失败用例: A=0, B=0, C=2 (全部 flake 复跑后通过)

注意事项

  • 上游主分支默认含历史 vulnerability 告警,与本次改动无关
  • 新增测试文件位于 package/server/tests/unit/, 需 git add -f (因为 package/server/.gitignore:246 包含 tests/*)

🤖 Generated with Codex

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

- test_exif_utils: 6 cases (get_gps_info + extract_metadata fallback chain)
- test_path_utils: 11 cases (_normalize, compute_*, build_folder_*)
- test_scene_crud: 7 cases (point_in_polygon + update_scene_photos guards)
- test_basic_tasks: 5 cases (batch wrapper keeps going after failure, strategy category)
- test_filename: +7 cases for unix ts and YYYY_MM_DD_HH-MM-SS patterns

Nightly watch run 2026-08-04

Co-authored-by: Codex <noreply@openai.com>
@LC044 LC044 added the codex-automation PRs opened by codex automation label Aug 3, 2026
LC044 and others added 2 commits August 4, 2026 08:51
- 新增覆盖: cluster CRUD, notification CRUD, metadata task, time-from-filename task, AI config manager

Nightly watch run 2026-08-04
Co-authored-by: Codex <noreply@openai.com>
- 新增覆盖: agent CRUD (sessions + messages), flight_ticket CRUD (filter / duplicate / persist / update / delete)

Nightly watch run 2026-08-04 (2nd pass)
Co-authored-by: Codex <noreply@openai.com>
@LC044

LC044 commented Aug 4, 2026

Copy link
Copy Markdown
Owner Author

Nightly Watch — 2026-08-04 (2nd pass)

新增覆盖:

  • package/server/tests/unit/test_agent_crud.py — 10 用例 (AgentSession CRUD: get_session UUID 字符串 / get_sessions_by_user 双 order_by / create_session persist / update_session exclude_unset + delete 两种结果;AgentMessage CRUD: get_messages_by_session / create_message 同步 summary_update_time / 缺失 session 仍提交 / delete_messages_by_session 始终 True)
  • package/server/tests/unit/test_flight_ticket_crud.py — 13 用例 (get_flight_ticket 命中 + miss;get_flight_tickets 无过滤 / ilike / 等值 / 日期范围;create_flight_ticket 重复返回 None + 持久化默认值;update_flight_ticket miss + 仅应用显式字段;delete_flight_ticket 两种结果;delete_by_photo_id 始终 commit)

本地验证:

  • 单测 (server smoke):646 passed / 38 deselected / 0 failed
  • 单测 (AI smoke):176 passed / 0 failed
  • 全量 E2E:259 passed / 4 skipped / 0 failed(§5.5 增量回归无影响)

CI 验证:

  • AI unit: 41s ✅
  • CLI unit: 15s ✅
  • Server unit: 29s ✅
  • Server integration: 58s ✅
  • E2E (Playwright + docker compose): 13m13s ✅
  • 5/5 PASS(run 30871834487)

Commit: b08b26b

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