Repository navigation
fix(dev): 报告 Preview 部分交付并执行数据库业务回归 - #154
Merged
Merged
Conversation
- 记录候选、迁移前后状态和未执行阶段 - 在独占 PostgreSQL 运行显式业务集并修复准备条件 - 保留既有迁移文件和状态恢复边界
- 普通 PostgreSQL URL 使用既有 psycopg 规范化,避免建库后构造 engine 失败
This branch was successfully deployed
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.
改变后的行为
Preview 失败时也汇总 Registry、数据库初始化、进程 release、Peer 广告和探测结果,并保留初始化前后实际 migration head。Registry 已发布但迁移失败时,开发者能看出部分交付与尚未取得的运行观察;Core 镜像同时写入目标源码 SHA。
新增显式
pdm run test:database,CI 在自身临时 PostgreSQL 初始化后执行已选业务场景。缺少数据库输入时立即失败,真实 AI/IMAP 等专项继续独立执行。实际启用该组后修复两处测试准备问题:RSS 显式启动 Job runtime;Memos 在随机命名的独占历史数据库中验证附件 revision 往返与应用下载,避免先回退整条后续迁移链。失败后的内容/关系/blob 保全断言仍保留。未修改任何已部署迁移。
验证
pdm run check:格式、lint、数据库边界和类型检查通过;默认 pytest 90 passed、60 skipped。postgresql://下两项历史迁移测试通过,历史库残留 0。bash -n。风险、恢复与交付
新业务组只允许可丢弃数据库,其中 Memos fixture 需要该独占 PostgreSQL 的创建数据库权限。当前业务库不会被该 fixture downgrade;完整历史 downgrade 链不属于这组附件证据。
Preview controller 读取受信任 main,本次报告逻辑在合并后用于后续交付。现有 PR151 及其数据未重建。保留状态升级和新 PR/基线环境是明确的两条恢复路径,不自动 reset 或回滚。
本 PR 没有产品数据库迁移或正式包发布意图;回滚为撤销本 PR。无父/子 PR 依赖。