TOUR_REAL_UNCHANGED fails falsely when the real app rewrites its own cache

Ouverte
#14 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
42/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
shell
Domaine
devtools, testing

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Shell
Étoiles
0
Forks
0
Merge moyen
2 min
PR mergées (30 j)
3

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de bmaltais/omarchy-plugin-devkit

Toutes les issues de bmaltais/omarchy-plugin-devkit

Issues similaires

Plus d'issues Shell/Bash

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.