Skip to content

feat(backends): preserve saved baseline ownership - #1500

Closed
hannojg wants to merge 1 commit into
hannojg/backend-device-ownershipfrom
hannojg/backend-baseline-ownership
Closed

hannojg wants to merge 1 commit into
hannojg/backend-device-ownershipfrom
hannojg/backend-baseline-ownership

Conversation

@hannojg

@hannojg hannojg commented Nov 10, 2026

Copy link
Copy Markdown

This follows the device ownership work in #1499.

A saved baseline outlives the device that created it. Recording only its platform allows another backend to interpret the same source ID or remove its saved data after a configuration change.

This stores the baseline's backend and migrates existing rows to local. Listing, provisioning, replacement and deletion use that owner; an unavailable owner keeps its rows and sources. Requests for unsupported baselines, physical devices or except are refused before provisioning or ending an existing lease.

The tests migrate a real version 1 baseline database while retaining its source and metadata, distinguish identical source IDs from different backends, and preserve unavailable owners during replacement and nuke. They also verify unsupported requests fail before device work or lease release. All 237 targeted baseline, admission and device tests pass.

ADC uses this completed ownership and capability model:

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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

@V3RON

V3RON commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded by #2041. That feature reuses this stack's design: a light backend definition in the driver registry, a heavy backend module in the daemon, and a backend on device and baseline records. It changes one thing: a worker may run several backends per platform (emulator, redroid and phones together), so a backend is chosen per lease rather than per worker. The ADC backend can come back later as another backend on that abstraction. Thank you for the groundwork, @hannojg.

Written by an agent.

@V3RON V3RON closed this Dec 2, 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.

2 participants