Skip to content

ci: sidecar paths 改为 app/** - #39

Merged
Smilewithoutfalling merged 1 commit into
masterfrom
ci/sidecar-paths
Oct 16, 2026
Merged

Smilewithoutfalling merged 1 commit into
masterfrom
ci/sidecar-paths

Conversation

@Smilewithoutfalling

Copy link
Copy Markdown
Owner

只改了 .github/workflows/sidecar.yml 的 paths。

问题:原来的 paths 只写了 app/sidecar.py、app/tools/sandbox*.py、app/tools/_winjob.py、app/server/**。从 app.sidecar 静态分析 import,能走到 37 个模块,其中 28 个不在 paths 里,包括 app/core/*、app/nodes/*、app/react_agent.py、app/tools/charts.py。结果是几乎所有后端改动都触发不了 sidecar,Windows 打包坏了也没人知道。

判据:看最终产物里会包含哪些文件,而不是看依赖闭包。packaging/build_sidecar.py 用了 --collect-submodules app,整个包都会打进去,所以 paths 直接写 app/**。依赖闭包碰到一句 importlib.import_module 就会漏,按目录写不会。

代价:以后每改一次后端,就多跑一次 Windows 打包。这个代价必须付:少跑一次只省一点 CI 时间,而打包坏了没人发现,代价大得多。触发方式以后可以再优化,但 paths 必须先改成 app/**。

这个 PR 改的是 workflow 文件本身,所以 sidecar 会被触发,顺带实测一次。只是 CI 配置修正,不算一步,所以没有新开 DEVLOG 条目。

@Smilewithoutfalling
Smilewithoutfalling merged commit 3e3d1fc into master Oct 16, 2026
6 checks passed
@Smilewithoutfalling
Smilewithoutfalling deleted the ci/sidecar-paths branch October 16, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant