-
Notifications
You must be signed in to change notification settings - Fork 108
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
Log LSF execution host to Azure #8826
Log LSF execution host to Azure #8826
Conversation
461aaff
to
1f5f5d5
Compare
08f19db
to
fd4dab2
Compare
Retrieve exec_hosts from bjobs and log to azure Update bjobs output with placeholder for exec_hosts in tests Add tests for bjobs_exec_host parsing
fd4dab2
to
473854b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8826 +/- ##
==========================================
+ Coverage 91.30% 91.40% +0.09%
==========================================
Files 342 343 +1
Lines 21028 21084 +56
==========================================
+ Hits 19200 19272 +72
+ Misses 1828 1812 -16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Is there a test to assert that this message is only logged once pr realization? |
src/ert/scheduler/lsf_driver.py
Outdated
bjobs_exec_hosts = parse_bjobs_exec_hosts(stdout.decode(errors="ignore")) | ||
|
||
for jobid, exec_hosts in bjobs_exec_hosts.items(): | ||
if self._jobs[jobid].exec_hosts == "-": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition is never true in the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rewrote this to get better coverage. Also, this is the default value for exec_hosts
, and the value bjobs
will yield when no node is yet assigned for the job.
A re-run of codecov would have been nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Issue
Resolves https://github.com/equinor/scout/issues/1117
git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"'
)When applicable