Skip to content

Cherry-pick to release-v0.52.x#5911

Merged
Warashi merged 4 commits into
release-v0.52.xfrom
cherry-pick-to-release-v0.52.x-1748846794
Jun 2, 2025
Merged

Cherry-pick to release-v0.52.x#5911
Warashi merged 4 commits into
release-v0.52.xfrom
cherry-pick-to-release-v0.52.x-1748846794

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jun 2, 2025

What this PR does / why we need it:
Cherry pick of #5897 #5905 #5908 #5909.

Note: You need to close and reopen this PR manually to trigger status check workflows. (Or just click if possible.)

Warashi and others added 4 commits June 2, 2025 06:46
* Fix import grouping by make lint/go FIX=true

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Fix linter errors by make lint/go FIX=true

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Rewrite long if-else to switch

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Remove unnecessary zero-value initialization

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Remove unnecessary string conversion

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Fix to correctly call deferred functions

log.Fatalf calls os.Exit(1) and deferred functions are not called.
This commit changes the _main function to return an integer and
call os.Exit from main.

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Fix lint errors

log.Fatal calls os.Exit, so the deferred functions are not called.
This commit changes the _main function to return an integer and
call os.Exit from main.
This is a workaround to fix the lint errors.

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Fix lint errors

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Initialize the slice with the correct capacity

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

* Change return type of doComment to int

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

---------

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
…5905)

* add title to args

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add the title to filter latest comments

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Use hash

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Fix tests

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* add multibyte test

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
…" (#5908)

This reverts commit 7e74937.

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Warashi <3600530+Warashi@users.noreply.github.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
@github-actions github-actions Bot requested a review from a team as a code owner June 2, 2025 06:46
@github-actions github-actions Bot requested review from Warashi, ffjlabo and khanhtc1202 and removed request for a team June 2, 2025 06:46
@Warashi Warashi closed this Jun 2, 2025
@Warashi Warashi reopened this Jun 2, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2025

Codecov Report

Attention: Patch coverage is 10.78431% with 91 lines in your changes missing coverage. Please review.

Project coverage is 27.84%. Comparing base (01f082b) to head (8c4c69a).
Report is 1 commits behind head on release-v0.52.x.

Files with missing lines Patch % Lines
tool/actions-plan-preview/main.go 0.00% 36 Missing ⚠️
tool/actions-gh-release/main.go 0.00% 31 Missing ⚠️
tool/actions-plan-preview/planpreview.go 0.00% 8 Missing ⚠️
pkg/git/repo.go 14.28% 4 Missing and 2 partials ⚠️
tool/actions-gh-release/filematcher.go 0.00% 6 Missing ⚠️
tool/actions-plan-preview/github.go 80.00% 2 Missing ⚠️
tool/actions-gh-release/release.go 50.00% 1 Missing ⚠️
tool/codegen/protoc-gen-auth/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           release-v0.52.x    #5911      +/-   ##
===================================================
- Coverage            27.85%   27.84%   -0.01%     
===================================================
  Files                  519      519              
  Lines                55793    55835      +42     
===================================================
+ Hits                 15539    15547       +8     
- Misses               39070    39102      +32     
- Partials              1184     1186       +2     
Flag Coverage Δ
. 23.73% <25.00%> (-0.02%) ⬇️
.-pkg-app-pipedv1-plugin-example 0.00% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes 63.60% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes_multicluster 64.93% <ø> (ø)
.-pkg-app-pipedv1-plugin-wait 35.51% <ø> (ø)
.-pkg-plugin-sdk 49.25% <ø> (ø)
.-tool-actions-gh-release 19.23% <2.56%> (-0.36%) ⬇️
.-tool-actions-plan-preview 25.30% <14.81%> (+2.08%) ⬆️
.-tool-codegen-protoc-gen-auth 0.00% <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.

@Warashi Warashi merged commit e3be633 into release-v0.52.x Jun 2, 2025
44 of 46 checks passed
@Warashi Warashi deleted the cherry-pick-to-release-v0.52.x-1748846794 branch June 2, 2025 06:56
@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.

2 participants