TOUR_REAL_UNCHANGED fails falsely when the real app rewrites its own cache

オープン
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
shell
領域
devtools, testing

調査の方向性

Start from the TOUR_REAL_UNCHANGED check, which fingerprints paths under the real $HOME before and after a recording and fails on any change. The payload names ~/.cache/fugue as the trigger, so reproduce with a listed path that a running real instance rewrites. Done when a tour of an app whose real instance is running no longer fails falsely, a stub that touches a listed file still fails, and the docs explain how to choose the list. The design choice (warn versus fail, process detection) is open, so confirm it before coding.

索引モデルが issue の本文から書いたものです。

説明

bug

Found while recording Fugue's README clips. TOUR_REAL_UNCHANGED fingerprints paths under the real $HOME before and after a run and fails the run if any changed. When the same app is also running on the real desktop and rewrites its own cache (Fugue's QML cache under ~/.cache/fugue), the tour fails after about 3 minutes with nothing kept: a false positive, because another process made the change, not the session.

Wanted

  • Say so in the docs: do not list a folder the real app writes to, and how to choose.
  • Better: tell the cases apart. Record which processes (by pid/comm) have those paths open or run as the same app during the recording, or compare only files the session's own processes could write (the sandbox HOME makes this nearly impossible, so the check is about leaks), and warn instead of failing when the same executable is also running outside the session; keep failing when no such process exists.
  • Fail early (before the 3-minute recording) with a clear hint when the real app is running and its paths are listed.

Done when

A tour of an app whose real instance is running does not fail falsely, still fails on a real leak (test with a stub that touches a listed file), and the docs say how to choose the list.

主要言語
Shell
スター
0
フォーク
0
平均マージ
2分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bmaltais/omarchy-plugin-devkit のほかの issue

bmaltais/omarchy-plugin-devkit の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。