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

Double check watch pid if detected as still running on Windows #11513

Merged
merged 1 commit into from Feb 22, 2024

Conversation

glours
Copy link
Contributor

@glours glours commented Feb 16, 2024

What I did
Use an another process management library to double check if the previous watch process is still running or if it's a false positive

Related issue
https://docker.atlassian.net/browse/COMP-25
fix #11066

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

@glours glours force-pushed the use-go-ps-pid-lock branch 2 times, most recently from 3fb5035 to 3e277fa Compare February 16, 2024 16:25
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b0e3d5) 58.27% compared to head (9b0d1ff) 58.40%.
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11513      +/-   ##
==========================================
+ Coverage   58.27%   58.40%   +0.12%     
==========================================
  Files         134      135       +1     
  Lines       11546    11552       +6     
==========================================
+ Hits         6729     6747      +18     
+ Misses       4153     4143      -10     
+ Partials      664      662       -2     

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

False positives were detected when checking the previous watch process state

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@glours glours changed the title first simple implementation to check if previous watch process still … Double check watch pid if detected as still running on Windows Feb 19, 2024
@glours glours self-assigned this Feb 19, 2024
@glours glours requested review from a team, ndeloof, milas and jhrotko and removed request for a team February 19, 2024 14:32
@glours glours marked this pull request as ready for review February 19, 2024 14:32
@@ -0,0 +1,29 @@
//go:build !windows
Copy link
Contributor

Choose a reason for hiding this comment

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

As this also applies to Darwin, maybe rename _posix :trollface:

Copy link
Member

@milas milas left a comment

Choose a reason for hiding this comment

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

🙈

@glours glours merged commit a722441 into docker:main Feb 22, 2024
28 checks passed
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.

[BUG] watch crashes when deleting file
4 participants