Skip to content

fix: fix ci log failing with logrus#2078

Merged
cdrage merged 2 commits intokubernetes:mainfrom
cdrage:fix-compile
Jan 14, 2026
Merged

fix: fix ci log failing with logrus#2078
cdrage merged 2 commits intokubernetes:mainfrom
cdrage:fix-compile

Conversation

@cdrage
Copy link
Copy Markdown
Member

@cdrage cdrage commented Jan 14, 2026

fix: fix ci log failing with logrus

What type of PR is this?

/kind bug

The issue was that log.Fatalf expects a constant format string as its first argument, but err.Error() is a variable string that could contain format specifiers like %s, which could cause unexpected behavior.

We're going to now use log.Fatal(err) which is the correct way.

What this PR does / why we need it:

Failing PRs (ex. #2077)

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage charlie@charliedrage.com

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 14, 2026
@k8s-ci-robot k8s-ci-robot requested a review from TessaIO January 14, 2026 14:07
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 14, 2026
#### What type of PR is this?

<!--
Add one of the following kinds:
/kind cleanup
/kind documentation
/kind feature
-->

/kind bug

The issue was that log.Fatalf expects a constant format string as its first argument, but err.Error() is a variable string that could contain format specifiers like %s, which could cause unexpected behavior.

We're going to now use log.Fatal(err) which is the correct way.

#### What this PR does / why we need it:

Failing PRs (ex. kubernetes#2077)

#### Which issue(s) this PR fixes:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 14, 2026
@cdrage
Copy link
Copy Markdown
Member Author

cdrage commented Jan 14, 2026

/lgtm

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@cdrage: you cannot LGTM your own PR.

Details

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@cdrage
Copy link
Copy Markdown
Member Author

cdrage commented Jan 14, 2026

/approve

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cdrage

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cdrage cdrage added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 14, 2026
@cdrage cdrage merged commit 5145fc9 into kubernetes:main Jan 14, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants