TOUR_REAL_UNCHANGED fails falsely when the real app rewrites its own cache

Aperta
#14 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
shell
Ambito
devtools, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Shell
Stelle
0
Fork
0
Merge medio
2m
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bmaltais/omarchy-plugin-devkit

Tutte le issue di bmaltais/omarchy-plugin-devkit

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.