Four gate tests fail for environmental reasons rather than defects

未关闭
#1,329 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
bash, python
领域
testing-qa

调研方向

Four independent test fixes, each in one file: tests/session/control_dir_claim.sh (skip with exit 77 when ECCE_SSH_CONTROL_DIR is unset), tests/look/modiagramheads.py (probe DISPLAY with xdpyinfo, fall back to xvfb-run -a), tests/releaseround/run_round.py (step W5.5, count only processes under the install prefix or isolated home), and tests/apps/builder_pdb_open_test.py (raise settle to 300 s). Work exists on branch wip/1329-test-env-robustness, so check that branch first. Done means each test passes or skips cleanly under the offload harness, verified in a real gate run.

由索引模型根据 Issue 内容生成。

描述

Four tests failed in the 9.6.1 release gate on one host. None indicates a defect in shipping code; each is sensitive to the test environment, which makes it indistinguishable from a regression in a gate.

  1. tests/session/control_dir_claim.sh: ecce_ssh_control_setup deliberately leaves ECCE_SSH_CONTROL_DIR unset when no candidate root is short enough for a unix socket path (${#dir} -le 66). Under the offload harness TMPDIR is long, so the test died on the unbound variable (set -u). Fix: skip with exit 77 and a message that no candidate directory was short enough.

  2. tests/look/modiagramheads.py: the xvfb-run -a fallback was used only when DISPLAY was empty. The offload harness sets DISPLAY=:987 on purpose (no server), so GTK failed to initialise. Fix: DISPLAY is probed with xdpyinfo (10 s timeout); a failed or timed-out probe, or a missing xdpyinfo (reported), falls back to xvfb-run -a.

  3. tests/releaseround/run_round.py, step W5.5: processes carrying ECCE_LOCAL_DATA=<data> in their environment were counted as left over. This also matched uim-helper-serv, forked by GTK inside the Organizer; it inherits the environment and outlives ECCE by design. Fix: a process counts only if its executable or command line lies under the install prefix or the isolated home.

  4. tests/apps/builder_pdb_open_test.py: apps.run(..., settle=90) watches a fixed window and then sends SIGTERM to the process group, wherever the Builder script has got to. Under parallel load the script was cut short, which showed up as wrong atom counts and "File > Save did not go to Save As". The script ends in quit and apps.run returns as soon as the process exits, so settle is raised to a 300 s ceiling that acts as a timeout. A ready predicate was not added: it cannot see the log, and the script has no marker-file step short of the shot pause mechanism.

Branch: wip/1329-test-env-robustness. Not run: items 2 (with a live DISPLAY), 3 and 4 against a real gate run.

主要语言
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 摘要。