0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/migrations/core/spec/lib
Gerhard Schlager d93f2a6cdd MT: Add worker results, plan-ahead scheduling and TUI timing fixes
Framework and reporting changes from the posts-step series:

* Workers can hand one result back to the parent. The progress pipe
  lines are tagged now (p = progress, r = result; both directions of
  the format live in PipeProgressChannel), and a step can define
  combine_results(results, tracker) to reduce the workers' results
  parent-side under the run DB's single-writer discipline. Whatever
  the reducer logs feeds back into the step's warning/error tallies.
* The scheduler computes a fork-starved step's plan (row count and
  partition boundaries) on a background thread while the steps holding
  the fork budget finish, so the counting overlaps with their work.
* Shards open with journal_mode off: single writer, read only once at
  merge, thrown away on failure.
* TUI: the step clock keeps counting time in the duration (like the
  plain reporter), the percent floors instead of rounding up to 100%
  early, and sub-second durations show as "<1s".
* Enables RSpec/LeakyConstantDeclaration for the migrations specs.
2026-07-22 12:57:27 +02:00
..
cli MT: Forbid send-style dispatch via Style/Send 2026-07-22 09:52:55 +02:00
common MT: Add worker results, plan-ahead scheduling and TUI timing fixes 2026-07-22 12:57:27 +02:00
conversion MT: Add worker results, plan-ahead scheduling and TUI timing fixes 2026-07-22 12:57:27 +02:00
database MT: Only use INSERT OR IGNORE for tables that want it in the shard merge 2026-07-03 17:05:25 +02:00
database_spec.rb MT: Run conversion steps concurrently and split the heavy ones across cores 2026-07-03 11:48:25 +02:00
migrations_spec.rb
placeholder_spec.rb MT: Add typed placeholder model for deferred post embeds 2026-06-29 16:52:41 +02:00