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

未關閉
#1,350 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
72/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
c, linux, python

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
C
星號
10
分支
8
平均合併
6 小時 32 分鐘
30 天內合併 PR
1

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

FriendsofECCE/ECCE 的其他 Issue

查看 FriendsofECCE/ECCE 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。