Run middleman build with NO_CONTRACTS=true
Try how this affects build times https://gitlab.com/gitlab-com/www-gitlab-com/issues/1265#note_30707602
Locally:
# Using Nodejs / contracts disabled
EXECJS_RUNTIME=Node NO_CONTRACTS=true bundle exec middleman build 634.59s user 17.74s system 313% cpu 3:27.81 total
EXECJS_RUNTIME=Node NO_CONTRACTS=true bundle exec middleman build 619.85s user 16.16s system 320% cpu 3:18.50 total
# Using mini_racer / contracts disabled
NO_CONTRACTS=true bundle exec middleman build 490.76s user 6.60s system 311% cpu 2:39.54 total
NO_CONTRACTS=true bundle exec middleman build 442.19s user 6.10s system 335% cpu 2:13.56 total
NO_CONTRACTS=true bundle exec middleman build 460.34s user 5.86s system 332% cpu 2:20.29 total
# Using mini_racer / contracts enabled
bundle exec middleman build 546.82s user 6.25s system 335% cpu 2:44.78 total
bundle exec middleman build 563.84s user 6.51s system 315% cpu 3:00.61 total
Edited by Achilleas Pipinellis