Commit Graph
4 Commits
Author SHA1 Message Date
Nwflower 60c810e35d refactor: 抽离 HostAPIService 并将 internal/plugin 拆分为四层无环子包 2026-12-05 05:58:03 -07:00
棠渚听潮 33253318c4 test(archtest): update renameOwners for plugin package rename helpers 2026-12-05 15:06:06 +08:00
NwflowerandClaude Opus 5.5 965e03ca34 fix(macos): pass the runtime QMP socket to the suspend probe
Complete the merge with main so the suspend probe and the cold-start
probe resolve the same socket, and keep the architecture tests honest
after the atomicfile refactor moved the suspend commit's os.Rename into
the platform file-operation helpers.

- startprep: query the VM status through qmp.SocketPathForVM instead of
  the VM-directory socket, so long-path VMs stop failing the probe.
- qmp: drop the uncalled QueryStatusVM wrapper; QueryStatusAt is the one
  product entry, and its test now exercises it directly.
- archtest: list the two suspend_fileops files as the rename owners that
  suspend_transaction.go handed its os.Rename calls to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 03:13:55 -07:00
NwflowerandClaude Opus 5.5 90fbce8b47 refactor: write small files through one atomic writer
Fifteen call sites each had their own temp-file-and-rename code. Some
used a fixed temporary name, so two writers could mix their content, and
most did not flush before the rename. They now share atomicfile.Write.

An architecture test keeps new os.Rename calls out of other packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:59:56 -07:00