Repository navigation
潮位観測情報の遅れを津波などの間に自動で測る - #246
Merged
Merged
Conversation
津波の警報・注意報の間、震度 5 弱以上か津波に触れたコメントのある地震から 2 時間、 波浪警報の間だけ、tide_time.json を 1 分ごとに取り、更新ごとの遅れを表 tide_latency と ログ (tide-latency で始まる行) に残す。SONAE_TIDE_PROBE=off で切る。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T8TqVdo6LUrWKdVQgbScVU
|
Claude finished @5ym's task in 18s —— View job レビュー結果大きな不具合は見つかりませんでした。 見たこと
軽い指摘 (要確認、直さなくても可)
全体として、設計は既存の規約 (情報源に並べない・docs 更新・環境変数で切る) と一貫していて、問題無しと考えます。 |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T8TqVdo6LUrWKdVQgbScVU
|
Claude finished @5ym's task in 13s —— View job レビュー結果大きな不具合は見つかりませんでした。問題無しと考えます。 見たこと
前回の指摘の訂正
軽い指摘 (要確認、直さなくても可)
|
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.
#245 で書いた「津波の警報・注意報が出たら tide_time.json を測り直す」を、サーバーが自動でするようにした。
すること
https://www.jma.go.jp/bosai/tidelevel/data/tide/tide_time.jsonを 1 分ごとに取る (If-None-Match・If-Modified-Sinceを付ける)。検潮所ごとの値は取らないtsunami: 大津波警報・津波警報・津波注意報のどれかが、どこかの予報区に出ているquake: 最大震度 5 弱以上 (未入電も) か、津波に触れたコメント (「津波」「海面変動」を含み、「津波の心配はありません」「津波の影響はありません」を除く) のある地震の発生から 2 時間wave: 波浪 (VPWW59) の警報以上が、どこかの市町村等に出ているtide_latency(新しいマイグレーション) に 1 行を足し、tide-latencyで始まる 1 行をログに出力する。表は 90 日・1 万行までafter_gap(前に取れた回から 90 秒より空いた回)SONAE_TIDE_PROBE=offで切る (docs/install.md・chart の values.yaml に書いた)kubectl logs … | grep tide-latencyと bun での SQL) を書いた確かめたこと
bun run lint・bun run check・bun testが通る (理由の決め方・tide_time.jsonの読み取り・304 と同じ時刻の扱い・再起動の後・失敗の後の間隔・残す行の数のテストを足した)🤖 Generated with Claude Code
https://claude.ai/code/session_01T8TqVdo6LUrWKdVQgbScVU