Wrangler: Failure to installing wasm-pack (intermittent behavior) on unneeded webpack type

Created on 23 Nov 2019  路  5Comments  路  Source: cloudflare/wrangler

馃悰 Bug Report

On a type = "webpack" always installs wasm-pack (referenced previous #137 #849), it is not worrying, though the trouble is the download fails every other Push on CI/CD.

The issue might reside with the worker that manipulates https://workers.cloudflare.com/get-binary/rustwasm/wasm-pack/v0.8.1/x86_64-unknown-linux-musl.tar.gz

Fetch for AWS S3 and does not benefit from Cache API, my suggestion AWS S3 鉃★笍Worker KV (maybe expire key) 鉃★笍Cache API.

At the moment it is always returning header CF-Cache-Status: MISS

Environment

GitHub Actions Ubuntu

Steps to reproduce

Run wrangler build

What did you expect to see?

Run wrangler build
猬囷笍 Installing wranglerjs...
npm WARN deprecated [email protected]: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 323 packages from 198 contributors and audited 4225 packages in 7.66s
found 0 vulnerabilities

猬囷笍 Installing wasm-pack...
 Built successfully, built project size is 75 KiB.

What did you see instead?

Run wrangler build
猬囷笍 Installing wranglerjs...
npm WARN deprecated [email protected]: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 323 packages from 198 contributors and audited 4225 packages in 11.351s
found 0 vulnerabilities

Error: could not download pre-built `wasm-pack` (failed to download from https://workers.cloudflare.com/get-binary/rustwasm/wasm-pack/v0.8.1/x86_64-unknown-linux-musl.tar.gz).
##[error]Process completed with exit code 1.
status - PR attached user report

Most helpful comment

Hi, thanks for the repo.

@EverlastingBugstopper is working on a fix

All 5 comments

Hi, thanks for the repo.

@EverlastingBugstopper is working on a fix

+1 for this. Builds could be sooooo much faster if it didn't install wasm-pack every time I published :P

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I am using wrangler in GitHub Action, with action/cache and "npx wrangler" the process speeds up a bit. Installing wranglerjs every and deploy is counterproductive in a CI/CD workflow.

this issue was solved a while ago with #1344

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nickbalestra picture nickbalestra  路  5Comments

xtuc picture xtuc  路  4Comments

RaniSputnik picture RaniSputnik  路  5Comments

jahredhope picture jahredhope  路  4Comments

TehShrike picture TehShrike  路  5Comments