mirror of
https://github.com/we-promise/sure.git
synced 2026-08-05 08:32:15 +00:00
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>
2.7 KiB
2.7 KiB