-
Notifications
You must be signed in to change notification settings - Fork 37
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
Application executes before colocated Orchestrator is created #522
Application executes before colocated Orchestrator is created #522
Conversation
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.
A couple of comments on the first round but want to wait for @ashao and @al-rigazzi feedback
This reverts commit 5fc34f0.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #522 +/- ##
===========================================
+ Coverage 90.67% 90.72% +0.04%
===========================================
Files 60 60
Lines 3817 3816 -1
===========================================
+ Hits 3461 3462 +1
+ Misses 356 354 -2
|
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.
Just one change requested, otherwise looks good!
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.
One small pedantic thing!
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.
Thanks for tracking this down. Some minor suggestions requested.
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 suggest a small change to the filename, requesting @ashao's opinion on that too, to avoid too many iterations
filename = ( | ||
f"{hostname}.log" | ||
if os.getenv("SMARTSIM_LOG_LEVEL") == "debug" | ||
else "/dev/null" |
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 also suggest "/dev/null" -> os.devnull
see here as a more portable (and nice looking) solution.
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.
Good catch! would h8 for this to fail for others
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.
That was quick! LGTM
Orchestrator launch moved to a blocking process. Application executes once Orchestrator is built.