pipecd icon indicating copy to clipboard operation
pipecd copied to clipboard

Piped v1 plan preview marks apps as changed when plugins report no changes

Open harshalsp07 opened this issue 3 weeks ago • 1 comments

What happened

A pipedv1 plan preview can report NoChange: false for an application even when its only plugin returns NoChange: true for every deploy target. The GitHub Action then shows a detailed plan with the summary “No changes were detected” for the same app.

The builder writes the combined flag back to the plugin result. The application flag stays at its zero value and pipectl copies that value into the JSON the action reads. Builder · CLI output · Action grouping

What you expected to happen

When the preview reports no resource changes for any target, the app has NoChange: true and appears under “No resource changes were detected” in the PR comment.

How to reproduce it

  1. Deploy a plain YAML Kubernetes app with pipedv1.
  2. Open a PR that changes only spec.description in app.pipecd.yaml. Leave the manifests unchanged.
  3. Run pipectl plan-preview with --out or use actions-plan-preview. The plugin summary says “No changes were detected” but the application is treated as changed.

A local Go test confirmed that the Kubernetes plugin returns NoChange: true for the description-only change. With a stubbed plugin RPC returning that flag, a second test reproduced NoChange: false from the builder. That result went through the CLI JSON conversion and appeared in the detailed plans in the rendered PR comment.

Environment

pipedv1, pipectl and actions-plan-preview source at 87c6da5e7.

harshalsp07 avatar Nov 13 '26 06:11 harshalsp07

I'd like to work on this.

Dhirenderchoudhary avatar Nov 14 '26 13:11 Dhirenderchoudhary