GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix: 完走した walk を entry 入れ替わりで破棄せず wikilink 未解決化を防ぐ (#442) by ymnao · Pull Request #444 · ymnao/scripta Conversation
Owner
概要populate 中に watcher restart が重なると、完走した walk の結果が捨てられて wikilink が全て未解決表示になる問題を直す。打ち切りの判定を entry identity からの「推測」ではなく、walk 自身が報告する「事実」にした。
関連 Issuecloses #442 移行 Stage
変更内容
動作確認
検証エビデンスリスク分類tier: medium — classify-risk.sh の reasons は空(security 境界 / agent-config への抵触なし) 実行した検証
mutation 検証(変異 → 落ちた test)
レビュー指摘と対応
追跡先backlog delta: 起票 0 件 / 本 PR で close 1 件(#442)/ 現在 open 18 件 本 PR で fix しない finding((b) 起票 / (c) 対応しない): なし Draft 判定
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions- walkMdFiles が `"completed" | "aborted"` を返し、再帰全段で aborted を伝播する - populate に渡す walk 契約を `() => Promise<readonly string[] | null>` にし、 打ち切りの事実だけを null で報告する - populateFileListCache は null を最上部で弾き、entry identity (`current !== e`) は 「cache に格納するか」の判定のみに戻す。完走した walk は entry 入れ替わり時も返す - watcher restart (release → acquire が同期区間) と populate が重なると、完走した walk が捨てられて searchFilenames が [] を返し、renderer の fileMap が空のまま 残留して全 wikilink が未解決表示になっていた - watcher 非稼働経路も打ち切り時は部分 list を返さず null に揃える …tionOnce へ - /simplify 指摘: 「格納を見送る」2 分岐が同じ return を持っていたため、 格納条件 (entry 同一 + epoch 一致) 側を 1 つの if に統合 - test helper の初回判定フラグを削除 (mockImplementationOnce の消費後は 元実装への call-through に戻るため自前管理が不要) - code-reviewer 指摘: abort test の workspace が root 直下 1 file だったため、 打ち切り時点の部分 list が常に空。populate 経路の遮断行 (`outcome === "aborted" ? null : arr`) を `return arr` に変異させても 全 test が通過していた - root .md 2 件 + subdir を置き、readdir spy で file → dir 順に並べ替えてから 2 回目 (subdir) の readdir で release する構成に変更。fs の返却順に依存せず 打ち切り時点の out が非空になる - entry なし経路 (watcher 非稼働) の null 透過も 1 本 pin - CacheEntry.inFlight の旧契約コメントを新契約の文言へ更新 - code-reviewer round 2 指摘: walkMdFiles の入口 (readdir 前) check は post-readdir check と結果が同じで kill できる変異が無かった。 「readdir を 1 回も撃たない」ことだけが区別点なので spy で pin する - 再帰伝播 test のコメントが「深い段の abort を握り潰すと deep.md が入る」と 書いていたが、実際に落ちるのは戻り値 assert の方。実際の変異に合わせて修正 - searchFilesImpl の caller コメントを新契約 (打ち切りの報告) の文言へ更新 Uh oh!
There was an error while loading. Please reload this page.
ymnao
added a commit
that referenced
this pull request
* chore: v0.8.0 リリース準備 - package.json の version を 0.7.0 → 0.8.0 に上げる - CHANGELOG.md に v0.8.0 のエントリを追加する (#283 〜 #631、170 commit) - Electron 44 で macOS の最小要件が 13 (Ventura) に上がることを冒頭に明記する (同梱 Electron 44.5.1 の LSMinimumSystemVersion が 13.0) - リリース後、tap 側で Cask の depends_on macos を :ventura に上げてから autobump を手動実行する (docs/parity-checklist.md §11) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: v0.8.0 の CHANGELOG をコミットの実態に合わせて直す - hard link (#601) は検索結果の stale 対策で、ワークスペース外アクセスの封鎖では ないので Security から Fixed へ移す - 漏れていた #414 / #443 / #623 と CI actions の更新を足す - #461 の 3 経路 (別タブのファイルへの書き込み・rename 前パスの復活・ ウィンドウを閉じたときの保存漏れ) を分けて書く - #444 を wikilink がすべて未解決になる症状として、#622 を Fixed として書き直す - electron-builder の完全一致固定に出所 (#283) と理由を添える - [0.8.0] / [0.7.0] の参照リンク定義を足し、README の Electron 版を v44 に直す Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: v0.8.0 の CHANGELOG の #623 / #443 の記述を実測条件と実際の UI に合わせる - #623 の「1 秒以上」に実測条件 (キャッシュ 1 万件・イベント 1000 件) を添え、 コミットに無い git checkout の例を外す - #443 の「すべて表示した」は実在しない UI 文言なので、打ち切りの通知が 出ないという実挙動で書く Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. populate 中の watcher restart で完走した walk が破棄され wikilink が未解決表示のまま残るUh oh!
There was an error while loading. Please reload this page. 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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |