Skip to content

fix(fleet-queue): /list exact-task readback — dedupe_key filter + conditional queue predicate (#9420) - #9422

Merged
dezren39 merged 1 commit into
mainfrom
queue/15889-9420-list-filters
Nov 13, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/15889-9420-list-filters

Conversation

@dezren39

@dezren39 dezren39 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #9420 (triage: task 15888; this fix: task 15889). Exact-task readback through the queue broker's /list was broken three ways:

  1. Deployed broker ignores task — the running queue-broker.service process predates PR fix(fleet-queue): list fetches in pages, --task verifies one task (#7871) #8476 (fleet queue list: large --limit silently returns zero rows; no way to verify a recent completion #7871 filter) and was never restarted after the binary on disk was replaced. Redeploy (rebuild + restart) is the operational half of this fix and is executed with this change.
  2. No dedupe_key filter in either list implementation — added to the Turso verb_list (AND dedupe_key = ?) and the PostgREST /list handler (dedupe_key=eq.) for parity.
  3. Queue-less exact queries returned zero rows by construction — both implementations interpolated an unconditional queue predicate with an empty-string default (queue = '' / queue=eq.). The predicate now applies only when a queue is named.

Tests

  • New source-oracle test list_exact_readback_filters_9420 pins the contract in both implementations.
  • cargo test -p fleet-queue --features queue-broker: 299 passed, 0 failed.

Deploy / verification

After this lands (branch-tip build, per the queue-broker drop-in's established pattern): replace ~/.local/bin/fleet, restart queue-broker.service, then the issue's three acceptance queries must return exactly task 15882's row / the dedupe-matching row. Rollback: restore the backed-up binary and restart the unit.

Unblocks task 15354 (#9106 delivery publisher readback).

🤖 Queue worker lane any-c, task 15889.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 13, 2026 10:50
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T10:50:45.565286Z
We couldn’t complete this review. Comment @codex review to try again.
9147e79 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.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 353b8b79-b0d0-48fb-8fe4-fafac6c88449
Commits

Reviewing files that changed from the base of the PR and between 1ed1fc0 and 9147e79.

Files selected for processing: 2

  • pkgs/fleet/crates/fleet-queue/src/queue_broker.rs
  • pkgs/fleet/crates/fleet-queue/src/turso_queue.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Agent note · picked up — Agent: queue worker (repo-worker-code), lane code-a — task 16132 (pr_shepherd) for PR #9422, linked issue #9420.

Fresh revalidation (2026-11-13T16:22Z): PR #9422 OPEN, not draft, MERGEABLE, mergeStateStatus CLEAN, reviewDecision empty, no held / user/owned / do-not-merge / do-not-auto-edit labels on the PR or on issue #9420. Only check: CodeRabbit NEUTRAL (completed). Codex review: failed to run — Codex usage limits reached fleet-wide; no findings were produced, so there are no Codex findings to disposition (same state recorded by lane code-a on PR #9582 earlier today).

Diff reviewed: queue_broker.rs + turso_queue.rs only — conditional queue predicate and dedupe_key filter on /list in both the PostgREST and Turso paths, plus the list_exact_readback_filters_9420 source-oracle test. Matches the stated intent of issue #9420.

Next: merge PR #9422, then complete task 16132.

@dezren39 dezren39 added queue/claimed Queue worker lifecycle state work/assigned Queue worker lifecycle state status/in-progress Queue worker lifecycle state labels Nov 13, 2026
@dezren39
dezren39 merged commit 80bdf7f into main Nov 13, 2026
1 check passed
@dezren39
dezren39 deleted the queue/15889-9420-list-filters branch November 13, 2026 16:24
@dezren39

Copy link
Copy Markdown
Member Author

🤖 Agent note · done — Agent: queue worker (repo-worker-code), lane code-a — task 16132 (pr_shepherd) for PR #9422, linked issue #9420.

PR #9422 MERGED at 2026-11-13T16:24:43Z, merge commit 80bdf7f. Issue #9420 CLOSED by the merge.

Immediately before merging, the PR was rechecked fresh twice: OPEN, not draft, MERGEABLE, mergeStateStatus CLEAN, reviewDecision empty, no held / user/owned / do-not-merge / do-not-auto-edit labels; only check CodeRabbit NEUTRAL (completed), none failing or pending. Codex review failed to run (Codex usage limits, fleet-wide) and produced no findings, so no Codex findings were outstanding to disposition.

Remaining step named for the record: the broker redeploy + acceptance-query verification described in this PR's Deploy section belongs to task 15889 (the #9420 fix task, currently blocked in the queue) — live check this shift confirms the deployed broker still returns no rows for a queue-less exact-task list read, so that deploy/verification is still owed by task 15889's lifecycle and is not part of this shepherd task's scope.

@dezren39 dezren39 removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state work/assigned Queue worker lifecycle state labels Nov 13, 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.

Queue broker POST /list ignores task/dedupe filters — exact-task readback broken

1 participant