Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle socket file detection on Windows #123819

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

fakecore
Copy link
Contributor

@fakecore fakecore commented Mar 8, 2024

Update socket file detection logic to use os.Stat as per upstream Go fix for golang/go#33357. This resolves the issue where socket files could not be properly identified on Windows systems.

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Update to use os.Stat instead of os.Lstat when deleting the device-plugins socket file, rather than deleting all files in the /var/lib/kubelet/device-plugins/ directory.

Which issue(s) this PR fixes:

related issue: #97554
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Update socket file detection logic to use os.Stat as per upstream
Go fix for golang/go#33357. This resolves
the issue where socket files could not be properly identified on
Windows systems.
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Mar 8, 2024
Copy link

linux-foundation-easycla bot commented Mar 8, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Mar 8, 2024
@k8s-ci-robot
Copy link
Contributor

Welcome @fakecore!

It looks like this is your first PR to kubernetes/kubernetes 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/kubernetes has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 8, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @fakecore. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/kubelet sig/node Categorizes an issue or PR as relevant to SIG Node. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Mar 8, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Mar 8, 2024
@fakecore
Copy link
Contributor Author

fakecore commented Mar 8, 2024

/check-required-labels

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Mar 8, 2024
@cblecker
Copy link
Member

cblecker commented Mar 9, 2024

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 9, 2024
@fakecore
Copy link
Contributor Author

/retest

@hakman
Copy link
Member

hakman commented Mar 10, 2024

@fakecore I don't see commit golang/go@628b101 cherry-picked to any of the current Go release branches.
I think merging this PR should wait until Kubernetes is built using a Go version containing the above mentioned commit.

@ffromani
Copy link
Contributor

@fakecore I don't see commit golang/go@628b101 cherry-picked to any of the current Go release branches. I think merging this PR should wait until Kubernetes is built using a Go version containing the above mentioned commit.

I agree. Looks like a nice fix, but we need to make sure the dependencies are satisfied. I'll check what's the best triage labeling for this kind of state. Holding meanwhile.

@ffromani
Copy link
Contributor

/hold

per #123819 (comment)

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 10, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 9, 2024
@fakecore
Copy link
Contributor Author

hi all, I noticed current kubernets build version is go1.22.4
this patch release with go1.22.1
can we merge this ?

@fakecore
Copy link
Contributor Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 18, 2024
@ffromani
Copy link
Contributor

hi all, I noticed current kubernets build version is go1.22.4 this patch release with go1.22.1 can we merge this ?

I'd bump go.mod to 1.22.1 at least, or somehow require at least go 1.22.1 before to merge

@ffromani
Copy link
Contributor

/priority backlog

@k8s-ci-robot k8s-ci-robot added priority/backlog Higher priority than priority/awaiting-more-evidence. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jun 18, 2024
@fakecore
Copy link
Contributor Author

hi all, I noticed current kubernets build version is go1.22.4 this patch release with go1.22.1 can we merge this ?

I'd bump go.mod to 1.22.1 at least, or somehow require at least go 1.22.1 before to merge

Could we use the version specified in .go-version instead?

@ffromani
Copy link
Contributor

hi all, I noticed current kubernets build version is go1.22.4 this patch release with go1.22.1 can we merge this ?

I'd bump go.mod to 1.22.1 at least, or somehow require at least go 1.22.1 before to merge

Could we use the version specified in .go-version instead?

right, forgot about this. I think it's fine? cc @cpanato to crosscheck

@ffromani
Copy link
Contributor

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jun 18, 2024
@ffromani
Copy link
Contributor

ffromani commented Jul 5, 2024

/hold
/lgtm

AFAIU master branch is already on golang >= 1.22.4, so this seems safe to move forward

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 5, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: d2971bddc1203367a5f70f64424c64ccac45da3b

@fakecore
Copy link
Contributor Author

@ffromani Should I do anything to expedite the merging of this PR? It's been hanging there for a while.

@ffromani
Copy link
Contributor

@ffromani Should I do anything to expedite the merging of this PR? It's been hanging there for a while.

we need approval review, tagging few ppl which can help @klueska @mrunalp @dchen1107

@fakecore
Copy link
Contributor Author

@ffromani Should I do anything to expedite the merging of this PR? It's been hanging there for a while.

we need approval review, tagging few ppl which can help @klueska @mrunalp @dchen1107

I have no idea who the maintainer is for this node. Thanks for your help!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fakecore, mrunalp

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 17, 2024
@ffromani
Copy link
Contributor

/hold cancel

no longer relevant (xref: #123819 (comment))

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 18, 2024
@k8s-ci-robot
Copy link
Contributor

@fakecore: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubernetes-integration 4060ee6 link unknown /test pull-kubernetes-integration

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot merged commit 9196650 into kubernetes:master Jul 18, 2024
13 of 14 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.31 milestone Jul 18, 2024
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. area/kubelet cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note-none Denotes a PR that doesn't merit a release note. sig/node Categorizes an issue or PR as relevant to SIG Node. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Development

Successfully merging this pull request may close these issues.

7 participants