Closed nicolasdao closed 4 years ago
@squee1945 @ImJasonH Can you PTAL and post your thoughts?
Thanks for the detailed repro.
I'm unfamiliar with https://www.npmjs.com/package/archiver - is there a CLI to use it, or does it need code? Can you provide more info on how you create your zip archive?
Ping @nicolasdao is this still happening? Can you please provide the requested info?
Hi @bendory ,
I apologize, but I'm unable to confirm if this issue is still happening. Because I could not overcome it, I reimplemented my code to by-pass this issue. Instead of uploading a zip to Google Cloud Storage and then requesting a deployment to GAE from that zip, I uploaded each file one by one under a bucket, and then request the GAE deployment. That worked, and I never tried the zip approach after that incident.
Thanks for the reply @nicolasdao; I'm closing this out as "not reproducible."
Affected builder image
gcr.io/cloud-builders/gcs-fetcher
Expected Behavior
After the nodeJS source code is zipped and successfully uploaded to Google Cloud Storage, a request to deploy that package to a new GA version via the API
POST https://appengine.googleapis.com/v1/{parent=apps/*/services/*}/versions
should start the first build step which fetches the zip and unzip it.A month ago, the
fetcher
build step in the Google Cloud Build history would start with this:Actual Behavior
Today, the
fetcher
build step in the Google Cloud Build history starts with this:The deployment works and the source code is unzipped, but it is missing some files. Files in the app root folder are ok, as well as files nested under a root folder, but all files nested deeper than that are missing (e.g.,
src/index.js
is ok, butsrc/repos/index.js
is missing).Steps to Reproduce the Problem
This hosts an API at
/alive
that lists all the files in the app root directory. Make sure that you add a dummy file undersrc/test/index.js
./alive
endpoint in your browser, you should receive a list of all the files. You'll notice that thesrc/test/index.js
is missing.Additional Info