Skip to content

データ整合性チェックの data_validator 起動を -p 指定に修正 - #1642

Merged
TinyKitten merged 1 commit into
devfrom
fix/data-validator-ci-run-target
Aug 22, 2026
Merged

TinyKitten merged 1 commit into
devfrom
fix/data-validator-ci-run-target

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Aug 22, 2026 •

Copy link
Copy Markdown
Member

概要

データ整合性チェックのワークフロー verify_data_Integrity.yml が、cargo run --bin data_validator の解決に失敗して必ず落ちる状態になっていたため修正します。

変更の種類

  • バグ修正
  • 新機能
  • データの修正・追加
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • .github/workflows/verify_data_Integrity.yml の cargo run --bin data_validator を cargo run -p data_validator に変更

原因

Cloudflare Workers 移行 (#1640) でワークスペースのルートが仮想マニフェストから stationapi-worker パッケージに変わりました。cargo run --bin <name> は default-run パッケージ(= ルートの stationapi-worker)の bin ターゲットしか探さないため、以下で失敗します。

error: no bin target named `data_validator` in default-run packages
help: available bin in `data_validator` package:
    data_validator

このワークフローは data/*.csv の変更でしか起動しないため、移行後にデータ変更を含む最初の PR (#1641) で初めて顕在化しました。このまま放置すると 今後のデータ系 PR がすべて赤くなります。

AGENTS.md(cargo run -p data_validator)や Makefile・build_worker.yml の他の呼び出しは既に -p 指定なので、それらに揃えました。

確認

修正前後をローカルで再現・確認しています。

$ cargo run --bin data_validator
error: no bin target named `data_validator` in default-run packages

$ cargo run -p data_validator
[VALID] No errors reported.

テスト

ワークフロー定義のみの変更のため、cargo 系のチェックは省略しています(省略: コード変更なし)。cargo run -p data_validator が [VALID] No errors reported. を返すことはローカルで確認済みです。

  • make fmt が通ること
  • make clippy が通ること(wasm32 ターゲットを含む)
  • make test が通ること

関連Issue

スクリーンショット(任意)

Summary by CodeRabbit

  • 改善
    • データ検証処理の実行方法を更新し、検証ワークフローの安定性を向上しました。
    • 検証結果の出力、成果物の保存、エラー時の処理に変更はありません。

Cloudflare Workers 移行 (#1640) でワークスペースのルートが仮想マニフェスト
から stationapi-worker パッケージに変わったため、`cargo run --bin
data_validator` が default-run パッケージ (= ルートの stationapi-worker)
だけを探すようになり以下で落ちていた。

  error: no bin target named `data_validator` in default-run packages
  help: available bin in `data_validator` package:
      data_validator

このワークフローは data/*.csv の変更でしか起動しないため、移行後に
データ変更を含む最初の PR で初めて顕在化した。AGENTS.md および Makefile と
同じ `-p data_validator` に揃える。

cargo run -p data_validator: [VALID] No errors reported.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MtsmzZW2wWEAXLTJnw44Sn
@TinyKitten TinyKitten self-assigned this Aug 22, 2026
@github-actions github-actions Bot added fix 直した ci/cd deploy-dev and removed fix 直した labels Aug 22, 2026
@coderabbitai

coderabbitai Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 29bea85f-cdca-42f5-8526-345a87878110

📥 Commits

Reviewing files that changed from the base of the PR and between e6f7323 and d32f9ae.

📒 Files selected for processing (1)
  • .github/workflows/verify_data_Integrity.yml

Limit details: You’ve used all 3 included reviews currently available. Your 43 included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.


📝 Walkthrough

Walkthrough

GitHub Actions のデータ検証コマンドを、バイナリ指定から Cargo パッケージ指定へ変更しました。検証結果の出力、成果物保存、失敗時の処理は変更していません。

Changes

データ検証コマンド

Layer / File(s) Summary
Cargo パッケージ指定実行
.github/workflows/verify_data_Integrity.yml
データバリデーターの実行を cargo run --bin data_validator から cargo run -p data_validator に変更しました。

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to d32f9

データ検証ワークフローの起動先を明示する限定的なCI設定変更であり、通常の確認後にマージ可能です。現時点で対応が必要なマージ阻害リスクはありません。

Poem

うさぎが跳ねて、検証へ
Cargo の道を走ります
パッケージ指定で迷わずに
データの森を確かめる
月明かりも成功を祝う 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed タイトルは、data_validator の起動方法を -p 指定へ修正する主要変更を簡潔かつ具体的に示しています。
Description check ✅ Passed 概要、変更内容、原因、確認方法、テスト、変更種別を記載しており、テンプレートの必須情報を概ね満たしています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/data-validator-ci-run-target

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

Usage-based review receipt

Note

This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. Track spend and usage in your billing settings.


Comment @coderabbitai help to get the list of available commands.

@TinyKitten
TinyKitten merged commit 6b9f7af into dev Aug 22, 2026
2 checks passed
@TinyKitten
TinyKitten deleted the fix/data-validator-ci-run-target branch August 22, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant