TOUR_REAL_UNCHANGED fails falsely when the real app rewrites its own cache

Offen
#14 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
shell
Bereich
devtools, testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Shell
Sterne
0
Forks
0
Ø Merge
2 Min.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus bmaltais/omarchy-plugin-devkit

Alle Issues in bmaltais/omarchy-plugin-devkit

Ähnliche Issues

Weitere Issues zu Shell/Bash

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.