Repository navigation
test: 最終の検証の時間の枠のテストを負荷の高いときにも通るようにする - #138
Merged
Merged
Conversation
orchestrator::lock_age_tests::final_verification_has_an_independent_time_budget が、ビルドとテストを並行して動かしている負荷の高いときに失敗することがあった (照会の回数が 2 にならない)。単独で流すと通る。 このテストは、差し戻しの照会と最終の検証のそれぞれに 100 ms の時間の枠を 渡し、最初の照会だけを 1 秒待たせて枠を使い切らせる。最終の検証は独立した 100 ms の枠で 2 回目の照会をすることを確かめるが、時間は std::time::Instant で測るので、負荷が高いと照会を始める前に 100 ms が過ぎ、照会しないまま枠を 使い切っていた。 - 枠を 1 秒にし、最初の照会は 60 秒待たせる (枠で打ち切られるので、テストの 時間は枠の分だけ延びる)。確かめる内容は変えていない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
orchestrator::lock_age_tests::final_verification_has_an_independent_time_budgetが、ビルドとテストを並行して動かしている負荷の高いときに失敗することがありました (照会の回数が 2 にならない)。単独で流すと通ります。負荷によらずに通るよう、テストの時間の枠を広げます。原因
このテストは、差し戻しの照会と最終の検証のそれぞれに 100 ms の時間の枠を渡し、最初の照会だけを 1 秒待たせて枠を使い切らせます。最終の検証は独立した 100 ms の枠で 2 回目の照会をすることを確かめますが、時間は
std::time::Instantで測るので、負荷が高いと照会を始める前に 100 ms が過ぎ、照会しないまま枠を使い切っていました。変更内容
製品のコードは変えていません。tokio の時間の停止 (
start_paused) は、監査がstd::time::Instantで時間を測るので使えません。検証
cargo test --locked --lib final_verification_has_an_independent_time_budget: passcargo fmt --all -- --check: passcargo clippy --locked --all-targets -- -D warnings: passcargo test --locked(Windows): passCloses #128
🤖 Generated with Claude Code