Repository navigation
fix(windows): Tailscale status の fail-closed 化と User PATH 収束 (#174) - #232
Merged
Merged
Conversation
…ATH (#174) - setup-tailscale.ps1 decodes `tailscale status --json` / `serve status` as UTF-8 and refuses node registration when the backend state cannot be determined, instead of treating parse failure as "not running" and re-registering an enrolled node. - verify.ps1 decodes Tailscale output the same way, accepts both the WinGet MSI and MSIX shapes of Microsoft.PowerShell 7, and checks the User PATH for the legacy .cargo\bin entry and the mise shims entry. - New platforms/windows-11/user-path.ps1 converges HKCU Path: removes the legacy rustup proxy entry by exact expanded match, guarantees the mise shims entry, backs up the raw value, and restores via -Restore. bootstrap.ps1 and converge.ps1 both invoke it; ADR-0021 gains an addendum and the README documents the new boundary. - ci.yml gains a regression step covering the fail-closed ordering, UTF-8 handling, MSIX acceptance, and user-path.ps1 plan/apply/ restore round-trip on the ephemeral runner. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 23, 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.
Summary
issue #174 の実機 onboarding で検出された3件の収束不備を修正する。
setup-tailscale.ps1はtailscale status --json/serve statusを UTF-8 で decode し、status が取得・parse できない場合やBackendStateが欠ける場合は node 登録 (tailscale up --auth-key) へ進まず throw する。従来は parse 失敗を「未接続」とみなして既存 node を再登録し得た。verify.ps1はwinget:Microsoft.PowerShellの MSI (Program Files) と MSIX (per-user 実行エイリアス /InstallLocation) の双方を正本として受理する。platforms/windows-11/user-path.ps1が HKCU Path から legacy%USERPROFILE%\.cargo\binを展開後完全一致で除去し、%LOCALAPPDATA%\mise\shimsを保証する。-Applyは生値 backup +-Restore対応、Machine PATH は触らない。bootstrap.ps1とconverge.ps1の両方から呼ばれる。検証
scripts/ci.shPASS (macOS arm64).ps1の PowerShell parser 検証 PASS (pwsh 7.6.6)tailscale status --jsonUTF-8 decode、日本語 Health 文字列の parse、MSIX pwsh の実解決、user-path.ps1 の実機 -Apply。実機適用は配備後の verify で確認するCloses #174
Generated with Devin