Files
sure/test/fixtures/users.yml
Juan José Mata cf01009699 perf(test): use MIN_COST bcrypt digests in user fixtures (#2551)
The user fixtures stored password digests generated at bcrypt cost 12,
so every sign_in in controller/integration tests paid ~230ms of bcrypt
verification CPU (verification cost is embedded in the digest, so
ActiveModel::SecurePassword.min_cost does not help). With ~100 test
files signing in via setup blocks, this was the single largest
contributor to CI suite time.

Regenerate the shared digest at BCrypt::Engine::MIN_COST (cost 4).
Sessions, MFA, password reset, hostings and sophtron suites drop from
~33s accumulated to ~10s locally, with no behavioral change.


Claude-Session: https://claude.ai/code/session_01RpZe2ajeGkPRRBHfaJTfUB

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-08 09:00:25 +02:00

2.7 KiB