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 摘要。