test: rescan 自愈回归与 pytest integration marker 机制 - #78
Merged
Merged
Conversation
This was referenced Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
补齐 #6 的回归覆盖缺口:
tests/test_rescan_selfheal.py:钉死_rescan_sources的 stale SYNCING 自愈契约(>3×lease 重置 ACTIVE + sync_error 留痕、fresh SYNCING 与 ACTIVE 不受影响)——生产曾因 SYNCING 卡死触发该修复,此前零回归护栏(三路审计缺口清单高风险项);integrationmarker 并文档化约定:本仓库 tests/ 套件默认即集成(依赖真实 PostgreSQL,make test-backend),无 DB 的纯单测放tests_oauth_patch/(不在 testpaths)——回应 [P1] Harden scheduler, background jobs and lifecycle reliability #6 验收「external I/O mocked + 集成测试单独标记」(HTTP/LLM/DNS 已全 mock,DB 维度按此口径文档化处置而非对 130 个文件做标记翻新)。Refs #6。
Area
Verification
tests/test_rescan_selfheal.py单独运行通过(in-memory SQLite,与 claim 回归同一模式,不依赖全局连接池)make test-backendexit 0(含 docs: 登记 #6 审计缺陷 D-8~D-10 并文档化进程拓扑 #74~fix(backend): 停机预热任务回收异常隔离与超时兜底 #77 全部变更 + 本 PR,TEST_PG_PORT=5435 一次性容器)Verifier verdict
CI 门禁即机器 Verifier;自愈契约由独立回归钉死。
Checklist
issue-<number>-<short-slug>and PR links the issue