Piped v1 Cloud Run plugin panics on deployment and livestate entry points
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
- #6986 @rootp1 による — マージされずにクローズ
評価
調査の方向性
pkg/app/pipedv1/plugin/cloudrun/deployment/plugin.go と pkg/app/pipedv1/plugin/cloudrun/livestate/plugin.go から始め、次に pkg/app/pipedv1/plugin/cloudrun/main.go の登録を確認します。対象を絞った単体テストから ExecuteStage、DetermineVersions、DetermineStrategy、GetLivestate を実行します。これらのエントリーポイントで panic が発生しなくなり、サポートされていない操作が明示的なエラーを返し、回帰テストが各 handler をカバーすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What happened:
The piped v1 Cloud Run plugin exposes deployment and livestate entry points that still call panic("implement me"). Any request that reaches ExecuteStage, DetermineVersions, DetermineStrategy, or GetLivestate will crash the plugin process instead of returning a controlled error.
What you expected to happen:
Cloud Run plugin requests should either complete successfully or return an explicit error without panicking the process.
How to reproduce it:
- Open
pkg/app/pipedv1/plugin/cloudrun/deployment/plugin.goandpkg/app/pipedv1/plugin/cloudrun/livestate/plugin.go. - Inspect
Plugin.ExecuteStage,Plugin.DetermineVersions,Plugin.DetermineStrategy, andPlugin.GetLivestate. - Invoke any of those exported methods from a focused unit test or a small harness.
- Observe that the current implementation panics immediately because each method ends in
panic("implement me").
Environment:
pipedversion: repository checkout on 2026-07-07control-planeversion: repository checkout on 2026-07-07- Others: reproduced from current
mastercheckout by static inspection of the exported Cloud Run plugin handlers
Summary
The v1 Cloud Run plugin binary is registered with both deployment and livestate handlers, but several required methods are still stubbed with panics.
Affected Area
pkg/app/pipedv1/plugin/cloudrun
Steps to Reproduce
- Build or inspect the Cloud Run v1 plugin module.
- Call
ExecuteStage,DetermineVersions, orDetermineStrategyondeployment.Plugin. - Call
GetLivestateonlivestate.Plugin. - Observe process termination from
panic("implement me")instead of an error response.
Expected Behaviour
Cloud Run plugin handlers should never crash the plugin process. Unsupported behavior should be reported through explicit errors until full implementations exist.
Actual Behaviour
The exported handlers panic immediately, which can terminate the plugin process when those code paths are exercised.
Technical Evidence
pkg/app/pipedv1/plugin/cloudrun/deployment/plugin.go:51-63pkg/app/pipedv1/plugin/cloudrun/livestate/plugin.go:27-29pkg/app/pipedv1/plugin/cloudrun/main.goregisters both deployment and livestate plugins throughsdk.NewPlugin(...), so these panic paths are part of the published plugin surface.
Suspected Root Cause
The Cloud Run v1 plugin skeleton was merged before deployment and livestate handler implementations were completed.
Proposed Direction
Replace the panic stubs with explicit returned errors for unsupported operations, or gate registration of unfinished handlers until complete implementations are ready. Add regression tests covering each handler so future changes cannot reintroduce process panics.
Acceptance Criteria
- Cloud Run plugin deployment and livestate entry points no longer panic.
- Unsupported operations return explicit errors instead.
- Focused unit tests cover
ExecuteStage,DetermineVersions,DetermineStrategy, andGetLivestate.
- 主要言語
- Go
- スター
- 1.4k
- フォーク
- 391
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 58
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pipe-cd/pipecd のほかの issue
-
Applications at the repository root are not triggered by new commits対応中かも @Daksha1611 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
-
pipedv1 kubernetes plugins ignore trafficRouting.istio.host in K8S_TRAFFIC_ROUTING対応中かも @Dhirenderchoudhary が今日担当しました。 オープン
難易度 2/5 半日 初心者へのやさしさ 74/100
pipe-cd/pipecd#7626 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
pipectl transfer restore application drops backed-up labels対応中かも @bhavishyajain545 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
pipe-cd/pipecd#7622 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 2 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
docker-compose: postgres healthcheck should probe TCP (pg_isready -h localhost)対応中かも @zezo-mohamed22 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
OneBusAway/watchdog#305 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
self-care self-care:agent-discoverability
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
githubnext/gh-cao#20928 ·
メンテナーはふだん 1 日以内に返信
-
automation documentation
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
SocialGouv/iterion#3287 ·
メンテナーはふだん 1 日以内に返信