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

Handle errors about third party download and extract #543

Merged
merged 5 commits into from
Dec 20, 2017
Merged

Conversation

cs-lee
Copy link
Collaborator

@cs-lee cs-lee commented Dec 2, 2017

If script fail to download node binary, it should stop
and print right error log. This patch do it.
Additionally this patch add one function to print red color error log.

ISSUE=none

If absolute fail to download node binary, shell script should stop
and print right error log. This patch do it.
Additional add one function to print red color error log.

ISSUE=none
@nadongguri
Copy link
Collaborator

@cs-lee, LGTM. Would you share how to fallback to error 2 or 3 cases?

@cs-lee
Copy link
Collaborator Author

cs-lee commented Dec 4, 2017

case 2 :

    1. Delete third_party/node , third_party/mongodb (For download binary again)
    1. Disconnect lane cable and do ./absolute test

case 3 :

  • If sync_third_party.sh - sync_node this function send invalid file url to sync_third_party function.
    tar or unzip command will fail.

Add default color tag.

ISSUE=none
extract function return error number when invalid input is comming.

ISSUE=none
download and extract function handle error log itself.

ISSUE=none
@cs-lee
Copy link
Collaborator Author

cs-lee commented Dec 5, 2017

@romandev I applied your review comments. Please review.

@cs-lee cs-lee requested a review from romandev December 5, 2017 16:12
Change already sync error number.

ISSUE=none
Copy link
Member

@romandev romandev left a comment

Choose a reason for hiding this comment

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

lgtm

@romandev romandev merged commit 94e8537 into master Dec 20, 2017
@romandev romandev deleted the cs-lee branch December 20, 2017 06:05
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