Posted 26 days ago. Visible to the public. Linked content. Auto-destruct in 35 days

Updated: How to make Webpacker compile once for parallel tests, and only if necessary

The solution was rewritten to be more robust:

  • Fix "ChunkLoadError: Error loading chunk 0" in parallel tests runs (affected apps that have a config.asset_host)
  • Prevent RSpec from compiling packs once for each test process when calling specs without a local webpack-dev-server
  • Don't freeze the parallel tests suite if the first test process crashes during compilation
  • Prevent making a trillion SHA1 hashes over the file contents of every file in app/ during tests
  • Remove duplicate digest logic already implemented in Webpacker itself
  • Also recompile when files in config/webpacker changed (use Webpacker's logic)
  • Fix a bug where multiple packs would be created after the user deleted public/packs-test (to remove a cached build).

makandra has been working exclusively with Ruby on Rails since 2007. Our laser focus on a single technology has made us a leader in this space.

Owner of this card:

Avatar
Henning Koch
Last edit:
25 days ago
by Henning Koch
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Henning Koch to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more