Four gate tests fail for environmental reasons rather than defects

Đang mở
#1,329 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bash, python
Lĩnh vực
testing-qa

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C
Star
10
Fork
8
Merge trung bình
6 giờ 32 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FriendsofECCE/ECCE

Tất cả issue của FriendsofECCE/ECCE

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.