Skip to content

test(db): pass a sender to update_channel in the channel tenant-guard test - #9619

Closed
brow wants to merge 1 commit into
mainfrom
fix-deletion-update-channel-sender
Closed

brow wants to merge 1 commit into
mainfrom
fix-deletion-update-channel-sender

Conversation

@brow

@brow brow commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

#9581 added a sender parameter to Db::update_channel, but single_table_guard_channels_remain_tenant_bound_without_trigger in crates/buzz-db/src/store/deletion.rs still called it with three arguments. buzz-db tests no longer compile on main (error[E0061]), so clippy and the unit, Windows and PostgreSQL lanes fail on every PR rebased onto it.

This passes the channel's creator as the sender in both calls. Both calls only rename the channel, so the private-to-open rule doesn't come into play and the test still checks what it did before: a cross-community update is rejected and a same-community update succeeds.

The commit hook's secrets scanner also flagged the file's existing local dev database URL (buzz:buzz_dev@localhost), so that line gets the same sadscan:disable comment test_support.rs already uses.

Validation

  • cargo test -p buzz-db compiles and passes locally (Postgres-only tests ignored there; CI's PostgreSQL lane runs this one).

Regressions

None: test-only change.

… test

#9581 added a sender parameter to Db::update_channel, but
single_table_guard_channels_remain_tenant_bound_without_trigger still
called it with three arguments, so buzz-db tests no longer compiled on
main. Pass the channel's creator; both calls only rename the channel.

Also mark the file's existing local dev database URL as test-only for
the secrets scanner, as test_support.rs already does.

Signed-off-by: Tom Brow <tomb@squareup.com>
Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@buzz.block.builderlab.xyz>
@brow
brow requested a review from a team as a code owner November 17, 2026 19:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T19:05:44.382685Z cee155b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@brow
brow force-pushed the fix-deletion-update-channel-sender branch from cee155b to 4bd9709 Compare November 17, 2026 19:04
@brow brow closed this Nov 17, 2026
@brow
brow deleted the fix-deletion-update-channel-sender branch November 17, 2026 19:04
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