cfdaily
|
45c48c1ccf
|
fix(ci): 修复notify竞态条件 - 用needs.result替代commit status查询
根因:notify-on-failure job 通过 commit status API 查询结果时,
自身的 pending status 会污染查询结果(竞态条件):
1. lint/test 都 success
2. notify 开始运行,自身状态 pending 写入 commit status
3. notify 查询 commit status → 看到 pending(自己的)≠ success
4. 误发 [CI] 失败 评论 + webhook 触发 Mail 通知
修复方案:
- 不再查询 commit status API
- 直接用 needs.lint.result 和 needs.test.result 判断
- 只有明确的 failure 才发通知
- 同时去掉 push 触发避免双倍运行
|
2026-06-10 23:37:46 +08:00 |
|
cfdaily
|
d93ad989ab
|
fix(ci): 去掉push触发避免双倍触发 + 修复notify误报
1. 触发器:去掉 push,只保留 pull_request(opened, synchronize)
- 每次 push 到 PR 分支不再跑 2 次 CI
2. notify-on-failure:只有明确的 failure 状态才发通知
- 之前:空状态/unknown/pending 都触发通知(误报根因)
- 现在:只有 STATUS=failure 才发通知
3. venv 路径:统一用 /tmp/ci-venv-lint 和 /tmp/ci-venv-test
- 避免 host 模式下与开发目录 .venv 冲突
|
2026-06-10 23:37:46 +08:00 |
|
jiangwei-infra
|
308c5a63bd
|
fix(ci): install all test dependencies (fastapi, pydantic, pyyaml, etc.)
|
2026-06-10 23:37:07 +08:00 |
|
jiangwei-infra
|
3323bc76bd
|
fix(ci): install pytest directly instead of editable mode
|
2026-06-10 23:37:07 +08:00 |
|
jiangwei-infra
|
9dd9e44a83
|
fix(ci): use pyproject.toml instead of missing requirements.txt
|
2026-06-10 23:37:07 +08:00 |
|
jiangwei-infra
|
e7b6d4af45
|
fix(ci): use /tmp/ci-venv-* to avoid host .venv conflict
|
2026-06-10 23:37:07 +08:00 |
|
cfdaily
|
6b8f5ba6e3
|
auto-sync: 2026-06-08 21:36:43
Deploy / ci (push) Waiting to run
Deploy / deploy (push) Blocked by required conditions
Deploy / notify-deploy-failure (push) Blocked by required conditions
|
2026-06-08 21:36:43 +08:00 |
|
cfdaily
|
182a452f41
|
auto-sync: 2026-06-07 11:55:55
Deploy / ci (push) Waiting to run
Deploy / deploy (push) Blocked by required conditions
Deploy / notify-deploy-failure (push) Blocked by required conditions
|
2026-06-07 11:55:55 +08:00 |
|
cfdaily
|
2833431a28
|
auto-sync: 2026-06-06 11:33:10
Deploy / ci (push) Waiting to run
Deploy / deploy (push) Blocked by required conditions
Deploy / notify-deploy-failure (push) Blocked by required conditions
|
2026-06-06 11:33:10 +08:00 |
|
cfdaily
|
0f13699f1a
|
auto-sync: 2026-06-06 11:27:37
Deploy / ci (push) Waiting to run
Deploy / deploy (push) Blocked by required conditions
Deploy / notify-deploy-failure (push) Blocked by required conditions
|
2026-06-06 11:27:37 +08:00 |
|
cfdaily
|
4e9b33546d
|
auto-sync: 2026-06-06 11:27:12
|
2026-06-06 11:27:12 +08:00 |
|