`e2e_tests_runner` and `qbittorrent_e2e_runner`: JSON diagnostics

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

Maintainer thường phản hồi trong vòng 1 ngày

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
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli, testing

Hướng nghiên cứu

Read the two ADRs named in the issue and the full specification expected under docs/issues/open/. Start with src/console/ci/e2e/runner.rs and the runners in packages/e2e-tools/src/bin/ and src/console/ci/{e2e,qbittorrent_e2e}/; the issue also names src/console/ci/e2e/logs_parser.rs as a dependency. Update the relevant output tests and docs; done means both runners leave stdout empty, emit only JSON lines on stderr, and use exit codes 1 for failures and 2 for usage errors.

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

Mô tả

Part of EPIC #2758. Order 10 of 11, wave 2.

Goal

The two e2e runners are compliant no-stdout-result programs: empty stdout, NDJSON diagnostics on stderr, exit 0/1/2.

Background

Depends on the daemon logging change (EPIC issue 7), which edits src/console/ci/e2e/logs_parser.rs. src/console/ci/e2e/runner.rs initializes tracing_subscriber::fmt() (stdout, plain text) and both runners return anyhow::Result from main, so a failure prints Error: <debug text> and exits 1. The runners are in packages/e2e-tools/src/bin/ and src/console/ci/{e2e,qbittorrent_e2e}/.

The contract in short: see the ADRs docs/adrs/20260519000000_define_global_cli_output_contract.md and docs/adrs/20261106102632_scope_the_cli_output_contract_and_keep_exit_codes_to_zero_one_two.md.

In scope

  • tracing to stderr as JSON; nothing on stdout.
  • Failures as one JSON record with a kind; usage errors exit 2.
  • Update tests and docs that show the runner output.

Out of scope

  • Changing what the runners test.
  • profiling (developer-only).

Acceptance criteria

  • Both runners write nothing to stdout.
  • Every stderr line is JSON.
  • A failure exits 1 with a kind; a usage error exits 2.

The full specification (implementation plan, verification plan, files this issue may touch) is added by the spec PR under docs/issues/open/.

Ngôn ngữ chính
Rust
Star
532
Fork
56
Merge trung bình
11 giờ 20 phút
Pull request đã merge (30 ngày)
282

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 torrust/torrust-tracker

Tất cả issue của torrust/torrust-tracker

Issue tương tự

Thêm issue về Rust

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.