Skip to content

fix: 修复 Windows 原生导出并优化 Split,准备 v1.29.0 - #54

Merged
AliceJump merged 5 commits into
mainfrom
fix/windows-native-export-release-20261203
Dec 2, 2026
Merged

AliceJump merged 5 commits into
mainfrom
fix/windows-native-export-release-20261203

Conversation

@AliceJump

@AliceJump AliceJump commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

问题

Windows Python 3.12 的 Path.stat() 与 os.fstat() 可能返回含义不同的 ctime,导致原生模板导出把未改动的原图误判为已变化而失败。Split 同时会先生成验证用 PNG,再交由框架重复编码。

改动

  • 跨 Windows stat/fstat 比较共同文件身份、大小、mtime 和可用 birthtime;各 API 的读取前后仍严格校验 ctime/birthtime,保留 SHA-256、路径与源目录身份保护。
  • 增加可复现的回归及 Windows/Python 3.12 原生导出 CI;修正宿主测试在 Windows 下的 CRLF 日志断言。
  • Split 去除临时验证 PNG 编码,只对重复名称校验 RGB 摘要;原图验证、原生输出和事务逻辑保留。
  • 同步父子仓版本与中英文 README 到 1.29.0,gitlink 指向子仓已合并的 chore(release): prepare v1.28.0 #47(9f3ccf310be42dce7dacc09f22b935cd950496e5)。

验证

  • Windows 实机完整 npm test、38 项 Python 原生导出测试、Split/Packed 完整宿主字节对照及 VSIX 打包通过。
  • CI 46982339116 对当前 3cfc42c 的 6 项 Actions 全部成功;子仓 chore(release): prepare v1.28.0 #47 的 4 项 Actions(含当前版与 PyCharm 2026.3 preview API 验证)全部成功。
  • 三份真实素材、三种实现、两种格式共 18 组/72 次导出均成功。候选版与此前原生导出版输出逐字节一致,各组重复输出稳定;76 个原始文件哈希未变。
  • 同轮复测的重复导出中位数:292 标注素材的 Split 从此前原生版 6.81 秒降到 5.02 秒;59 标注素材从 8.58 秒降到 8.27 秒。每组先首次导出再重复 3 次,源文件校验已预热文件缓存,结果仅代表该电脑和素材。

本次优化针对 Split;Packed 原生编码路径和耗时没有改善,不宣称恢复到旧工具的速度。

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a9f5ceb-f21b-426d-b8e8-719094ea3f2f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@AliceJump
AliceJump merged commit 8a1182c into main Dec 2, 2026
7 checks passed
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.

2 participants