Skip to content
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

Prod build appears stuck using latest release. #1639

Open
nobicycle opened this issue Mar 2, 2024 · 3 comments
Open

Prod build appears stuck using latest release. #1639

nobicycle opened this issue Mar 2, 2024 · 3 comments

Comments

@nobicycle
Copy link

`[user@tower frontend]$ npm run build --verbose
npm verb cli /usr/bin/node /usr/bin/npm
npm info using npm@10.4.0
npm info using node@v21.6.1
npm verb title npm run build
npm verb argv "run" "build" "--loglevel" "verbose"
npm verb logfile logs-max:10 dir:/home/user/.npm/_logs/2024-03-02T06_04_12_481Z-
npm verb logfile /home/user/.npm/_logs/2024-03-02T06_04_12_481Z-debug-0.log

build
npm run build-wasm-prod && vite build || (npm run print-building-help && exit 1)

npm verb cli /usr/bin/node /usr/bin/npm
npm info using npm@10.4.0
npm info using node@v21.6.1
npm verb title npm run build-wasm-prod
npm verb argv "run" "build-wasm-prod"
npm verb logfile logs-max:10 dir:/home/user/.npm/_logs/2024-03-02T06_04_12_851Z-
npm verb logfile /home/user/.npm/_logs/2024-03-02T06_04_12_851Z-debug-0.log

build-wasm-prod
wasm-pack build ./wasm --release --target=web`

No progress after 30 minutes.

System:
$ uname -a
Linux tower 6.6.16-2-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Feb 10 09:40:02 UTC 2024 x86_64 GNU/Linux

@Keavon
Copy link
Member

Keavon commented Mar 2, 2024

Hmmm. Did you install all the necessary documented prerequisites? Can you run a development build and serve from localhost?

@nobicycle
Copy link
Author

nobicycle commented Mar 2, 2024

@Keavon
Yes, from the frontend folder, I did (without errors):
$npm install

Changed 72 packages, and audited 399 packages in 11m

143 packages are looking for funding

$cargo install cargo-about

CPU is 0% utilisation for the wasm process.
I added --verbose to the call of wasm in package.json but it made no difference.

The end of the log file just contains:
18 timing config:load:flatten Completed in 3ms 19 timing npm:load:mkdirpcache Completed in 0ms 20 timing npm:load:mkdirplogs Completed in 0ms 21 verbose title npm run build-wasm-prod 22 verbose argv "run" "build-wasm-prod" 23 timing npm:load:setTitle Completed in 1ms 24 timing npm:load:display Completed in 2ms 25 verbose logfile logs-max:10 dir:/home/user/.npm/_logs/2024-03-02T07_28_33_690Z- 26 verbose logfile /home/user/.npm/_logs/2024-03-02T07_28_33_690Z-debug-0.log 27 timing npm:load:logFile Completed in 10ms 28 timing npm:load:timers Completed in 0ms 29 timing npm:load:configScope Completed in 0ms 30 timing npm:load Completed in 59ms 31 silly logfile start cleaning logs, removing 1 files 32 silly logfile done cleaning log files

@0HyperCube
Copy link
Member

After the build process, do you have a graphite/frontend/wasm/pkg containing a wasm file? Do you have a graphite/frontend/dist folder? Or perhaps a target/wasm32-unknown-unknown/release folder?

Could you elaborate on what you mean by the "wasm process"? Is this wasm-bindgen or rustc or your browser running the wasm? Furthermore can you reproduce this if you update rust, npm, etc, run a git clean -X -d -f and rebuild?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Short-Term
Development

No branches or pull requests

3 participants