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

feat(#158): kill detached process on win #159

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

feat(#158): kill detached process on win #159

wants to merge 13 commits into from

Conversation

h1alexbel
Copy link
Owner

@h1alexbel h1alexbel commented Sep 20, 2024

In this pull I've implemented kill(port) for killing detached process on windows platform, and enabled accepts_request_in_detached_mode integration test on windows platform.

closes #158


PR-Codex overview

The focus of this PR is to add support for killing ports on Windows platform in the CLI integration tests.

Detailed summary

  • Added npm install kill-port in justfile
  • Added Windows-specific logic for detached process flag in main.rs
  • Updated integration tests to handle port killing on Windows platform

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.15%. Comparing base (1bd7585) to head (39e19fd).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #159   +/-   ##
=======================================
  Coverage   83.15%   83.15%           
=======================================
  Files          16       16           
  Lines         285      285           
=======================================
  Hits          237      237           
  Misses         48       48           

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

@h1alexbel
Copy link
Owner Author

@l3r8yJ something gets wrong with exiting of the test:

test tests::accepts_request_in_detached_mode has been running for over 60 seconds

Maybe you do know how to fix that?

@l3r8yJ
Copy link
Collaborator

l3r8yJ commented Sep 21, 2024

@h1alexbel I think that use killport from npx is not a good idea, i'll refactor a bit this part

@h1alexbel
Copy link
Owner Author

@l3r8yJ I will try to check problematic test on real windows then

@h1alexbel
Copy link
Owner Author

@l3r8yJ I checked out this branch on windows. It looks like server starts in blocking mode, but it should be detached. Probably some flags are misused

@h1alexbel h1alexbel marked this pull request as draft September 25, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

integration_test.rs:75-77: Create similar integration...
2 participants