#111427Reduce repeated fixture setup in functional tests
Description
Several functional tests repeatedly generate the same demo data or password hashes during setup.
Reuse authentication fixtures through database snapshots, reuse generated Styleguide fixtures on SQLite while restoring their files and site configuration, and reduce password hashing cost in the reaction test configuration.
A local SQLite comparison reduced execution time for the affected 44 cases from 52.9 to 18.2 seconds, with identical assertions. The complete SQLite suite and the affected PostgreSQL tests pass.
Styleguide retains its existing setup on server databases because the testing framework currently double-encodes JSON during snapshot restoration. The measured improvement applies to these cases, not the entire suite.
Reviews 2
History 26
-
Gerrit Code Review pushed patch set 1 for main to change 97586 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-12T19:48:30+00:00" > 11/12/26, 19:48 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97586 <span data-processor="relativetime" data-value="2026-11-12T20:17:53+00:00" > 11/12/26, 20:17 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97597 <span data-processor="relativetime" data-value="2026-11-13T08:20:16+00:00" > 11/13/26, 08:20 </span>
-
Wouter Wolters commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-13T08:25:16+00:00" > 11/13/26, 08:25 </span> -
Gerrit Code Review pushed patch set 2 for 14.3 to change 97597 status
ResolvedUnder Review <span data-processor="relativetime" data-value="2026-11-13T14:00:25+00:00" > 11/13/26, 14:00 </span> -
Wouter Wolters commented and changed status
Under ReviewResolved <span data-processor="relativetime" data-value="2026-11-13T14:20:19+00:00" > 11/13/26, 14:20 </span>Applied in changeset commit:c6134c4ce4814c78944d6348bb2f17026b5f2dc8.
Applied in changeset commit:47f5c100df6e865c9ab09e378230477f96e3310c.