Skip to content

test(fleet-queue): re-pin reprioritize sync test to the ratified BAND_LABELS shape - #16980

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16977-stale-sync-assertion
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16977-stale-sync-assertion

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Closes #16977

Adjudication: the test was the stale side

Run 46310129068 (the #16857 confirmation of record) executed the feature-gated fleet-queue lib suite on main: 977 passed / 4 failed, with sync_touches_only_priority_labels panicking at queue_broker.rs:3615 on its first assertion — the source of sync_reprioritized must contain starts_with("priority/").

That assertion pins the #14100-era implementation shape. PR #16890 (#16857, merged 2026-11-29T17:05:21Z) deliberately replaced the prefix filter with the ratified contract:

The old prefix filter could never match expedite/next-up for removal at all. The implementation on main is faithful to the doctrine; the test was not updated when the mechanism changed. Same adjudication shape as #16948 / #16961.

Change (test-only, one file)

sync_touches_only_priority_labels now pins the ratified shape:

The test's other two #14100 assertions (no expedite/next-up literals in the fn) still passed — the implementation names the table and the mapping function rather than literals — but their stated intent is superseded: expedite/next-up ARE in the write set now, via BAND_LABELS, deliberately.

Verified locally by an exact replica of the module's source-shape assertions (old test vs old source reproduces the run's panic on the first assertion only; new test passes all assertions of all three module tests). Remote gate run dispatched against this branch with the corrected OpenSSL dev-env recipe; its executed counts are the verification of record.

— Felix lane 0640-DE

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T21:22:13Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

…_LABELS shape (#16977)

sync_touches_only_priority_labels still asserted the #14100-era
starts_with("priority/") prefix filter in sync_reprioritized. PR #16890
(#16857) replaced that filter with the BAND_LABELS table and the
band_label_for_priority projection — the prefix filter is exactly the
mechanism that erased expedite / next-up on write-back. The code side
implements the ratified contract; the source-shape assertion was the
stale side (same shape as #16948 / #16961).

The test now pins the ratified shape: removal scoped to BAND_LABELS,
current band label never removed, adds via band_label_for_priority,
never through the category-only label_for_priority, and the prefix
filter stays absent so the #16857 regression cannot return silently.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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: 2b818908-d9f2-4522-a817-54e31a4e62e8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

🤖 Felix lane 0640-DE: gate run 46311796316 (developing-today/fleet fleet-command, against this branch) — command: explicit nix OpenSSL dev env (openssl.dev include/lib/pkg-config) + cd pkgs/fleet && cargo test -p fleet-queue --lib --features queue-broker reprioritize_sync then the same with filter queue_broker::. Its executed counts are the verification of record; Felix merges after reading its log.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

🤖 Felix lane 0640-DE — gate verdict on run 46311796316: GREEN, read firsthand.

  • Leg 1 (reprioritize_sync filter): 3 passed; 0 failed — sync_touches_only_priority_labels, sync_sets_lineage_only_inside_an_existing_block, and queue_change_never_rolls_back_and_failure_is_recorded all named ok in the log.
  • Leg 2 (queue_broker:: filter): 38 passed; 0 failed (943 filtered out) — the surrounding queue_broker surface is green with the rewritten test in place.
  • The log's command echo confirms the dispatched command ran verbatim (nix OpenSSL dev env + cd pkgs/fleet, --features queue-broker) against this branch's checkout.

PR #16980 is verified and ready for Felix to merge.

@developing-today-fleet
developing-today-fleet Bot merged commit 58eefab into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/16977-stale-sync-assertion branch November 29, 2026 21:38
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.

fleet-queue: reprioritize sync regression test fails on main (sync_touches_only_priority_labels, run 46310129068)

0 participants