Commit adbb3b8
authored
feat: add orchestrator pipeline, TopicRegistry, and CI improvements (#59)
## Summary
- **TopicRegistry**: Centralizes queue topic configuration, decoupling
controllers from subscription details. Controllers declare their topic
and consumer group; the registry provides the queue and subscription
config.
- **Orchestrator pipeline**: Adds request controller with publisher for
forwarding messages to the next pipeline stage (request → batch →
speculation → build → merge).
- **Consumer refactor**: Accepts `TopicRegistry` instead of raw
`queue.Queue` + subscriber name. Removes `SubscriptionConfig()` from the
`Controller` interface.
- **Server startup simplification**: Removes retry loops from gateway
and orchestrator servers — relies on Docker Compose healthchecks
(`--wait`) to ensure dependencies are ready before services start.
- **CI caching fix**: Caches `bazel-disk-cache` and `bazel-repo-cache`
(matching `.bazelrc` paths) with per-job keys to avoid concurrent save
races. Previous setup cached the wrong directory and all jobs raced on a
single key.
- **Auto-tail container logs**: Streams Docker container logs to stderr
in real-time during integration/e2e tests via `ComposeStack.tailLogs()`.
Removes the now-redundant `.github/actions/logs` action.
- **Test output streaming**: All test targets use
`--test_output=streamed` for real-time output in both local and CI runs.
- **Documentation consolidation**: Merges `PROJECT_STRUCTURE.md` into
`CLAUDE.md`, updates `TESTING.md` for new ComposeStack behavior.
## Test plan
- [x] `make build` passes
- [x] `make test` passes
- [x] `make gazelle` produces no changes
- [x] CI integration and e2e tests pass
- [x] Verify container logs stream to stderr during test runs
- [x] Verify CI Bazel cache saves per-job and restores on subsequent
runs
- First Run:
https://github.com/uber/submitqueue/actions/runs/22336834292/job/64632139444?pr=59
(~10m)
- Second Run:
https://github.com/uber/submitqueue/actions/runs/22337340518/job/64633633575?pr=59
(1m24s)1 parent 8ec2c45 commit adbb3b8
39 files changed
Lines changed: 1498 additions & 1224 deletions
File tree
- .github
- actions
- logs
- run-bazel-test
- setup
- workflows
- core/consumer
- mock
- doc
- howto
- example/server
- gateway
- orchestrator
- extension
- queue
- mock
- sql
- storage/mysql
- gateway/controller
- orchestrator/controller/request
- test
- integration/extension
- queue/sql
- storage/mysql
- testutil
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
3 | 15 | | |
4 | 16 | | |
5 | 17 | | |
| |||
8 | 20 | | |
9 | 21 | | |
10 | 22 | | |
11 | | - | |
| 23 | + | |
| 24 | + | |
12 | 25 | | |
13 | | - | |
| 26 | + | |
14 | 27 | | |
| 28 | + | |
| 29 | + | |
15 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
| |||
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
74 | | - | |
75 | | - | |
76 | 72 | | |
77 | 73 | | |
78 | 74 | | |
| |||
83 | 79 | | |
84 | 80 | | |
85 | 81 | | |
86 | | - | |
87 | | - | |
88 | 82 | | |
89 | 83 | | |
90 | 84 | | |
| |||
0 commit comments