到着時間推定と乗換経路探索に線路の長さを使う変更を取り消し、経路検索とETAを#1712の前の挙動に戻した - #1713
Closed
TinyKitten wants to merge 1 commit into
Closed
TinyKitten wants to merge 1 commit into
TinyKitten wants to merge 1 commit into
Conversation
This reverts commit 5f13885. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (14)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Member
Author
|
取り消しではなく、#1712 の新しい計算を trainRoute の Estimated だけに閉じ込め、estimateArrivalTimes と connectedRoutes を元の計算に戻す形で出し直すため、閉じます。 |
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.
概要
#1712 を取り消します。
#1712 は、到着時間推定の駅間距離に線路の長さを使い、速度の較正をその距離で求め直しました。目的は MobileApp の開発用 GPX を実際の運行に近づけることでしたが、変更は共有の推定のロジックに入っていました。そのため、
estimateArrivalTimes(ETA)とconnectedRoutes(経路検索)の結果も変わりました。元々の設計では、経路検索の所要時間、
legsを渡したestimateArrivalTimes、trainRouteのEstimatedが同じ見積もりになることを、テストで保証しています(connected_route_eta_and_train_route_follow_the_legs、estimated_train_route_matches_a_single_leg_estimate)。このうち 1 つだけを変えることはできないので、#1712 をまるごと取り消し、元々の挙動に戻します。変更の種類
変更内容
git revertで取り消しました。コードは 到着時間推定を実際の所要時間と比べるベンチマークを追加し、CIで推定の悪化を検出できるようにした #1711 の時点(3845c00)と差分がありません。trainRouteのEstimated)と 到着時間推定を実際の所要時間と比べるベンチマークを追加し、CIで推定の悪化を検出できるようにした #1711(所要時間のベンチマーク)は残します。model: Estimatedを渡したときだけ動く追加です。本番との比較
このブランチを
make data && make devで起動した Worker と本番に同じ問い合わせを送り、応答を比べました。本番には #1710・#1711 も入っていないので、この比較で 2 つが既存の出力を変えていないことも確かめています。trainRoute(lineGroupIdあり、駅だけ、環状線の継ぎ目)estimateArrivalTimes(方向あり、方向なし)estimateArrivalTimesとtrainRoute(legsあり)connectedRoutes(75 組 × 並べ方 3 通り)問い合わせは、無作為に選んだ 60 の種別グループと駅グループの組、および所要時間のベンチマークの区間から作りました。
テスト
make fmtが通ることmake clippyが通ること(wasm32 ターゲットを含む)make testが通ることcargo fmt --all -- --check、make clippy、make testを実行し、すべて成功しました(stationapi 438 件、stationapi-worker 28 件ほか、失敗なし)。make testは、generated/がある状態とdata/*.csvだけの状態の両方で通しています。関連Issue
Reverts #1712
スクリーンショット(任意)
🤖 Generated with Claude Code
Summary by CodeRabbit