AgentEvalTool/tests/unit
sinohqb 60c54a67e4
All checks were successful
CI / test (push) Successful in 3m54s
fix(intelligent-eval): parse minute-level time slots (1h windows)
planner 对短窗口(1h)产出分钟级时段(如 0-20min/20-40min/40-60min),
但 parse_time_slot 只支持小时级(8-10h),分钟格式解析失败返回 None →
is_slot_due=False → 审批后评估永不入队、不触发 worker。
- parse_time_slot 支持 h/min 后缀,统一换算成小时(float)返回
- is_slot_due/get_current_slot/count_sessions_in_slot 用 timedelta(hours=float)
  兼容两种格式;decision._parse_time_slot 类型标注同步 float
测试:+1(分钟格式时段解析与到期判断),898 passed
2026-08-18 13:15:46 +08:00
..
__init__.py v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00
mock_channel.py refactor(architecture): deepen evaluation lifecycle and read model 2026-08-07 03:11:37 +08:00
test_alerts.py feat(intelligent-eval): implement monitoring and alerting (ticket 07) 2026-08-12 10:41:15 +08:00
test_analysis_default_migration.py feat(models): add analysis-default flag for campaign intelligence 2026-08-03 01:46:51 +08:00
test_build_run_summary.py refactor(engine): extract build_run_summary pure seam 2026-07-31 14:20:51 +08:00
test_campaign_analyses_migration.py feat(analysis): two-phase campaign analysis agent with storage and API 2026-08-03 02:06:29 +08:00
test_campaign_analysis_model_migration.py feat(campaign): support per-campaign analysis model override 2026-08-03 01:53:13 +08:00
test_campaign_analysis.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_cancel_lifecycle.py fix(architecture): enforce lifecycle consistency 2026-08-07 10:59:27 +08:00
test_campaign_comparison.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_complete_lifecycle.py fix(architecture): enforce lifecycle consistency 2026-08-07 10:59:27 +08:00
test_campaign_lifecycle.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_narrow_updates.py refactor(repository): narrow atomic updates for patrol/cancel/scheduler writes 2026-08-04 03:39:42 +08:00
test_campaign_period_comparisons_migration.py feat(comparison): v0.8 周期对比 — 计划指纹自动基线配对、机械指标 diff 与 LLM 演进叙述 2026-08-03 13:32:48 +08:00
test_campaign_read_model.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_recovery.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_report_format.py test(report): aggregation edge cases and output format validation 2026-08-03 19:03:44 +08:00
test_campaign_report_loader.py refactor(report): unify campaign report loading behind one read model 2026-08-04 03:30:29 +08:00
test_campaign_report.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_campaign_run_claim.py refactor(architecture): deepen evaluation lifecycle and read model 2026-08-07 03:11:37 +08:00
test_campaign_run_identity_migration.py refactor(architecture): deepen evaluation lifecycle and read model 2026-08-07 03:11:37 +08:00
test_campaign_scheduler.py refactor(campaign): move tick decisions into the pure scheduler seam 2026-07-31 02:20:14 +08:00
test_campaign_start_lifecycle.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_summary.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_campaign_timeline.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_campaign_view.py feat(report): add load_campaign_view as unified campaign read model 2026-08-04 11:33:45 +08:00
test_cascade.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_case_verdict.py refactor(case-verdict): extract build_case_evidence as single evidence-construction seam 2026-08-04 11:23:56 +08:00
test_channel_contract.py fix(architecture): enforce lifecycle consistency 2026-08-07 10:59:27 +08:00
test_comparison_read_model.py docs(intelligent-eval): commit v1.0 spec, tickets, and post-v1.0 improvements 2026-08-05 14:01:24 +08:00
test_config_snapshot.py feat(intelligent-eval): implement config snapshot management (ticket 05) 2026-08-12 10:19:07 +08:00
test_cron_pool_boundaries.py test(intelligent-eval): add cron_pool boundary tests (#4) 2026-08-13 02:54:21 +08:00
test_cron_pool.py feat(intelligent-eval): implement cron pool management (ticket 02) 2026-08-12 09:47:04 +08:00
test_dashboard_metrics.py refactor(metrics): extract dashboard aggregation to compute_dashboard 2026-08-04 11:36:55 +08:00
test_engine.py fix(architecture): enforce lifecycle consistency 2026-08-07 10:59:27 +08:00
test_exploration_budget.py feat(campaigns): exploration seed set and budget config per campaign 2026-08-03 17:52:25 +08:00
test_exploration_judge.py feat(exploration): judge sampling review after session close 2026-08-03 18:59:40 +08:00
test_exploration_lifecycle.py refactor(exploration): move ledger and state machine into domain modules 2026-08-04 03:46:51 +08:00
test_exploration_summary.py fix(exploration): include all judge findings instead of poor-only 2026-08-04 02:45:41 +08:00
test_fault_tolerance.py feat(intelligent-eval): implement fault tolerance and recovery (ticket 06) 2026-08-12 10:30:05 +08:00
test_file_repository.py refactor(files): harden storage and split frontend 2026-07-17 17:41:19 +08:00
test_file_service.py refactor(files): harden storage and split frontend 2026-07-17 17:41:19 +08:00
test_http_channel_and_rules.py fix(review): address release correctness findings 2026-08-09 03:20:40 +08:00
test_implicit_rules.py refactor(engine): thin _run_case and _save_rule_results 2026-07-31 14:59:50 +08:00
test_intelligent_eval_decision.py feat(intelligent-eval): implement decision logic and e2e flow (ticket 04) 2026-08-12 10:10:42 +08:00
test_intelligent_eval_model.py fix(architecture): enforce lifecycle consistency 2026-08-07 10:59:27 +08:00
test_intelligent_eval_read_model.py fix(architecture): enforce lifecycle consistency 2026-08-07 10:59:27 +08:00
test_intelligent_eval_report.py feat(intelligent-eval): add backend for OpenClaw-driven intelligent evaluation (tickets 01-04) 2026-08-05 03:18:52 +08:00
test_intelligent_eval_task_queue.py fix(intelligent-eval): parse minute-level time slots (1h windows) 2026-08-18 13:15:46 +08:00
test_judgement.py refactor(judgement): converge case-pass decision into one deep module 2026-07-29 19:45:02 +08:00
test_llm_score.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_llm_task_lifecycle.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_metrics_calculation.py feat(intelligent-eval): implement monitoring and alerting (ticket 07) 2026-08-12 10:41:15 +08:00
test_metrics.py refactor(metrics): type Run summary and converge cross-run aggregation 2026-07-31 01:57:56 +08:00
test_migrate_model_configs.py feat(models): add centralized model configuration 2026-07-17 20:02:43 +08:00
test_model_configs.py feat(models): add analysis-default flag for campaign intelligence 2026-08-03 01:46:51 +08:00
test_model_gateway.py feat(models): support mainstream model protocols 2026-07-17 20:58:27 +08:00
test_model_metadata_migration.py feat(models): add model capability metadata 2026-07-17 21:41:32 +08:00
test_model_runtime_integration.py refactor(metrics): type Run summary and converge cross-run aggregation 2026-07-31 01:57:56 +08:00
test_openclaw_client_and_webhook.py fix(alerts): webhook retry + dedupe (resolves §6.2) 2026-08-14 14:54:57 +08:00
test_orphan_runs.py refactor(architecture): deepen evaluation lifecycle and read model 2026-08-07 03:11:37 +08:00
test_production_entrypoint.py fix(review): address release correctness findings 2026-08-09 03:20:40 +08:00
test_report_render.py feat(exploration): findings flow into report, analysis and export 2026-08-03 19:16:33 +08:00
test_report.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_repository.py refactor(architecture): deepen evaluation lifecycle and read model 2026-08-07 03:11:37 +08:00
test_s2_rules_and_logic.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_scenarios.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_settings.py feat(engine): make poll_reply timeout configurable via env 2026-07-30 09:58:08 +08:00
test_task_queue_requeue.py fix(intelligent-eval): requeue stale assigned tasks (worker crash recovery) 2026-08-17 03:30:42 +08:00
test_task_registry.py refactor(tasks): unify run/campaign task registries into TaskRegistry 2026-07-31 03:39:03 +08:00
test_utils_llm.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_webhook.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00