Skip to content

Conversation

@jonathan-eq
Copy link
Contributor

@jonathan-eq jonathan-eq commented Dec 3, 2025

  • Add optional flag to prioritize private IPs, default false
  • Update tests for correct ip address fetching

This reverts commit 75b190d.

Issue
Resolves ##12238

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 unit tests pass locally after every commit (git rebase -i main --exec 'just rapid-tests')

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: Add backport label to latest release (format: 'backport release-branch-name')

@jonathan-eq jonathan-eq added the release-notes:improvement Automatically categorise as improvement in release notes label Dec 3, 2025
@jonathan-eq jonathan-eq added this to SCOUT Dec 3, 2025
@jonathan-eq jonathan-eq moved this to In Progress in SCOUT Dec 3, 2025
@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 90.24390% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.62%. Comparing base (01695ab) to head (1804458).
⚠️ Report is 44 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/ert/config/ert_config.py 55.55% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12439      +/-   ##
==========================================
+ Coverage   90.54%   90.62%   +0.07%     
==========================================
  Files         432      430       -2     
  Lines       29391    29492     +101     
==========================================
+ Hits        26612    26727     +115     
+ Misses       2779     2765      -14     
Flag Coverage Δ
cli-tests 37.92% <75.60%> (+0.24%) ⬆️
gui-tests 68.58% <34.14%> (-0.63%) ⬇️
performance-and-unit-tests 74.38% <90.24%> (+0.26%) ⬆️
test 38.57% <24.39%> (+0.04%) ⬆️

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.

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 3, 2025

CodSpeed Performance Report

Merging #12439 will not alter performance

Comparing jonathan-eq:add-private-and-public-network (1804458) with main (57f3324)

Summary

✅ 22 untouched

- Add optional flag to prioritize private IPs, default false
- Update tests for correct ip address fetching

This reverts commit 75b190d.
@jonathan-eq jonathan-eq force-pushed the add-private-and-public-network branch 3 times, most recently from b10c1b9 to e70f52a Compare December 5, 2025 07:08
PRIORITIZE_PRIVATE_IP_ADDRESS
-----------------------------

The PRIORITIZE_PRIVATE_IP_ADDRESS key is used to specify if the IP address
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd be more clear with the message.
Some network setups require private IP for communication between ERT and forward models.

Also not sure if this wording is good:
This defaults to FALSE, therefore using the private IP address of the machine running Ert.

Shouldn't it be other-way around?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, youre right :)

This commit adds the new config keyword `PRIORITIZE_PRIVATE_IP_ADDRESS`,
letting the user specify in their config/site_config if Ert should
communicate with the fm_dispatch event reporter over the host's public
or private IP address. If this setting is incorrect, the event reporter
will not be able to reach Ert, and no granular forward model step
updates will be available in the GUI.
@jonathan-eq jonathan-eq force-pushed the add-private-and-public-network branch from e70f52a to 1804458 Compare December 15, 2025 13:55

# Select first non-empty value, based on prioritization
if prioritize_private:
selected_ip = private or public or loopback
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, I didn't know about this ""==False :)

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.

nice one @jonathan-eq ! 🚀
I think the release label should cover that it is user facing also.

@jonathan-eq jonathan-eq added the release-notes:user-impact Automatically categorise as breaking for people using CLI/GUI label Dec 15, 2025
@jonathan-eq jonathan-eq merged commit 998d029 into equinor:main Jan 8, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes:improvement Automatically categorise as improvement in release notes release-notes:user-impact Automatically categorise as breaking for people using CLI/GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants