Coordinator: external-command PostgreSQL tests time out on a busy machine
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
crates/registry-coordinator/tests/external_command_postgres.rsを読み、特に131行目付近のタイムアウト設定と566行目付近のタイムアウト専用テストを確認してください。他のテストの試行タイムアウトを約30秒に延ばし、遅延を長くしてタイムアウトの確認は短時間で済むようにしてください。PostgreSQLのテストファイルを実行し、通常のテストがfinishedに到達し、タイムアウトテストは引き続きattentionに到達することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
The PostgreSQL tests for external.command/v1 can fail when the machine is busy.
What happens
In crates/registry-coordinator/tests/external_command_postgres.rs:131, the test harness sets attempt_timeout_milliseconds = 1_500. On a busy machine (load average 18 to 28), an ordinary attempt can take longer than 1.5 s. The attempt then ends attempt-timeout, and the run waits in attention instead of reaching finished. In one local run, 8 of the 9 tests failed this way. They passed when rerun alone and in the full suite.
Fix
Use a generous attempt timeout, for example 30 s, in every test except the one that checks the timeout itself (it asserts attention around line 566). That test keeps its short timeout and a delay longer than it.
decision_protocol also failed 9 tests once under the same load and passed on rerun. Its tests use the 8 s default timeout, plus one 800 ms timeout against a 2 s delay (tests/decision_protocol.rs:431-438). We have no failing log, so the cause there is unconfirmed.
- 主要言語
- Rust
- スター
- 2
- フォーク
- 0
- 平均マージ
- 9時間 16分
- マージ済み PR(30日)
- 209
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
registrystack/registry-stack のほかの issue
-
area:breg criticality:p3 documentation good first issue triage:needs-implementation
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
registrystack/registry-stack#2415 ·
メンテナーはふだん 1 日以内に返信
-
scheduling: profile refusals on appointment detail, busy-import and operational routes log nothingオープンarea:scheduling criticality:p3 enhancement triage:needs-implementation
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
registrystack/registry-stack#2412 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
registrystack/registry-stack#2381 ·
メンテナーはふだん 1 日以内に返信
-
area:docs documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
registrystack/registry-stack#2253 ·
メンテナーはふだん 1 日以内に返信
-
area:coordinator bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
registrystack/registry-stack#2252 ·
メンテナーはふだん 1 日以内に返信
registrystack/registry-stack の issue をすべて見る
似ている issue
-
example
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
rust-lang-nursery/rust-cookbook#954 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 70/100
OpenZeppelin/openzeppelin-relayer#967 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
src/runs.rs:1987: a missing --source-run-id now answers 400 "Source run ... does not exist", not 404オープンnightly-audit
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
antithesishq/snouty#602 ·
メンテナーはふだん 1 日以内に返信