Skip to content

Conversation

rane-rajasi
Copy link
Contributor

Existing code was failing to write top level message in status file with the error reported as
image

This was not a blocker or terminal error but affected our reporting status accurately in status blob

@rane-rajasi rane-rajasi requested review from a team, benank and kjohn-msft and removed request for a team June 24, 2022 19:12
@codecov
Copy link

codecov bot commented Jun 24, 2022

Codecov Report

Merging #152 (59f38e6) into master (90a99b2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #152   +/-   ##
=======================================
  Coverage   87.28%   87.28%           
=======================================
  Files          48       48           
  Lines        8324     8324           
=======================================
  Hits         7266     7266           
  Misses       1058     1058           
Flag Coverage Δ
python27 86.12% <ø> (ø)
python39 87.24% <ø> (ø)

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


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 90a99b2...59f38e6. Read the comment docs.

self.update_key_value_safely(status_json[0], self.file_keys.status_status, status, self.file_keys.status_status)
self.update_key_value_safely(status_json[0], self.file_keys.status_code, code, self.file_keys.status_status)
self.update_key_value_safely(status_json[0], self.file_keys.timestamp_utc, str(datetime.datetime.utcnow().strftime(Constants.UTC_DATETIME_FORMAT)))
self.update_key_value_safely(status_json[0][self.file_keys.status_status], self.file_keys.status_formatted_message_message, str(message), self.file_keys.status_formatted_message)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the status_status key used here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved.

self.update_key_value_safely(status_json[0], self.file_keys.status_status, status, self.file_keys.status_status)
self.update_key_value_safely(status_json[0], self.file_keys.status_code, code, self.file_keys.status_status)
self.update_key_value_safely(status_json[0], self.file_keys.timestamp_utc, str(datetime.datetime.utcnow().strftime(Constants.UTC_DATETIME_FORMAT)))
self.update_key_value_safely(status_json[0][self.file_keys.status_status], self.file_keys.status_formatted_message_message, str(message), self.file_keys.status_formatted_message)
Copy link
Contributor

Choose a reason for hiding this comment

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

should there be a comma between status_json[0] and self.file_keys?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No because it's to access the key inside status_json[0]

@rane-rajasi rane-rajasi merged commit 8696a78 into master Jun 27, 2022
@rane-rajasi rane-rajasi deleted the rarane-bugfix branch July 13, 2022 16:33
@benank benank mentioned this pull request Jul 25, 2022
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.

3 participants