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

Rename port_handler functions #8481

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

jonathan-eq
Copy link
Contributor

@jonathan-eq jonathan-eq commented Aug 15, 2024

Issue
Resolves #8407

Approach
Short description of the approach

(Screenshot of new behavior in GUI if applicable)

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure tests pass locally (after every commit!)

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@jonathan-eq jonathan-eq force-pushed the port_handler branch 5 times, most recently from 5ec2d52 to 4703730 Compare August 16, 2024 07:06
@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.85%. Comparing base (266007d) to head (71f870c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/ert/services/_storage_main.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8481      +/-   ##
==========================================
+ Coverage   90.84%   90.85%   +0.01%     
==========================================
  Files         339      339              
  Lines       20855    20852       -3     
==========================================
  Hits        18946    18946              
+ Misses       1909     1906       -3     
Flag Coverage Δ
gui-tests 75.77% <91.66%> (+<0.01%) ⬆️
integration-tests 53.76% <91.66%> (+<0.01%) ⬆️
unit-tests 68.73% <91.66%> (+<0.01%) ⬆️

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.

@jonathan-eq jonathan-eq marked this pull request as ready for review August 16, 2024 07:38
@jonathan-eq jonathan-eq force-pushed the port_handler branch 2 times, most recently from 1d9d9fa to fbbd9e1 Compare August 28, 2024 10:26
@@ -151,8 +151,6 @@ def get_socket(self) -> socket.socket:

def get_connection_info(self) -> EvaluatorConnectionInfo:
return EvaluatorConnectionInfo(
self.host,
self.port,
Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense!

Copy link
Contributor

@xjules xjules left a comment

Choose a reason for hiding this comment

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

Very good PR @jonathan-eq ! Just update the commit message, where you describe find_available_socket API and do the rebase. 🚀

@jonathan-eq jonathan-eq added maintenance Not a bug now but could be one day, repaying technical debt release-notes:skip If there should be no mention of this in release notes labels Sep 3, 2024
This commit changes `port_handler.py` -> `net_utils.py` and cleans up
the functions in the file. `find_available_port` is now called
`find_available_socket`, and only returns the socket. The caller can use
the socket object to get the attached hostname and port, so this is no
longer explicitly returned.
@jonathan-eq jonathan-eq enabled auto-merge (rebase) September 3, 2024 06:28
@jonathan-eq jonathan-eq merged commit de9d63a into equinor:main Sep 3, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Not a bug now but could be one day, repaying technical debt release-notes:skip If there should be no mention of this in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename ert.shared.port_handler and its functions
4 participants