Piped v1 Cloud Run plugin panics on deployment and livestate entry points
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
- #6986 di @rootp1 — chiusa senza merge
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
Direzione di ricerca
Inizia da pkg/app/pipedv1/plugin/cloudrun/deployment/plugin.go e pkg/app/pipedv1/plugin/cloudrun/livestate/plugin.go, quindi esamina la registrazione in pkg/app/pipedv1/plugin/cloudrun/main.go. Esegui il test di ExecuteStage, DetermineVersions, DetermineStrategy e GetLivestate tramite unit test mirati. Il lavoro è completato quando questi entry point non causano più panic, le operazioni non supportate restituiscono errori espliciti e i test di regressione coprono ogni handler.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 1.4k
- Fork
- 391
- Merge medio
- 4g 1h
- PR unite (30g)
- 58
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pipe-cd/pipecd
-
Applications at the repository root are not triggered by new commitsForse già presa @Daksha1611 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 2 giorni
-
pipedv1 kubernetes plugins ignore trafficRouting.istio.host in K8S_TRAFFIC_ROUTINGForse già presa @Dhirenderchoudhary l’ha presa oggi. Aperta
Difficoltà 2/5 Mezza giornata Idoneità per principianti 74/100
pipe-cd/pipecd#7626 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
pipectl transfer restore application drops backed-up labelsForse già presa @bhavishyajain545 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
pipe-cd/pipecd#7622 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di pipe-cd/pipecd
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
docker-compose: postgres healthcheck should probe TCP (pg_isready -h localhost)Forse già presa @zezo-mohamed22 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
OneBusAway/watchdog#305 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
self-care self-care:agent-discoverability
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
githubnext/gh-cao#20928 ·
I maintainer di solito rispondono entro 1 giorno
-
automation documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
SocialGouv/iterion#3287 ·
I maintainer di solito rispondono entro 1 giorno