[Bug] Windows CI 上 TestRenameRollsBackWrittenFilesWhenALaterWriteFails 偶现回滚文件仍为修改后内容
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
Research direction
Start by reading desktop/internal/workbench/pluginsemantics_test.go:1076-1108 and then the rename/rollback implementation it exercises in the same package, focusing on how written files are restored when a later write fails and on the realPath/short-path comparison under Windows. Run ./scripts/desktop/desktop-go.sh test ./internal/workbench -run TestRenameRollsBackWrittenFilesWhenALaterWriteFails repeatedly, ideally on a Windows runner, since the failure is intermittent and platform-specific. Done means the test either passes deterministically or the race (write-back ordering vs. the "无法完成重命名" notification) is identified with evidence.
Written by the indexing model from the issue text.
Description
Platform / 平台
Windows
Area / 模块
Test / 测试
Lithe version / Lithe 版本
开发分支 5656ae184(PR #2340 与 pluginsemantics / 文件回滚无关改动)
Priority / 优先级
P2 / 后续考虑:目前不着急,可安排到后续版本
OS and architecture / 操作系统与架构
Windows Server 2022 (windows-2022), x86_64 (GitHub Actions runner)
Environment / 环境信息
- Go:
desktop/go.mod固定版本;Viva:github.com/Lithe-IDEA/vivabb85256c8ffa - Core:
PINNED_CORE_REVISION=9ab2336e8ca651e40baa5e65848b717b26f69e43 - 复现环境:GitHub Actions
Desktop CI / Vet and test on Windows(Run45321258210Attempt 2,Job138206439596);同提交 Linux 与 macOS 通过,同批次#2342、#2350、#2351与#2340Attempt 1 均未复现
Steps to reproduce / 复现步骤
- 在 Windows runner 上运行全量
./scripts/desktop/desktop-go.sh test ./...。 desktop/internal/workbench/pluginsemantics_test.go:1076-1108(TestRenameRollsBackWrittenFilesWhenALaterWriteFails)向B.java与C.java写入"one\n",注入写入C.java失败后等待工作台显示"无法完成重命名,已写入的文件已恢复。",随后读取磁盘文件校验是否已恢复为"one\n"。
Expected behavior / 预期行为
在测试观察到回滚完成提示后,B.java 与 C.java 均已确定性恢复为 "one\n"。
Actual behavior / 实际行为
在 Windows CI 偶发失败时,pluginsemantics_test.go:1101 读回 B.java 仍为 "uno\n"(返回 error 为 <nil>),未能通过回滚校验。需要核查 Windows 下事务回滚写回、短路径 realPath 比较或错误通知时序。
Logs or diagnostic output / 日志或诊断输出
# GitHub Actions Run 45321258210 Attempt 2 (Job 138206439596)
--- FAIL: TestRenameRollsBackWrittenFilesWhenALaterWriteFails (0.16s)
pluginsemantics_test.go:1101: C:\Users\<USER>\AppData\Local\Temp\TestRenameRollsBackWrittenFilesWhenALaterWriteFails3464825118\003\B.java = "uno\n", <nil> (want restored)
FAIL
FAIL github.com/1lck/Lithe-IDEA/desktop/internal/workbench 205.411s
Screenshots or recordings / 截图或录屏
不适用:纯无头单元测试稳定性问题,无桌面界面变化。
Checklist / 提交前检查
- I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复报告。
- I removed secrets and personal data from the report. / 我已从报告中移除敏感信息和个人数据。
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 151
- Avg merge
- 4h 4m
- Merged PRs (30d)
- 558
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 1lck/Lithe-IDEA
-
refactor review: high
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
1lck/Lithe-IDEA#2376 ·
Maintainers usually reply within 1 day
-
bug issue-form:bug review: no-score
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
1lck/Lithe-IDEA#2373 · 1 comment ·
Maintainers usually reply within 1 day
-
area:ui enhancement P2 platform:cross-platform refactor review: high
Difficulty 1/5 Under an hour Newbie friendliness 84/100
1lck/Lithe-IDEA#2365 ·
Maintainers usually reply within 1 day
-
review: high
Difficulty 3/5 1-2 days Newbie friendliness 35/100
1lck/Lithe-IDEA#2380 ·
Maintainers usually reply within 1 day
-
review: high
Difficulty 3/5 1-2 days Newbie friendliness 50/100
1lck/Lithe-IDEA#2379 ·
Maintainers usually reply within 1 day
Similar issues
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
drydocs/meridian#1503 · 1 comment ·
Maintainers usually reply within 2 days
-
bug extension mcp
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
primer/primitives#1426 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
danielmiessler/LifeOS#2941 ·
Maintainers usually reply within 4 days
-
Sign-in-only setup dialog describes API-key verificationPossibly taken @roboclaw-bot claimed this today. Openclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 1/5 Under an hour Newbie friendliness 78/100
openclaw/openclaw#204323 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day