hundreds-musician-51496
06/06/2020, 5:56 PMasync function go() {
}
outputs = go()
Where go
does all the work. outputs
contains a promise with stack outputs that I am able to print. However, could the promise be completing before all files upload? This has been working for months but I could have updated a node version or similar ...white-balloon-205
06/06/2020, 11:23 PMhundreds-musician-51496
06/06/2020, 11:29 PMwhite-balloon-205
06/07/2020, 12:10 AMhundreds-musician-51496
06/07/2020, 1:40 AM/tmp
assets now, maybe that will tell me more. I'll report back as I find stuff.A
and uploads file B
, but those files have identical content? I noticed in the logs that a file I was deleting and another I was uploading had identical hashes:
+ aws:s3/bucketObject:BucketObjectN: (create)
[urn=urn:pulumi:deploy-ci-ap-1578-contacts-graphql::deploy::aws:s3/bucketObject:BucketObject::static/js/main.1f4cd4af.chunk.js-upd]
contentType : "application/javascript"
forceDestroy: false
key : "static/js/main.1f4cd4af.chunk.js"
source : asset(file:8ced15a) { /root/console-ci/static/js/main.1f4cd4af.chunk.js }
- aws:s3/bucketObject:BucketObject: (delete)
[urn=urn:pulumi:deploy-ci-ap-1578-contacts-graphql::deploy::aws:s3/bucketObject:BucketObject::static/js/main.2e52d953.chunk.js-upd]
contentType : "application/javascript"
etag : "d41d8cd98f00b204e9800998ecf8427e"
forceDestroy : false
key : "static/js/main.2e52d953.chunk.js"
source : "/tmp/pulumi-asset-8ced15aac0a318134f59b6ac5c8144920dd0f29f94d10f7f8a7ef4579bd1300f"
Notice that asset(file:8ced15a)
is the same prefix as the pulumi-asset
file. That pulumi-asset
file has 0 bytes in /tmp
as well:
-rw------- 1 root root 0 Jun 7 02:17 /tmp/pulumi-asset-8ced15aac0a318134f59b6ac5c8144920dd0f29f94d10f7f8a7ef4579bd1300f
The file main.1f4cd4af.chunk.js
ends up with 0 bytes in the S3 bucket (and main.2e52d953.chunk.js
) is deleted. It seems that once a file is 0-bytes, it is always 0-bytes in subsequent updates as wesll.white-balloon-205
06/08/2020, 6:24 PMhundreds-musician-51496
06/08/2020, 6:28 PMwhite-balloon-205
07/06/2020, 9:23 PM2.9.1
. It looks like you might still be using 2.8.0
?hundreds-musician-51496
07/06/2020, 9:25 PM