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

Update deploy agent logging #1258

Merged
merged 5 commits into from
Sep 27, 2023
Merged

Conversation

osoriano
Copy link
Contributor

@osoriano osoriano commented Sep 15, 2023

Contains changes to improve debuggability such as:

  • Update error logging

    In case of tarball extraction failures, log the exception and stack
    trace. These exceptions could cause the host to become stuck. The stack
    trace can help with debugging.

  • Update checksum verification warning

    When the sha1 reuqest for a build returns non-200, the verification is
    s. kipped.

    Since this happens often and is usually expected, switch to
    log.warning.

    Also, update the warning message to clarify the sha1 verification is
    skipped

  • Add S flag to curl

    From the curl documentation:

    -S, --show-error
    When used with -s, --silent, it makes curl show an error message if it fails.

    Add the flag to show the error in case of failures, which an be helpful
    for debugging

Testing done:
Ran the downloader command locally. Verified it succeeded.
Also tested the error case by modifying the extracted dir and re-running the downloader. Ensured stack trace was logged

From the curl documentation:

    -S, --show-error
           When used with -s, --silent, it makes curl show an error message if it fails.

Add the flag to show the error in case of failures, which an be helpful
for debugging
Update the variable naming to describe the type in contains
When the sha1 reuqest for a build returns non-200, the verification is
skipped.

Since this happens often and is usually expected, switch to
`log.warning`.

Also, update the warning message to clarify the sha1 verification is
skipped
In case of tarball extraction failures, log the exception and stack
trace. These exceptions could cause the host to become stuck. The stack
trace can help with debugging.
@osoriano osoriano requested a review from a team as a code owner September 15, 2023 16:20
Copy link
Contributor

@ntascii ntascii left a comment

Choose a reason for hiding this comment

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

lgtm

@ntascii ntascii merged commit 161945e into master Sep 27, 2023
6 checks passed
@ntascii ntascii deleted the osoriano/update-deploy-agent-logging branch September 27, 2023 20:44
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.

2 participants