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

Aberta
#1,350 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
72/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
c, linux, python

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
C
Estrelas
10
Forks
8
Merge médio
6h 32min
PRs com merge (30d)
1

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de FriendsofECCE/ECCE

Todas as issues de FriendsofECCE/ECCE

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.