`e2e_tests_runner` and `qbittorrent_e2e_runner`: JSON diagnostics

Aperta
#2,769 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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/.

Lingua principale
Rust
Stelle
532
Fork
56
Merge medio
11h 20m
PR unite (30g)
282

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di torrust/torrust-tracker

Tutte le issue di torrust/torrust-tracker

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.