Sporadic failure pushing images to ACR
Repro steps: Running through the Docker: ACR Tasks: Build Image in VS Code Error is generated when trying to push image to Azure
Action: vscode-docker.acr.quickBuild Error type: SourceLocationNotFound Error Message: The provided source location 'source/201811290000/20791c20-86a1-41c6-ae5c-07b8473fe461.tar.gz' is invalid or doesn't exists. Please use 'GetBuildSourceUploadUrl' to get a valid location to upload the source.
Version: 0.4.0 OS: win32
@dbafromthecold Does this reproduce every time? Or does it sometimes succeed? Anything else you could test us that might help us narrow down the issue? Thx.
@StephenWeatherford It's failed each time I've tried. Am working with a simple dockerfile (to test): -
`FROM mcr.microsoft.com/mssql/server:2019-CTP2.0-ubuntu
RUN /opt/mssql/bin/mssql-conf set sqlagent.enabled true
CMD /opt/mssql/bin/sqlservr`

I can't see any other errors/logs to provide any further information I'm afraid.
Sorry. Closed this by mistake. It appears to be an error with one of the libraries being used in Linux machines. I'm looking into this issue.
@rosanch According to the error info above, this was on Win32, not Linux...? It seems suspicious to me that the provided "source location" in the error is a relative path, shouldn't it be absolute?
#701 also shows this same error, although I wasn't able to repro.
@rosanch Actually, I think I know the cause:
In uploadSourceCode, you're not waiting for the blob upload to complete:
blob.createBlockBlobFromLocalFile(blobInfo.containerName, blobInfo.blobName, tarFilePath, (): void => { });