Skip to content

[3/4 messagequeue] Wire MQ_TENANTS through services and tests - #695

Draft
behinddwalls wants to merge 1 commit into
preetam/mq-tenant-platformfrom
preetam/mq-tenant-wiring
Draft

[3/4 messagequeue] Wire MQ_TENANTS through services and tests#695
behinddwalls wants to merge 1 commit into
preetam/mq-tenant-platformfrom
preetam/mq-tenant-wiring

Conversation

@behinddwalls

@behinddwalls behinddwalls commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Why?

The MySQL subscriber only discovers partitions for configured tenants. Service processes and compose stacks must pass the same list they already use as queue names, or Subscribe fails at startup and tests talk to an unsharded process.

What?

  • Parse MQ_TENANTS in gateway, orchestrator, and runway wiring and reject configs whose queue names do not match.
  • Set MQ_TENANTS in service compose files, e2e harnesses, and SubmitQueue integration suites.

Test Plan

go test TestValidateConfiguredQueueTenants, TestValidateProfileQueueTenants, TestValidateMergeQueueTenants, and service/messagequeue

Issues

Stack

  1. [1/4 messagequeue] RFC: per-tenant sharding for the MySQL message queue #693
  2. [2/4 messagequeue] Shard MySQL queues by tenant identity #694
  3. @ [3/4 messagequeue] Wire MQ_TENANTS through services and tests #695
  4. [4/4 messagequeue] Add Vitess vschema and two-shard vtcombo suite #696

## Summary

### Why?

The MySQL subscriber only discovers partitions for configured tenants. Service processes and compose stacks must pass the same list they already use as queue names, or Subscribe fails at startup and tests talk to an unsharded process.

### What?

- Parse MQ_TENANTS in gateway, orchestrator, and runway wiring and reject configs whose queue names do not match.
- Set MQ_TENANTS in service compose files, e2e harnesses, and SubmitQueue integration suites.

## Test Plan

✅ `go test` TestValidateConfiguredQueueTenants, TestValidateProfileQueueTenants, TestValidateMergeQueueTenants, and service/messagequeue

Co-authored-by: Cursor <cursoragent@cursor.com>
@behinddwalls
behinddwalls force-pushed the preetam/mq-tenant-wiring branch from c17c870 to cc23648 Compare September 8, 2026 06:06
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