Skip to content

Use PipedPlugin.Name instead of passing --name in the SDK#5936

Merged
t-kikuc merged 1 commit into
masterfrom
sdk/name-from-config
Jun 11, 2025
Merged

Use PipedPlugin.Name instead of passing --name in the SDK#5936
t-kikuc merged 1 commit into
masterfrom
sdk/name-from-config

Conversation

@t-kikuc
Copy link
Copy Markdown
Member

@t-kikuc t-kikuc commented Jun 11, 2025

What this PR does:

as title

Why we need it:

--name is not necessary.

This PR is simpler than #5931

Which issue(s) this PR fixes:

Follows #5931

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
@t-kikuc t-kikuc requested a review from a team as a code owner June 11, 2025 01:30
Comment thread pkg/plugin/sdk/plugin.go
// When this happens, it means that there is a bug in the SDK, because these are private fields.
input.Logger.Error(
"something went wrong in the SDK, please report this issue to the developers",
zap.String("name", p.name),
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p.name is empty here.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 11, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 28.48%. Comparing base (73cf4df) to head (557c060).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/plugin/sdk/plugin.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5936   +/-   ##
=======================================
  Coverage   28.48%   28.48%           
=======================================
  Files         520      520           
  Lines       56421    56416    -5     
=======================================
  Hits        16070    16070           
+ Misses      39085    39080    -5     
  Partials     1266     1266           
Flag Coverage Δ
. 23.76% <ø> (+<0.01%) ⬆️
.-pkg-app-pipedv1-plugin-example 0.00% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes 66.42% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes_multicluster 67.51% <ø> (ø)
.-pkg-app-pipedv1-plugin-wait 35.51% <ø> (ø)
.-pkg-plugin-sdk 49.25% <0.00%> (+0.10%) ⬆️
.-tool-actions-gh-release 19.23% <ø> (ø)
.-tool-actions-plan-preview 25.30% <ø> (ø)
.-tool-codegen-protoc-gen-auth 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@t-kikuc t-kikuc enabled auto-merge (squash) June 11, 2025 01:36
Copy link
Copy Markdown
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍🏻

@t-kikuc t-kikuc changed the title User PipedPlugin.Name instead of passing --name Use PipedPlugin.Name instead of passing --name Jun 11, 2025
@t-kikuc t-kikuc changed the title Use PipedPlugin.Name instead of passing --name Use PipedPlugin.Name instead of passing --name in the SDK Jun 11, 2025
@t-kikuc t-kikuc merged commit d18cc19 into master Jun 11, 2025
39 of 40 checks passed
@t-kikuc t-kikuc deleted the sdk/name-from-config branch June 11, 2025 01:38
@github-actions github-actions Bot mentioned this pull request Jul 14, 2025
@github-actions github-actions Bot mentioned this pull request Aug 15, 2025
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.

3 participants