Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Python runner doesn't exit when gauge gets SIGINT

Đang mở
#245 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
testing-qa

Hướng nghiên cứu

Start by tracing how the Python runner handles SIGINT and exits when Gauge terminates; the issue names start.py and start.sh as processes that remain running. Check how the @after_suite hook and AbstractContentManager cleanup behave on abnormal exits. Done means the runner exits cleanly and resources are cleaned up after termination.

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

Mô tả

Describe the bug
When gauge gets terminated, gauge python keeps running, though it doesn't keep executing specs

To Reproduce
Steps (or project) to reproduce the behavior:

  1. Initialise a gauge project with some specs
  2. Run gauge in a terminal
  3. Press Ctrl+C to send SIGINT to gauge
  4. Gauge exits, but check ps -fC python3 to see start.py and start.sh are still running.

Expected behavior
The python runner should exit cleanly. I should not have 20 start.py python3 processes running on my system after doing a few test runs.

In addition, I have some AbstractContentManager resources which need to get cleaned up after the test harness exits, whether it exits with an error or otherwise. Right now these are getting cleaned up in the @after_suite hook, so it would be nice if that could still get called on an abnormal exit. Alternatively, perhaps the test harness can help with managing and cleaning up AbstractContentManagers.

Versions:

  • Ubuntu 20.04
  • Python version 3.8
Gauge version: 1.4.1
Commit Hash: a82478a

Plugins
-------
html-report (4.1.0)
python (0.3.17)
screenshot (0.1.0)
Ngôn ngữ chính
Python
Star
96
Fork
38
Merge trung bình
1 giờ 9 phút
Pull request đã merge (30 ngày)
3

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

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 getgauge/gauge-python

Tất cả issue của getgauge/gauge-python

Issue tương tự

Thêm issue về Python

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.