[🚀 Feature]: [rust] Simplify Selenium Manager output to a single human/application toggle
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Selenium Manager の --output の処理と、#13989 で参照されている binding のコンシューマーから始め、現在の logger、shell、json、mixed の各コントラクトを、提案されている human/application の分離と比較します。新しいコントラクトが結果を stdout に、診断情報を stderr に送り、構造化されたアプリケーションログを使用し、既存の flag を非推奨にしながら移行パスを提供できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
Selenium Manager's --output flag has grown by accretion (logger → json/shell → mixed) into four modes that aren't four distinct use cases — they're two use cases with duplicates, and none of them provides the behavior conventionally expected of a CLI tool:
--output |
stdout | stderr | Notes |
|---|---|---|---|
logger |
• result + logs (text) • Streamed |
nothing | • Default |
shell |
• result + INFO logs (text)• Streamed |
• logged errors (text) • Streamed |
• Not currently used • WARN/DEBUG/TRACE logging completely dropped, always (even with --debug) |
json |
• result + logs (JSON) • Buffered |
nothing | • java, py, rb, js (pending #13989) • A crash can lose all logs • result.message intended as the failure reason, but holds the last non-path INFO/ERROR log, even on success |
mixed |
• result (JSON) • Buffered |
• logs (text) • Streamed |
• .NET • error field always holds the last non-path INFO/ERROR log, even on success |
| Proposed CLI default | • result (text) • Buffered |
• logs (text) • Streamed |
• Follows standard conventions |
| Proposed Bindings default | • result (JSON) • Buffered |
• logs (JSON) • Streamed |
• Follows standard conventions • Error information not included in result but obtained from exit code |
I uncovered this issue trying to figure out how to emit a notice about what data is getting sent to Plausible. There is no way to do it that works properly in all the --output modes we support because it conflates concerns that should be independent.
Proposal
Deprecate the --output toggle and replace with an audience target toggle — human vs application — with one consistent discipline underneath:
- Result → stdout, all diagnostics → stderr, always. Not a per-mode choice.
- One toggle selects only the payload shape on stdout: human-readable text (default) vs structured (JSON). (
logger/shellcollapse into human;json/mixedcollapse into application.) - Model the result as data, not a constant-prefixed log line — emit
driver_path/browser_pathdirectly. - Failure is the exit code — the reason is logged to stderr (shown to a CLI user, replayed by a binding), never scraped into the result payload.
- Application mode streams logs on stderr, leaving stdout as the clean result document — and those streamed logs should be structured (one JSON object per line, e.g.
{"level","timestamp","message"}) so bindings can replay them without each writing a text parser.
Relevant context / related issues
- #13989 — "Leverage streaming output in the bindings" (open): the consumer-side tracker. This issue is the producer/contract it depends on; #13989 keeps its per-binding checklist (Ruby/Python/Java/JS pending) and should be updated to consume the new contract rather than today's
mixed.
Have you considered any alternatives or workarounds?
Fix the current --output modes in place rather than adding a new flag. Rejected because --output json/mixed are a consumed contract — Java/Python/Ruby/JS/.NET parse their exact shape — so changing their behavior in place breaks every binding at once. A new flag lets --output keep working through a deprecation window while bindings migrate deliberately. (Selenium Manager is in beta, so flags may change without guarantee, but a deprecation notice on --output still makes the migration explicit rather than silent.)
- 主要言語
- Java
- スター
- 34.6k
- フォーク
- 8.7k
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 107
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SeleniumHQ/selenium のほかの issue
-
C-py I-defect
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
SeleniumHQ/selenium#18438 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
SeleniumHQ/selenium#18323 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
B-build C-py I-enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
SeleniumHQ/selenium#18435 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[🐛 Bug]: Bindings change the user's options when Selenium Manager supplies a browser対応中かも @Liz-Lian が 2 日前に担当しました。 オープンC-dotnet C-java C-nodejs C-py C-rb I-defect
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
SeleniumHQ/selenium#18428 ·
メンテナーはふだん 1 日以内に返信
-
[🐛 Bug]: [rust] Selenium Manager can return a browser from the cache before it finishes copying対応中かも @Liz-Lian が 2 日前に担当しました。 オープンC-rust I-defect
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
SeleniumHQ/selenium#18427 ·
メンテナーはふだん 1 日以内に返信
SeleniumHQ/selenium の issue をすべて見る
似ている issue
-
area-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
? - Needs Triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NVIDIA/cudf-spark-jni#5598 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
oracle/graalvm-reachability-metadata#12264 ·
メンテナーはふだん 1 日以内に返信
-
[source-facebook-pages] post stream never returns attachments.media_type対応中かも @v-k-data が今日担当しました。 オープンarea/connectors needs-triage type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
floci-io/floci#10107 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信