Skip to content

ci: Move Synapse start to beginning of workflow - #5855

Closed
backspace wants to merge 1 commit into
cs-12583-parallel-image-warmfrom
cs-12583-synapse-first
Closed

ci: Move Synapse start to beginning of workflow#5855
backspace wants to merge 1 commit into
cs-12583-parallel-image-warmfrom
cs-12583-synapse-first

Conversation

@backspace

Copy link
Copy Markdown
Contributor

This is an iteration of #5854, stacked on #5850. Synapse takes long enough that starting in first might help.

Claude explanationSynapse takes about 67s to answer its healthcheck, and `create realm users` does nothing but wait for it: in a shard log, all twelve realm users queue at 18:34:33 and the first registration request goes out at 18:35:03, a 30s gap that is entirely Synapse coming up.

Starting it just before the index import (measured on #5854) hid only the ~24s the import takes, so the gate still waited 38s and setup did not move. Start it as early as the image allows instead — right after Traefik, before the asset download, skills-realm population, the remaining image warm and the import — so roughly the whole boot happens behind work the shard has to do anyway.

The warm action grows an images input so this can pull just the Synapse image and leave the other four to the existing step; all remains the default for every other caller.

Expected: create realm users falls toward the ~2s the registrations themselves take, without Wait for realms growing to absorb it. If the wait does grow, realm-server's own boot is the next wall rather than Synapse's.

Synapse takes about 67s to answer its healthcheck, and `create realm
users` does nothing but wait for it: in a shard log, all twelve realm
users queue at 18:34:33 and the first registration request goes out at
18:35:03, a 30s gap that is entirely Synapse coming up.

Starting it just before the index import (measured on #5854) hid only the
~24s the import takes, so the gate still waited 38s and setup did not
move. Start it as early as the image allows instead — right after Traefik,
before the asset download, skills-realm population, the remaining image
warm and the import — so roughly the whole boot happens behind work the
shard has to do anyway.

The warm action grows an `images` input so this can pull just the Synapse
image and leave the other four to the existing step; `all` remains the
default for every other caller.

Expected: `create realm users` falls toward the ~2s the registrations
themselves take, without `Wait for realms` growing to absorb it. If the
wait does grow, realm-server's own boot is the next wall rather than
Synapse's.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Host Test Results

    1 files      1 suites   1h 58m 12s ⏱️
4 368 tests 4 354 ✅ 14 💤 0 ❌
4 387 runs  4 373 ✅ 14 💤 0 ❌

Results for commit 6d7aa07.

Realm Server Test Results

    1 files      1 suites   16m 45s ⏱️
2 206 tests 2 206 ✅ 0 💤 0 ❌
2 289 runs  2 289 ✅ 0 💤 0 ❌

Results for commit 6d7aa07.

@backspace

Copy link
Copy Markdown
Contributor Author

it didn’t help!

@backspace backspace closed this Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant