Skip to content

fix(atlas-core): read label COUNT(*) as i64 in scan_labels (#16845) - #16848

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
archer/16845-label-migration-u64
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
archer/16845-label-migration-u64

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Closes #16845.

scan_labels read COUNT(*) via row.get::<_, u64>(1), but rusqlite 0.43 implements FromSql for i64 and the smaller ints, not u64 — atlas-core fails to compile (E0277) in the fleet-static build at main 5cf40a1, which blocks the fleet binary refresh (#16577 remainder).

COUNT(*) is a non-negative SQLite integer, so reading it as i64 and casting to u64 is exact. One line.

Found and fixed by lane 0922-F (delta PRESS work loop); verification = the fleet-static nix build proceeding past atlas-core, run by the same lane.

{
  "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-29T15:56:47Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/wt-16845-0922F",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/wt-16845-0922F",
      "repo": "developing-today/code",
      "branch": "archer/16845-label-migration-u64",
      "sha": "9c0016ab3e0951d034fc59e01808840e67d15746"
    },
    "auth_subject": "oc-code-06",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

rusqlite 0.43 has no FromSql impl for u64; COUNT(*) is a
non-negative SQLite integer, so reading i64 and casting to u64
is exact. Unblocks the fleet-static build, which compiles
atlas-core against rusqlite 0.43.
@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: 49259db7-3cf6-46b6-970a-f5b2e65e92a2

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

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.

main-broken: atlas-core label_migration.rs reads COUNT(*) as u64 — rusqlite 0.43 has no FromSql for u64 (blocks fleet-static build)

0 participants