refresh_after_viewer_test passes without opening a Viewer (every desk reply says pages=1)

Ouverte
#1,350 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
72/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
c, linux, python

Piste de recherche

Start with tests/apps/refresh_after_viewer_test.py and run it through apptest tests/apps/refresh_after_viewer_test.py. Reproduce the missing Viewer using the reported log, then verify that tabs contains the Viewer and desk reports pages=2 before any tab is closed. Done means the test fails when the Viewer is absent—or explicitly skips for a documented environment limitation—and the reason the Viewer fails to start is identified.

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

Description

tests/apps/refresh_after_viewer_test.py passes without ever opening a
Viewer, which is the one thing it exists to test.

Run on beryllium through the offload runner
(apptest tests/apps/refresh_after_viewer_test.py, log
20261128-213413-wip_1349-timing-1006335.log), it printed PASSED with
every check ok, including

ok   after the Viewer closed, the pane refreshed for LiF-1

while its own replies say no Viewer was ever there:

ECCE_TEST_ORGANIZER: tabs: 0:Organizer* menus=File,Edit,...
desk 0: desk 603x556 shown=1 splitter=858x556 sel=0 pages=1 ...

tabs lists only the Organizer, and every one of the five desk replies
reports pages=1. The test's scenario is: open a Viewer on a stored
calculation, close its tab, select another calculation and check the details
pane refreshed. With no Viewer and no tab, tabclose answers "no such tab",
and the remaining checks -- refreshtimes replies, desk shown, a notebook
selection, no hidden window -- are all satisfied by the Organizer alone.

So the test guards #1237 only on a machine where the Viewer does start.
Where it does not, it reports success and checks nothing of what it names.
The same shape has been found three times this week (#1301, #1309, #1347).

Two things needed:

  1. The test must FAIL when the Viewer does not open: assert tabs lists the
    Viewer, and that desk reports pages=2, before closing anything. A
    SKIP would be acceptable if the environment genuinely cannot run a Viewer,
    but it must not be a PASS.
  2. Find out WHY the Viewer does not start there. The Organizer answers
    start CalculationViewer <url> with "requested" and nothing follows. It
    may be that the host has no usable GL for the Open Inventor canvas, in
    which case every apps_* test that opens a Viewer is worth re-checking
    for the same vacuity.
Langage dominant
C
Étoiles
10
Forks
8
Merge moyen
6 h 32 min
PR mergées (30 j)
1

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 FriendsofECCE/ECCE

Toutes les issues de FriendsofECCE/ECCE

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

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