-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
NPMAuthenticate fails to retry successfully #15913
Comments
I think this looks good, can you create a PR for this? |
For testing, you can prob manually throw an exception somewhere in the middle for just one time, and check if retries work properly, and without retry, it should fail with the variable issue. |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: NpmAuthenticate
Issue Description
The NPM Authenticate task leverages live services and can be very flaky for us , so we used the
retryOnTaskFailure
setting in the main task to try and mitigate this.We encounter the following error when we have a retry :
This looks to be due to the fact that after the first attempt to authenticate we timed out and the following catch code is run :
This wipes the directory
NPM_AUTHENTICATE_TEMP_DIRECTORY
but not the variables.thus on retry the following code gets executed :
And since
SAVE_NPMRC_PATH
was previously set, the code think the directory should be there, but it is not.Simple solution would be to wipe this variable alongside wiping the root directory.
Does that seem good? am I missing something important here.
Yeah -> #15914
The text was updated successfully, but these errors were encountered: