Skip to content

将最新更新覆盖 - #1219

Closed
qweaxe wants to merge 7 commits into
ZhuLinsen:mainfrom
qweaxe:main
Closed

将最新更新覆盖#1219
qweaxe wants to merge 7 commits into
ZhuLinsen:mainfrom
qweaxe:main

Conversation

@qweaxe

@qweaxe qweaxe commented May 7, 2026

Copy link
Copy Markdown

PR Type

  • fix
  • feat
  • refactor
  • docs
  • chore
  • test

Background And Problem

请描述当前问题、影响范围与触发场景。
(EN) Describe the problem, its impact, and what triggers it.

Scope Of Change

请列出本 PR 修改的模块和文件范围。
(EN) List the modules and files changed in this PR.

Issue Link

必须填写以下之一 / Fill in one of:

  • Fixes #<issue_number>
  • Refs #<issue_number>
  • 无 Issue 时说明原因与验收标准 / If no issue, explain the motivation and acceptance criteria

Verification Commands And Results

请填写你实际执行过的命令和关键结果(不要只写"已测试")。
(EN) Paste the commands you actually ran and their key output (don't just write "tested"):

# example
./scripts/ci_gate.sh
python -m pytest -m "not network"

关键输出/结论 / Key output & conclusion:

Compatibility And Risk

请说明兼容性影响、潜在风险(如无请写 None)。
(EN) Describe compatibility impact and potential risks (write None if not applicable).

  • 若本 PR 修改第三方模型 / API 的兼容语义、请求参数、路由前缀或 provider fallback,请提供官方来源链接或公告,并说明这是长期约束、当前运行时约束还是临时兼容处理。
    (EN) If this PR changes third-party model/API compatibility, request parameters, routing prefixes, or provider fallback behavior, include an official source link or announcement and clarify whether the rule is permanent, runtime-specific, or a temporary compatibility workaround.)
  • 若本 PR 依赖特定运行时 / 锁定依赖窗口(例如 LiteLLM 版本范围、OpenAI-compatible 路由、YAML alias 行为),请写明当前验证过的兼容范围与覆盖路径。
    (EN) If this PR depends on a specific runtime or pinned dependency window (for example a LiteLLM version range, OpenAI-compatible routing, or YAML alias behavior), state the compatibility window you verified and which code paths were covered.)
  • 若本 PR 触及运行时配置保存、清理、迁移或回填逻辑,请明确说明旧配置是否会被自动改写、清空、迁移或保持不变,以及用户如何恢复原行为。
    (EN) If this PR touches runtime config save/cleanup/migration/backfill logic, explicitly describe whether existing config is rewritten, cleared, migrated, or left intact, and how users can restore the previous behavior.)

Rollback Plan

请至少写一句可执行的回滚方案(必填)。
(EN) Provide at least one actionable rollback step (required).

  • 如果是兼容性修复,默认应写出最小回滚方式(例如 revert this PR),并说明是否需要额外回滚配置或数据迁移。
    (EN) For compatibility fixes, include the minimal rollback path (for example revert this PR) and whether any additional config or data rollback is required.)

EXTRACT_PROMPT Change (if applicable)

若本 PR 修改了 src/services/image_stock_extractor.py 中的 EXTRACT_PROMPT,请在此处粘贴完整变更后的 prompt。
If this PR changes EXTRACT_PROMPT in src/services/image_stock_extractor.py, paste the full updated prompt here:

展开 / Expand: Full EXTRACT_PROMPT
(paste full prompt here)

Checklist

  • 本 PR 有明确动机和业务价值 / This PR has a clear motivation and value
  • 已提供可复现的验证命令与结果 / Reproducible verification commands and results are included
  • 已评估兼容性与风险 / Compatibility and risk have been assessed
  • 已提供回滚方案 / A rollback plan is provided
  • 若涉及用户可见变更,已同步更新相关文档与 docs/CHANGELOG.mdREADME.md 仅在首页级信息变化时更新,细节优先写入 docs/*.md / If user-visible changes are included, relevant docs and docs/CHANGELOG.md are updated; README.md is updated only for homepage-level changes, with details kept in docs/*.md

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

🤖 自动审查报告

项目 结果
📊 变更文件 1 个
➕ 新增行数 8 行
➖ 删除行数 5 行
🔍 静态检查 ✅ 通过
🧠 AI 审查 ✅ 已完成

📁 修改的文件

  • 📝 .github/workflows/daily_analysis.yml (+8/-5)

🧠 AI 代码审查意见

结论: Not Ready

结构化审查结果

必要性

不通过。PR 描述中“Background And Problem”为空,无法确认此次修改的明确问题、影响范围与业务价值。例如,为何更改 daily_analysis 的定时触发时间,以及为何修改 LLM API 相关的环境变量配置(从 DeepSeek 到自定义代理)。

关联性

不通过。PR 描述中“Issue Link”为空,且未说明无 Issue 时的原因与验收标准。无法追踪到任何关联的 Issue。

类型

建议类型: chore (如果主要为了维护或调整 CI/CD 流程) 或 feat (如果引入新的 LLM 代理配置被视为新功能启用)。当前 PR 描述中未勾选任何类型。

描述完整性

不完整。以下关键信息缺失:

  • Background And Problem
  • Scope Of Change
  • Issue Link (或无 Issue 时的说明)
  • Verification Commands And Results
  • Compatibility And Risk
  • Rollback Plan (必填)
  • Checklist 均未勾选。

风险级别

  • 关键风险 1: 定时任务时间变更。将 daily_analysis 的定时触发时间从 UTC 10:00 (北京时间 18:00) 调整到 UTC 07:05 (北京时间 15:05),可能会影响每日分析的数据新鲜度、与数据源更新时间的匹配,或与其他依赖此分析结果的下游系统的时间窗口冲突。
  • 关键风险 2: LLM 代理配置变更。从注释掉 DeepSeek 相关的 API_KEYAPI_KEYS,改为启用自定义代理的 LLM_MY_PROXY_ 系列环境变量。这意味着后端可能从 DeepSeek 切换到由 LLM_MY_PROXY_BASE_URL 指定的自定义代理。这可能导致:
    • 模型行为差异:自定义代理背后提供的模型可能与 DeepSeek 的模型在性能、响应、甚至输出格式上存在差异。
    • 可用性与稳定性:自定义代理的可用性和稳定性可能不同于成熟的第三方服务。
    • 成本影响:通过不同代理访问 LLM 可能有不同的计费方式和成本。
    • 认证机制:需要确保新的 LLM_MY_PROXY_API_KEY 能够正确认证。
      这些潜在的兼容性影响和风险在 PR 描述中未被评估和说明。

必改项 (阻断合入)

  1. 提供回滚方案:PR 描述中“Rollback Plan”为空,这是必填项。请提供至少一句可执行的回滚方案,例如 revert this PR
  2. 补充背景、问题与动机:PR 描述中“Background And Problem”为空,请明确说明更改定时触发时间以及切换 LLM 代理配置的原因和业务价值。
  3. 补充验证命令与结果:PR 描述中“Verification Commands And Results”为空。对于工作流修改,应说明如何验证修改后的工作流能按预期运行(例如,手动触发一次工作流,并确认其成功完成且输出符合预期)。
  4. 补充兼容性与风险评估:PR 描述中“Compatibility And Risk”为空。请详细说明更改定时任务和 LLM 代理配置可能带来的兼容性影响和潜在风险,并提供相应的缓解措施或验证范围。

建议项

  1. 明确 PR 类型:请勾选一个最能代表本次变更的 PR 类型,例如 chorefeat
  2. 填写 Issue 链接或说明原因:如果无 Issue,请在“Issue Link”中明确说明本次变更的动机和验收标准,而不是留空。
  3. 补充修改范围:PR 描述中“Scope Of Change”为空,建议补充修改的文件和模块范围,即 .github/workflows/daily_analysis.yml,并简要说明其内容。
  4. 勾选 Checklist:请根据实际情况勾选 PR 描述底部的 Checklist 项。
  5. 明确 LLM 代理的意图:被注释掉的 DEEPSEEK_API_KEYDEEPSEEK_API_KEYS 与新添加的 LLM_MY_PROXY_* 变量并存,但 DeepSeek 被注释掉。请在背景中说明这是否意味着完全切换到自定义代理,或者只是添加了一个可选的代理通道。

💡 提示: 请确保代码已通过本地测试,并遵循项目代码规范。

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c3e0839e2e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

# 定时触发 - 每天北京时间 18:00 (UTC 10:00)
schedule:
- cron: '0 10 * * 1-5' # 周一到周五,UTC 10:00 = 北京时间 18:00
- cron: '5 7 * * 1-5' # 周一到周五,UTC 10:00 = 北京时间 18:00

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore cron to intended 18:00 Beijing trigger

This updates the schedule from 0 10 * * 1-5 to 5 7 * * 1-5, which GitHub Actions interprets in UTC, so the workflow now runs at 15:05 Beijing instead of the documented 18:00. The same file still states "UTC 10:00 = 北京时间 18:00", so this is a behavior regression for all weekday automatic runs and can send reports before the expected post-market window. If this was intentional, comments/docs need to be updated together; otherwise the cron should remain at 10:00 UTC.

Useful? React with 👍 / 👎.

@ZhuLinsen ZhuLinsen left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

评审结论

  • 必要性:不通过 + 当前 PR 描述未说明为什么要调整 workflow 触发时间、超时和新增自定义 LLM 环境变量,必要性无法确认
  • 是否有对应 issue:无(未检测到 Fixes/Refs #xxx,也未说明无 Issue 的动机与验收标准)
  • PR 类型:chore + 修改范围仅为 GitHub Actions workflow 配置
  • description 完整性:不完整 + 缺少背景、变更范围、Issue/验收标准、实际验证结果、兼容性风险评估和回滚方案
  • 是否可直接合入:不可 + 当前 PR 存在冲突,且 workflow 定时语义与注释/现有文档不一致;新增 LLM 运行时配置也缺少兼容性与回退说明

主要问题

  1. [Correctness blocker] .github/workflows/daily_analysis.yml 将 cron 从 0 10 * * 1-5 改为 5 7 * * 1-5,实际执行时间变为北京时间 15:05,但文件注释仍写“UTC 10:00 = 北京时间 18:00”,docs/full-guide.md 也仍说明默认工作日北京时间 18:00 自动执行。该 PR 改变了用户可见的调度行为,却没有同步注释/文档/CHANGELOG,容易导致部署者按错误时间预期排查任务。若目标仍是 18:00,应恢复 cron;若目标是 15:05,应同步 workflow 注释和相关文档。
  2. [Process blocker] 当前 merge 状态为存在冲突,不能直接合入;需要先解决冲突后再复核最终 diff。
  3. [Process blocker] .github/workflows/daily_analysis.yml 新增 LLM_CHANNELSLLM_MY_PROXY_* 等运行时 LLM 配置入口,但 PR 描述没有说明这些变量对应的 provider/base URL/protocol 语义、是否会影响现有 LiteLLM/Gemini/OpenAI fallback、旧配置如何保持或回退,也没有提供官方来源或当前运行时兼容验证。按仓库 AGENTS.md 对三方模型/API 与运行时配置变更的要求,这里至少需要补齐兼容性说明、回退路径和验证证据。
  4. [Nice to have] PR 描述仍是模板内容,虽然 CI 当前为 success,但没有填入实际执行的验证命令与关键结果;对于 .github/workflows/ 变更,建议补充本次验证覆盖了哪条 workflow/部署路径,以及未执行本地 ./scripts/ci_gate.sh 或 workflow dry-run 的原因。

🤖 此回复由 OpenReview Bot 自动生成,仅供参考。如有疑问请 @维护者。

@ZhuLinsen ZhuLinsen left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

评审结论

  • 必要性:不通过 + 当前改动会改变每日分析触发时间和 GitHub Actions 中的 LLM provider 环境变量,但 PR 描述未说明动机、验收标准或兼容影响。
  • 是否有对应 issue:无(未检测到 Fixes/Refs #xxx,也未说明无 Issue 的原因与验收标准)
  • PR 类型:chore + 修改范围仅为 .github/workflows/daily_analysis.yml workflow 配置。
  • description 完整性:不完整 + 缺少背景问题、变更范围、Issue/验收标准、实际验证命令结果、兼容性风险评估和回滚方案。
  • 是否可直接合入:不可 + 定时语义错误、LLM/DeepSeek 环境变量兼容风险未说明且缺少迁移/回退证据。

主要问题

  1. [Correctness blocker] .github/workflows/daily_analysis.yml 将 cron 从 0 10 * * 1-5 改为 5 7 * * 1-5,但文件注释和现有 docs/full-guide.md 仍声明默认工作日北京时间 18:00 执行。GitHub Actions cron 使用 UTC,7:05 UTC 实际是北京时间 15:05,本 PR 会改变用户可见的每日分析触发时间并造成文档与运行行为不一致。
  2. [Compatibility blocker] .github/workflows/daily_analysis.yml 删除了 DEEPSEEK_API_KEY / DEEPSEEK_API_KEYS,改为新增 LLM_MY_PROXY_* 自定义 API 配置。按 AGENTS.md,涉及第三方模型/API provider、fallback 或运行时配置语义时,需要说明官方来源、当前依赖/运行时兼容范围、旧配置迁移或回退路径。当前 PR 描述未提供这些证据,存在 GitHub Actions 用户原有 DeepSeek secrets 静默失效的风险。
  3. [Process blocker] 本 PR 修改 workflow 和用户可见的运行配置语义,但未同步 docs/CHANGELOG.md,也未说明是否需要更新 .env.example 或部署文档。已有通用文档覆盖了每日分析 workflow,但本次新增/替换的 LLM 环境变量语义和触发时间变化没有说明,后续维护者和用户无法判断如何配置或恢复原行为。
  4. [Process blocker] PR 描述仍基本是模板内容,虽然模板中出现了 ci_gate.sh 示例,但没有填写实际执行命令、关键输出、兼容性风险和回滚方案。当前 CI 成功只能说明自动检查通过,不能覆盖本次 workflow 定时和 provider 环境变量兼容性的行为风险。

🤖 此回复由 OpenReview Bot 自动生成,仅供参考。如有疑问请 @维护者。

@ZhuLinsen ZhuLinsen closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants