-
Notifications
You must be signed in to change notification settings - Fork 104
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
Have scheduler lsf driver dump bhist summary to runpath #7794
Conversation
e72660d
to
a0bcecc
Compare
7a2b476
to
8e4c8ac
Compare
I have manually tested this, and it works :) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7794 +/- ##
==========================================
- Coverage 85.41% 85.39% -0.03%
==========================================
Files 381 381
Lines 23565 23598 +33
Branches 887 888 +1
==========================================
+ Hits 20128 20151 +23
- Misses 3330 3333 +3
- Partials 107 114 +7 ☔ View full report in Codecov by Sentry. |
43c9273
to
5293136
Compare
5293136
to
bfaaf30
Compare
Since we are adding a file to the runpath that we can never later rename or remove, we should have an approval from @sondreso as well. |
739e1eb
to
486674b
Compare
I am slightly skeptical to adding this file to the runpath: Contrary to the content of LSF-stderr, the output from |
This is only for the convencience of the user. The inconvenience is to figure out which number to pick for The user is maybe not so interested in this output as Ert developers are, and runpath pollution is a real thing, so a suggested alternative is to log this is as a multiline string from the driver instead. |
I think this is a better option, as we avoid making another file we have to keep in the runpath. Additionally we get logging to Azure for free with this option as well. |
It will automatically be logged inside
Is this sufficient? |
0399319
to
f1bb6b9
Compare
I think |
e939904
to
430994d
Compare
I re-added the |
430994d
to
89c5349
Compare
Is it effectively logged twice?? |
Yes, to the two different loggers (lsf-driver and driver) |
Why do we want that? |
The default logger in execute_with_retries logs to debug. Should I change this to info instead? |
89c5349
to
e7bcdda
Compare
@berland I added |
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!
Remember to squash. |
71f5050
to
d007e20
Compare
Should I add a "bhist -l summary: " prefix to the logged stdout? @berland
|
Yes, I think that makes sense. Don't use the word "summary" since it is ad-hoc invented here, maybe just write "Output from bhist -l" or something? |
d007e20
to
b370df0
Compare
I think this looks good:
|
Issue
Resolves #7694
Approach
The commit in this PR has the lsf_driver dump the output of
bhist -l <JOB_ID>
to runpath.(Screenshot of new behavior in GUI if applicable)
When applicable