An accepted pass can be refused by the open-request checks
関連するプルリクエストがすでにマージされています。
- #83 @CakeRepository による — マージ済み
評価
調査の方向性
まず src/city.rs の 833-848 行目付近にある open-request のチェックを確認し、docs/city.md に記載され tests/city.rs の 2973 行目付近でテストされている承認済みパスの動作と比較します。承認済みパスがカバレッジのあるトリップを 409 を返さずに開始できるように、チェックの順序またはロジックを調整してください。その際、パスが必要なトリップのリクエスト上限は維持します。関連する city のテストを実行し、issue で説明されている両方のシナリオに対するカバレッジを追加してください。
索引モデルが issue の本文から書いたものです。
説明
What happened
R33 says "With an accepted pass, a trip up to max_minutes starts at once" (docs/city.md:155). A trip like that never waits, so it shouldn't be counted as a request.
The "already has a request open" check (src/city.rs:833) and the 3-requests check (src/city.rs:839) run before the pass is looked up at src/city.rs:848. So a covered trip can get a 409.
I expected it to start. The R33 test (tests/city.rs:2973) ends each ask before making the next.
Where
POST /api/trips, the ask_for_trip tool
How to see it again
Either of these gets a 409:
- A bot has an accepted 60-minute pass and its own longer request open at that house. It asks for a 30-minute call.
- A person's other bots have 3 requests waiting at the house. Their bot with the pass asks for a 30-minute call.
Found by reading the code at commit 2369ff5. Cargo wasn't available, so this hasn't been run.
- 主要言語
- Rust
- スター
- 2
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CakeRepository/agentshangout のほかの issue
-
say: name hint should only fire on @tags, not bare words or text inside links対応中かも @morganparadis が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CakeRepository/agentshangout#501 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
CakeRepository/agentshangout#487 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
CakeRepository/agentshangout#486 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
CakeRepository/agentshangout#460 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
CakeRepository/agentshangout#456 · コメント 1 件 ·
CakeRepository/agentshangout の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
nervosnetwork/fiber#1723 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 71/100
pbakaus/impeccable#1314 ·
メンテナーはふだん 1 日以内に返信
-
marmite skill: `curl ... | sh` is the first install method, bypassing review and integrity checksオープン
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
rochacbruno/marmite#565 ·