Skip to content

Conversation

rane-rajasi
Copy link
Contributor

No description provided.

@rane-rajasi rane-rajasi requested a review from a team January 25, 2023 02:45
@rane-rajasi rane-rajasi requested review from kjohn-msft and removed request for a team January 25, 2023 02:45
@rane-rajasi rane-rajasi requested a review from najams as a code owner January 25, 2023 02:45
@codecov
Copy link

codecov bot commented Jan 25, 2023

Codecov Report

Merging #166 (3756637) into master (e239674) will increase coverage by 0.35%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #166      +/-   ##
==========================================
+ Coverage   88.16%   88.51%   +0.35%     
==========================================
  Files          86       86              
  Lines       12230    12595     +365     
==========================================
+ Hits        10782    11149     +367     
+ Misses       1448     1446       -2     
Flag Coverage Δ
python27 86.84% <98.62%> (+0.21%) ⬆️
python39 88.49% <100.00%> (+0.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/core/src/CoreMain.py 96.73% <100.00%> (+0.39%) ⬆️
src/core/src/bootstrap/Constants.py 98.36% <100.00%> (+0.02%) ⬆️
src/core/src/bootstrap/EnvLayer.py 71.86% <100.00%> (+1.04%) ⬆️
src/core/src/core_logic/ExecutionConfig.py 81.35% <100.00%> (+1.91%) ⬆️
...ore/src/package_managers/AptitudePackageManager.py 82.44% <100.00%> (+0.10%) ⬆️
src/core/tests/Test_CoreMain.py 99.87% <100.00%> (+0.01%) ⬆️
src/core/tests/library/ArgumentComposer.py 97.10% <100.00%> (+2.10%) ⬆️
src/core/tests/library/LegacyEnvLayerExtensions.py 94.25% <100.00%> (+0.20%) ⬆️
src/core/tests/library/RuntimeCompositor.py 100.00% <100.00%> (ø)
src/extension/src/ActionHandler.py 89.30% <100.00%> (+0.17%) ⬆️
... and 11 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@kjohn-msft kjohn-msft left a comment

Choose a reason for hiding this comment

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

Comments inline

@rane-rajasi rane-rajasi requested a review from jemex January 30, 2023 23:51
kjohn-msft
kjohn-msft previously approved these changes Jan 31, 2023
swjai
swjai previously approved these changes Jan 31, 2023
if raise_if_delete_failed:
raise Exception(error_message)
else:
print(error_message)
Copy link

Choose a reason for hiding this comment

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

nit: is print here a debug statement?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have a logger reference in EnvLayer so print is the way to log if needed

@rane-rajasi rane-rajasi dismissed stale reviews from swjai and kjohn-msft via dc0d345 January 31, 2023 17:41
kjohn-msft
kjohn-msft previously approved these changes Jan 31, 2023
return process if did_process_start else None

# Clear temp folder since core process launch failed
ext_env_handler.delete_temp_folder_contents()
Copy link

Choose a reason for hiding this comment

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

is this needed? Enable action has already cleanup the content before we get there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not needed right now since we only have one use of the tmp folder (i.e. save only one file type from core).

But tmp folder can have more use cases in future. In that case, this could be a fail safe method to ensure handler cleans everything if a core launch fails (if things are introduced to the tmp folder while launching core)

@rane-rajasi rane-rajasi merged commit 4434d2a into master Jan 31, 2023
@rane-rajasi rane-rajasi deleted the rarane-logchanges branch January 31, 2023 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants