3
1
Fork
You've already forked website
0

Website takes minutes to build #2

Closed
opened 2025年10月24日 23:06:05 +02:00 by ekaitz-zarraga · 5 comments
Collaborator
Copy link

As we talked in #1 the website takes ages to build. In the order of minutes.

We should do better.

As we talked in #1 the website takes ages to build. In the order of minutes. We should do better.

Minutes? It takes a few seconds for me:

$ time haunt build
building pages in 'site'...
copy website/static/base/code/hello-http-server.scm → /static/base/code/hello-http-server.scm
copy website/static/base/code/hello.scm → /static/base/code/hello.scm
[...]
writing page 'guile.html'
writing page 'learn/index.html'
writing page 'libraries/index.html'
build completed successfully
Some deprecated features have been used. Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information. Set it to "no" to suppress
this message.
real	0m6.609s
user	0m4.278s
sys	0m0.368s
Minutes? It takes a few seconds for me: ``` $ time haunt build building pages in 'site'... copy website/static/base/code/hello-http-server.scm → /static/base/code/hello-http-server.scm copy website/static/base/code/hello.scm → /static/base/code/hello.scm [...] writing page 'guile.html' writing page 'learn/index.html' writing page 'libraries/index.html' build completed successfully Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. real 0m6.609s user 0m4.278s sys 0m0.368s ```
Author
Collaborator
Copy link

@civodul is this with a clean build?

In my computer takes literally minutes. It gets stuck for quite some time when you run it. Let me run and show you.

@civodul is this with a clean build? In my computer takes literally minutes. It gets stuck for quite some time when you run it. Let me run and show you.
Author
Collaborator
Copy link
Ekaitz@tuxedo ~/projects/guile/website (master)$ guix shell haunt guile time
Ekaitz@tuxedo ~/projects/guile/website (master) [env]$ GUILE_WEB_SITE_LOCAL=yes time haunt build
;;; note: source file /home/Ekaitz/projects/guile/website/website/apps/base/components.scm
;;; newer than compiled /home/Ekaitz/.cache/guile/ccache/3.0-LE-8-4.6/home/Ekaitz/projects/guile/website/website/apps/base/components.scm.go
Producing Web pages for local tests *only*!
;;; note: source file /home/Ekaitz/projects/guile/website/website/apps/base/contribute-page.scm
;;; newer than compiled /home/Ekaitz/.cache/guile/ccache/3.0-LE-8-4.6/home/Ekaitz/projects/guile/website/website/apps/base/contribute-page.scm.go
building pages in 'site'...
copy website/static/base/fonts/cantarell/OFL.txt → /static/base/fonts/cantarell/OFL.txt
copy website/static/base/fonts/cantarell/Cantarell-Bold.ttf → /static/base/fonts/cantarell/Cantarell-Bold.ttf
copy website/static/base/fonts/cantarell/FONTLOG.txt → /static/base/fonts/cantarell/FONTLOG.txt
copy website/static/base/fonts/cantarell/Cantarell-Oblique.ttf → /static/base/fonts/cantarell/Cantarell-Oblique.ttf
copy website/static/base/fonts/cantarell/DESCRIPTION.en_us.html → /static/base/fonts/cantarell/DESCRIPTION.en_us.html
copy website/static/base/fonts/cantarell/Cantarell-Regular.ttf → /static/base/fonts/cantarell/Cantarell-Regular.ttf
copy website/static/base/fonts/cantarell/Cantarell-BoldOblique.ttf → /static/base/fonts/cantarell/Cantarell-BoldOblique.ttf
copy website/static/base/fonts/cantarell/METADATA.json → /static/base/fonts/cantarell/METADATA.json
copy website/static/base/code/use-module.scm → /static/base/code/use-module.scm
copy website/static/base/code/hello.scm → /static/base/code/hello.scm
copy website/static/base/code/hello-http-server.scm → /static/base/code/hello-http-server.scm
copy website/static/base/css/learn.css → /static/base/css/learn.css
copy website/static/base/css/libraries.css → /static/base/css/libraries.css
copy website/static/base/css/elements.css → /static/base/css/elements.css
copy website/static/base/css/buttons.css → /static/base/css/buttons.css
copy website/static/base/css/common.css → /static/base/css/common.css
copy website/static/base/css/fonts.css → /static/base/css/fonts.css
copy website/static/base/css/site-menu.css → /static/base/css/site-menu.css
copy website/static/base/css/contribute.css → /static/base/css/contribute.css
copy website/static/base/css/base.css → /static/base/css/base.css
copy website/static/base/css/code.css → /static/base/css/code.css
copy website/static/base/css/site-footer.css → /static/base/css/site-footer.css
copy website/static/base/css/news.css → /static/base/css/news.css
copy website/static/base/css/download.css → /static/base/css/download.css
copy website/static/base/css/index.css → /static/base/css/index.css
copy website/static/base/css/regular-page.css → /static/base/css/regular-page.css
copy website/static/base/css/shell.css → /static/base/css/shell.css
copy website/static/base/img/covers/r6rs.jpg → /static/base/img/covers/r6rs.jpg
copy website/static/base/img/covers/sicp.jpg → /static/base/img/covers/sicp.jpg
copy website/static/base/img/covers/guile-first-steps.png → /static/base/img/covers/guile-first-steps.png
copy website/static/base/img/covers/tspl4.png → /static/base/img/covers/tspl4.png
copy website/static/base/img/covers/guile-reference.png → /static/base/img/covers/guile-reference.png
copy website/static/base/img/apps-thumbnails/guixsd.png → /static/base/img/apps-thumbnails/guixsd.png
copy website/static/base/img/apps-thumbnails/texmacs.png → /static/base/img/apps-thumbnails/texmacs.png
copy website/static/base/img/apps-thumbnails/gnucash.png → /static/base/img/apps-thumbnails/gnucash.png
copy website/static/base/img/apps-thumbnails/lilypond.png → /static/base/img/apps-thumbnails/lilypond.png
copy website/static/base/img/apps-thumbnails/geda.png → /static/base/img/apps-thumbnails/geda.png
copy website/static/base/img/apps-thumbnails/gdb.png → /static/base/img/apps-thumbnails/gdb.png
copy website/static/base/img/apps-thumbnails/guile-charting.png → /static/base/img/apps-thumbnails/guile-charting.png
copy website/static/base/img/apps-thumbnails/sly.png → /static/base/img/apps-thumbnails/sly.png
copy website/static/base/img/guile-days-2019.png → /static/base/img/guile-days-2019.png
copy website/static/base/img/robots-and-extension-legs.png → /static/base/img/robots-and-extension-legs.png
copy website/static/base/img/feed.png → /static/base/img/feed.png
copy website/static/base/img/kid-robot-and-extension-legs.png → /static/base/img/kid-robot-and-extension-legs.png
copy website/static/base/img/favicon.png → /static/base/img/favicon.png
copy website/static/base/img/gears-up.png → /static/base/img/gears-up.png
copy website/static/base/img/gears-down.png → /static/base/img/gears-down.png
copy website/static/base/img/noise-bg.png → /static/base/img/noise-bg.png
copy website/static/base/img/robots-and-extension-legs-1.png → /static/base/img/robots-and-extension-legs-1.png
copy website/static/base/img/kid-programming-a-robot.png → /static/base/img/kid-programming-a-robot.png
copy website/static/base/img/branding.png → /static/base/img/branding.png
copy website/static/base/img/page-link-triangle.png → /static/base/img/page-link-triangle.png
copy website/static/base/img/kid-flying-robots.png → /static/base/img/kid-flying-robots.png
copy website/static/base/img/link-arrow.png → /static/base/img/link-arrow.png
write /news/gnu-guile-3010-released.html
write /news/gnu-guile-309-released.html
write /news/gnu-guile-308-released.html
write /news/gnu-guile-307-released.html
write /news/gnu-guile-306-released.html
write /news/gnu-guile-305-released.html
write /news/gnu-guile-304-released.html
write /news/gnu-guile-303-released.html
write /news/gnu-guile-302-released.html
write /news/gnu-guile-301-released.html
write /news/gnu-guile-227-released.html
write /news/gnu-guile-300-released.html
write /news/gnu-guile-299-beta-released.html
write /news/gnu-guile-298-beta-released.html
write /news/gnu-guile-297-beta-released.html
write /news/gnu-guile-296-beta-released.html
write /news/gnu-guile-295-beta-released.html
write /news/gnu-guile-294-beta-released.html
write /news/gnu-guile-293-beta-released.html
write /news/gnu-guile-226-released.html
write /news/gnu-guile-225-released.html
write /news/join-guile-guix-days-strasbourg-2019.html
write /news/gnu-guile-292-beta-released.html
write /news/gnu-guile-fosdem-2019.html
write /news/gnu-guile-291-beta-released.html
write /news/gnu-guile-224-released.html
write /news/gnu-guile-223-released.html
write /news/gnu-guile-222-released.html
write /news/gnu-guile-221-released.html
write /news/gnu-guile-220-released.html
write /news/gnu-guile-218-released.html
write /news/gnu-guile-217-released.html
write /news/gnu-guile-2.0.14-released.html
write /news/gnu-guile-at-fosdem.html
write /news/gnu-guile-215-released.html
write /news/gnu-guile-2013-released-security-fixes.html
write /news/gnu-guile-214-released-beta.html
write /news/gnu-guile-2012-released.html
write /news/gnu-guile-213-released-beta.html
write /news/gnu-guile-212-released-beta.html
write /news/gnu-guile-216-released.html
write /news/gnu-guile-fosdem-schedule-available.html
write /news/give-a-talk-in-gnu-guiles-track-at-fosdem.html
write /news/gnu-guile-211-released.html
write /news/gnu-guile-2011-released.html
write /news/gnu-guile-2010-released.html
write /news/guile-20-just-turned-3-years-old.html
write /news/gsoc-guile-emacs-and-emacsy.html
write /news/gnu-guile-209-released.html
write /news/two-years-of-guile-20.html
write /news/gnu-guile-207-released.html
write /news/gnu-guile-206-released.html
write /news/happy-birthday-guile-20.html
write /news/gnu-guile-205-released.html
write /news/gnu-guile-204-released.html
write /news/guile-20-manual-available-from-your-bookstore.html
write /news/gnu-guile-203-released.html
write /news/gnu-guile-202-released.html
write /news/gnu-guile-201-released.html
write /news/gnu-guile-200-released.html
write /news/gnu-guile-1915-released-last-call-before-20.html
write /news/gnu-guile-1914-released.html
write /news/gnu-guile-188-released.html
write /news/gnu-guile-1913-released.html
write /news/gnu-guile-1912-released.html
write /news/gnu-guile-1911-the-very-last-pre-release.html
write /news/the-story-of-gnu-guile-and-emacs.html
write /news/gnu-guile-1910-the-last-pre-release.html
write /news/gnu-guile-199-released-getting-closer.html
write /news/gnu-guile-198-released.html
write /news/gnu-guile-197-released.html
write /news/gnu-guile-196-released.html
write /news/gnu-guile-195-released.html
write /news/gnu-guile-194-released.html
write /news/gnu-guile-193-is-out.html
write /news/gnu-guile-192-released.html
write /index.html
write /news/feed.xml
writing page 'index.html'
writing page 'contribute/index.html'
writing page 'download/index.html'
writing page 'guile.html'
writing page 'learn/index.html'
writing page 'libraries/index.html'
build completed successfully
Some deprecated features have been used. Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information. Set it to "no" to suppress
this message.
3.02user 0.22system 13:32.27elapsed 0%CPU (0avgtext+0avgdata 448928maxresident)k
315224inputs+5288outputs (1533major+59595minor)pagefaults 0swaps
Ekaitz@tuxedo ~/projects/guile/website (master) [env]$

13 minutes.

``` Ekaitz@tuxedo ~/projects/guile/website (master)$ guix shell haunt guile time Ekaitz@tuxedo ~/projects/guile/website (master) [env]$ GUILE_WEB_SITE_LOCAL=yes time haunt build ;;; note: source file /home/Ekaitz/projects/guile/website/website/apps/base/components.scm ;;; newer than compiled /home/Ekaitz/.cache/guile/ccache/3.0-LE-8-4.6/home/Ekaitz/projects/guile/website/website/apps/base/components.scm.go Producing Web pages for local tests *only*! ;;; note: source file /home/Ekaitz/projects/guile/website/website/apps/base/contribute-page.scm ;;; newer than compiled /home/Ekaitz/.cache/guile/ccache/3.0-LE-8-4.6/home/Ekaitz/projects/guile/website/website/apps/base/contribute-page.scm.go building pages in 'site'... copy website/static/base/fonts/cantarell/OFL.txt → /static/base/fonts/cantarell/OFL.txt copy website/static/base/fonts/cantarell/Cantarell-Bold.ttf → /static/base/fonts/cantarell/Cantarell-Bold.ttf copy website/static/base/fonts/cantarell/FONTLOG.txt → /static/base/fonts/cantarell/FONTLOG.txt copy website/static/base/fonts/cantarell/Cantarell-Oblique.ttf → /static/base/fonts/cantarell/Cantarell-Oblique.ttf copy website/static/base/fonts/cantarell/DESCRIPTION.en_us.html → /static/base/fonts/cantarell/DESCRIPTION.en_us.html copy website/static/base/fonts/cantarell/Cantarell-Regular.ttf → /static/base/fonts/cantarell/Cantarell-Regular.ttf copy website/static/base/fonts/cantarell/Cantarell-BoldOblique.ttf → /static/base/fonts/cantarell/Cantarell-BoldOblique.ttf copy website/static/base/fonts/cantarell/METADATA.json → /static/base/fonts/cantarell/METADATA.json copy website/static/base/code/use-module.scm → /static/base/code/use-module.scm copy website/static/base/code/hello.scm → /static/base/code/hello.scm copy website/static/base/code/hello-http-server.scm → /static/base/code/hello-http-server.scm copy website/static/base/css/learn.css → /static/base/css/learn.css copy website/static/base/css/libraries.css → /static/base/css/libraries.css copy website/static/base/css/elements.css → /static/base/css/elements.css copy website/static/base/css/buttons.css → /static/base/css/buttons.css copy website/static/base/css/common.css → /static/base/css/common.css copy website/static/base/css/fonts.css → /static/base/css/fonts.css copy website/static/base/css/site-menu.css → /static/base/css/site-menu.css copy website/static/base/css/contribute.css → /static/base/css/contribute.css copy website/static/base/css/base.css → /static/base/css/base.css copy website/static/base/css/code.css → /static/base/css/code.css copy website/static/base/css/site-footer.css → /static/base/css/site-footer.css copy website/static/base/css/news.css → /static/base/css/news.css copy website/static/base/css/download.css → /static/base/css/download.css copy website/static/base/css/index.css → /static/base/css/index.css copy website/static/base/css/regular-page.css → /static/base/css/regular-page.css copy website/static/base/css/shell.css → /static/base/css/shell.css copy website/static/base/img/covers/r6rs.jpg → /static/base/img/covers/r6rs.jpg copy website/static/base/img/covers/sicp.jpg → /static/base/img/covers/sicp.jpg copy website/static/base/img/covers/guile-first-steps.png → /static/base/img/covers/guile-first-steps.png copy website/static/base/img/covers/tspl4.png → /static/base/img/covers/tspl4.png copy website/static/base/img/covers/guile-reference.png → /static/base/img/covers/guile-reference.png copy website/static/base/img/apps-thumbnails/guixsd.png → /static/base/img/apps-thumbnails/guixsd.png copy website/static/base/img/apps-thumbnails/texmacs.png → /static/base/img/apps-thumbnails/texmacs.png copy website/static/base/img/apps-thumbnails/gnucash.png → /static/base/img/apps-thumbnails/gnucash.png copy website/static/base/img/apps-thumbnails/lilypond.png → /static/base/img/apps-thumbnails/lilypond.png copy website/static/base/img/apps-thumbnails/geda.png → /static/base/img/apps-thumbnails/geda.png copy website/static/base/img/apps-thumbnails/gdb.png → /static/base/img/apps-thumbnails/gdb.png copy website/static/base/img/apps-thumbnails/guile-charting.png → /static/base/img/apps-thumbnails/guile-charting.png copy website/static/base/img/apps-thumbnails/sly.png → /static/base/img/apps-thumbnails/sly.png copy website/static/base/img/guile-days-2019.png → /static/base/img/guile-days-2019.png copy website/static/base/img/robots-and-extension-legs.png → /static/base/img/robots-and-extension-legs.png copy website/static/base/img/feed.png → /static/base/img/feed.png copy website/static/base/img/kid-robot-and-extension-legs.png → /static/base/img/kid-robot-and-extension-legs.png copy website/static/base/img/favicon.png → /static/base/img/favicon.png copy website/static/base/img/gears-up.png → /static/base/img/gears-up.png copy website/static/base/img/gears-down.png → /static/base/img/gears-down.png copy website/static/base/img/noise-bg.png → /static/base/img/noise-bg.png copy website/static/base/img/robots-and-extension-legs-1.png → /static/base/img/robots-and-extension-legs-1.png copy website/static/base/img/kid-programming-a-robot.png → /static/base/img/kid-programming-a-robot.png copy website/static/base/img/branding.png → /static/base/img/branding.png copy website/static/base/img/page-link-triangle.png → /static/base/img/page-link-triangle.png copy website/static/base/img/kid-flying-robots.png → /static/base/img/kid-flying-robots.png copy website/static/base/img/link-arrow.png → /static/base/img/link-arrow.png write /news/gnu-guile-3010-released.html write /news/gnu-guile-309-released.html write /news/gnu-guile-308-released.html write /news/gnu-guile-307-released.html write /news/gnu-guile-306-released.html write /news/gnu-guile-305-released.html write /news/gnu-guile-304-released.html write /news/gnu-guile-303-released.html write /news/gnu-guile-302-released.html write /news/gnu-guile-301-released.html write /news/gnu-guile-227-released.html write /news/gnu-guile-300-released.html write /news/gnu-guile-299-beta-released.html write /news/gnu-guile-298-beta-released.html write /news/gnu-guile-297-beta-released.html write /news/gnu-guile-296-beta-released.html write /news/gnu-guile-295-beta-released.html write /news/gnu-guile-294-beta-released.html write /news/gnu-guile-293-beta-released.html write /news/gnu-guile-226-released.html write /news/gnu-guile-225-released.html write /news/join-guile-guix-days-strasbourg-2019.html write /news/gnu-guile-292-beta-released.html write /news/gnu-guile-fosdem-2019.html write /news/gnu-guile-291-beta-released.html write /news/gnu-guile-224-released.html write /news/gnu-guile-223-released.html write /news/gnu-guile-222-released.html write /news/gnu-guile-221-released.html write /news/gnu-guile-220-released.html write /news/gnu-guile-218-released.html write /news/gnu-guile-217-released.html write /news/gnu-guile-2.0.14-released.html write /news/gnu-guile-at-fosdem.html write /news/gnu-guile-215-released.html write /news/gnu-guile-2013-released-security-fixes.html write /news/gnu-guile-214-released-beta.html write /news/gnu-guile-2012-released.html write /news/gnu-guile-213-released-beta.html write /news/gnu-guile-212-released-beta.html write /news/gnu-guile-216-released.html write /news/gnu-guile-fosdem-schedule-available.html write /news/give-a-talk-in-gnu-guiles-track-at-fosdem.html write /news/gnu-guile-211-released.html write /news/gnu-guile-2011-released.html write /news/gnu-guile-2010-released.html write /news/guile-20-just-turned-3-years-old.html write /news/gsoc-guile-emacs-and-emacsy.html write /news/gnu-guile-209-released.html write /news/two-years-of-guile-20.html write /news/gnu-guile-207-released.html write /news/gnu-guile-206-released.html write /news/happy-birthday-guile-20.html write /news/gnu-guile-205-released.html write /news/gnu-guile-204-released.html write /news/guile-20-manual-available-from-your-bookstore.html write /news/gnu-guile-203-released.html write /news/gnu-guile-202-released.html write /news/gnu-guile-201-released.html write /news/gnu-guile-200-released.html write /news/gnu-guile-1915-released-last-call-before-20.html write /news/gnu-guile-1914-released.html write /news/gnu-guile-188-released.html write /news/gnu-guile-1913-released.html write /news/gnu-guile-1912-released.html write /news/gnu-guile-1911-the-very-last-pre-release.html write /news/the-story-of-gnu-guile-and-emacs.html write /news/gnu-guile-1910-the-last-pre-release.html write /news/gnu-guile-199-released-getting-closer.html write /news/gnu-guile-198-released.html write /news/gnu-guile-197-released.html write /news/gnu-guile-196-released.html write /news/gnu-guile-195-released.html write /news/gnu-guile-194-released.html write /news/gnu-guile-193-is-out.html write /news/gnu-guile-192-released.html write /index.html write /news/feed.xml writing page 'index.html' writing page 'contribute/index.html' writing page 'download/index.html' writing page 'guile.html' writing page 'learn/index.html' writing page 'libraries/index.html' build completed successfully Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. 3.02user 0.22system 13:32.27elapsed 0%CPU (0avgtext+0avgdata 448928maxresident)k 315224inputs+5288outputs (1533major+59595minor)pagefaults 0swaps Ekaitz@tuxedo ~/projects/guile/website (master) [env]$ ``` 13 minutes.

@ekaitz-zarraga Woow, weird.

Since you’re not using an isolated shell, could it be that something interferes? I use the command given in README:

guix shell -CN haunt guix guile

Could you also rm -rf /home/Ekaitz/.cache/guile/ccache/3.0-LE-8-4.6/home/Ekaitz/projects/guile/website/? (Although this won’t be in the container anyway.)

@ekaitz-zarraga Woow, weird. Since you’re not using an isolated shell, could it be that something interferes? I use the command given in `README`: ``` guix shell -CN haunt guix guile ``` Could you also `rm -rf /home/Ekaitz/.cache/guile/ccache/3.0-LE-8-4.6/home/Ekaitz/projects/guile/website/`? (Although this won’t be in the container anyway.)
Author
Collaborator
Copy link

Okay, deleting the cache and then running helps.

Maybe it was compiling Guix!?

EDIT: Yep, it feels like that was what it was doing. I'll close this one.

Okay, deleting the cache and then running helps. Maybe it was compiling Guix!? EDIT: Yep, it feels like that was what it was doing. I'll close this one.
Sign in to join this conversation.
No Branch/Tag specified
master
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
guile/website#2
Reference in a new issue
guile/website
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?