Skip to content
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

Adding lifecycle logging for i18n sync scripts #38655

Merged
merged 1 commit into from Jan 21, 2021
Merged

Conversation

daynew
Copy link
Member

@daynew daynew commented Jan 21, 2021

Adding some extra logging for the i18n sync to make it clearer what the error was and when the different stages of the sync start/end.

  • Added rescue block for logging any exceptions which are thrown and stop the scripts.
  • Added "starting" and "completed" logs for the sync in/up/down/out scripts so we can see in the logs when each phase starts and stops.

Testing story

  • Manually tested.

@daynew daynew requested a review from a team as a code owner January 21, 2021 00:06
Copy link
Contributor

@hacodeorg hacodeorg left a comment

Choose a reason for hiding this comment

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

LGTM. Just 1 question regarding Honeybadger reporting.

`git checkout staging` if should_i "switch to staging branch"
rescue => e
puts "return_to_staging_branch failed from the error: #{e}"
raise e
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this exception reported in Honeybadger?

Copy link
Member Author

Choose a reason for hiding this comment

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

No it doesn't. I think I would prefer that it would ping @foundations-team in slack when the build failed, but I don't know how slack integration works at the moment. I just wanted to get something quick out. If you know how to, please setup a call with me!

@daynew daynew merged commit 23cef56 into staging Jan 21, 2021
@daynew daynew deleted the i18n-sync-logging branch January 21, 2021 18:38
daynew added a commit that referenced this pull request Jan 21, 2021
daynew added a commit that referenced this pull request Jan 21, 2021
Revert "Merge pull request #38655 from code-dot-org/i18n-sync-logging"
daynew added a commit that referenced this pull request Jan 28, 2021
daynew added a commit that referenced this pull request Jan 28, 2021
Revert "Revert "Merge pull request #38655 from code-dot-org/i18n-sync…
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.

None yet

2 participants