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

[FtpUploadV2] Fail on exception when reading FTP options #14742

Merged
merged 4 commits into from
Apr 20, 2021

Conversation

DaniilShmelev
Copy link
Contributor

@DaniilShmelev DaniilShmelev commented Apr 15, 2021

Task name: FtpUploadV2

Description: Fail task when exception is thrown while retrieving FTP options; this issue happens because unhandled promise rejections don't fail the task.
FtpUploadV1 is not affected by this issue because it reads FTP options synchronously.

Documentation changes required: No

Added unit tests: No

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

Examples:
Old behavior:
✔️FtpUpload@2 valid FTP endpoint
✔️FtpUpload@2 invalid FTP endpoint - doesn't upload anything, but doesn't fail either because unhandledPromiseRejection isn't failing the task

New behavior:
✔️FtpUpload@2 valid FTP endpoint
FtpUpload@2 invalid FTP endpoint - fails as expected

FtpUploadV1 (no need to change):
✔️FtpUpload@1 valid FTP endpoint
FtpUpload@1 invalid FTP endpoint - fails as expected

@DaniilShmelev DaniilShmelev requested a review from a team April 15, 2021 14:46
@DaniilShmelev DaniilShmelev self-assigned this Apr 15, 2021
@DaniilShmelev DaniilShmelev changed the title [FtpUpload V1, V2] Fail on exceptions [FtpUploadV2] Fail on exception when reading FTP options Apr 16, 2021
@DaniilShmelev DaniilShmelev force-pushed the users/DaniilShmelev/FtpUpload-fail-on-errors branch from e66df32 to faa4ccf Compare April 16, 2021 12:40
Copy link
Contributor

@anatolybolshakov anatolybolshakov left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! Please take a look at small comment

@anatolybolshakov anatolybolshakov requested a review from a team April 16, 2021 12:51
@EzzhevNikita EzzhevNikita requested a review from a team April 16, 2021 14:40
@vladislav-ryzhov
Copy link
Contributor

Tested manually this PR.
Old behavior:
FtpUploadV2 Error: Input required: serverEndpoint - doesn't fail

New behavior:
FtpUploadV2 Error: Input required: serverEndpoint - fails as expected

Copy link
Contributor

@vladislav-ryzhov vladislav-ryzhov left a comment

Choose a reason for hiding this comment

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

LGTM!

@DaniilShmelev DaniilShmelev merged commit 77f58d2 into master Apr 20, 2021
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