Repository navigation
Conversation
Keep an already-active A2DP sink codec instead of recreating the PipeWire sink during activation. Continue switching from off and headset profiles. Refs librepods-org#680
Resolve the current PipeWire card by Bluetooth MAC before activation and deactivation. Replace stale cached indices, clear the cache when lookup fails, and cover the async lookup paths without retaining media state guards. Refs librepods-org#681
Give profile enumeration a grace probe before restarting WirePlumber, then use bounded post-restart retries with a fresh card lookup by MAC. Add deterministic sequencing tests for grace success, retries, bounded failure, restart failure, and connection changes. Refs librepods-org#682
Track listener generations and abort handles by normalized AirPods MAC so reconnecting replaces only the prior same-device task. Fence takeover work around activation and packet sends, with deterministic lifecycle coverage. Refs librepods-org#683
Bind receiver dispatch and every resulting state/event mutation to the active connection generation. Reject unknown ear status bytes and validate the variable-length information envelope before parsing fields.
Read-modify-write information and proximity-key updates against the latest device registry, preserve LE keys, and move registry I/O to Tokio blocking workers. Serialize durable updates with connection generation transitions so replacement state cannot be overwritten.
Fsync parent directories after atomic settings/device replacement and after removing migrated legacy settings. Cover rename and deletion ordering through the real filesystem seam.
Represent each UI settings action as a one-key patch so stale in-memory values cannot overwrite concurrently persisted theme, tray, or stem-control changes.
Pause local playback and tear down A2DP before polling the ownership acknowledgement. Carry the inbound connection generation into a one-second bounded send so queue stalls and replacements cancel the stale acknowledgement.
Track takeover completion separately from observed playback so failed, skipped, or connection-aborted attempts retry while media remains active. Commit outcome state only while the listener generation is still current.
Install rustfmt and Clippy in the remote Rust job, fail on formatting or lint warnings before tests, and clean up formatting/boolean assertions plus an avoidable address-string comparison.
Route an initial missing PipeWire card through the bounded A2DP recovery path, refresh the card index before switching, and preserve active A2DP profiles. Own the one-time setup activation with the playback listener generation so replacement cancels stale setup work.\n\nRefs librepods-org#795
Test-only RED for librepods-org#799. The injected request operation is intentionally a no-op; BlueZ ConnectProfile remains unimplemented.
Resolve the BlueZ Device1 by normalized Address, request the A2DP sink profile once per MediaController connection, and continue bounded recovery on request errors.
Cover recreated-card profile selection and recovery, activation serialization, listener-generation fencing, and Pulse callback failures. Add behavior-neutral seams so each regression reaches the affected decision boundary.
Author
|
@kavishdevar This is ready for review. The exact-head CI on the fork is green; GitHub currently marks the upstream PR workflows as |
Adapt the approved native SDK fixture to the integration property-offset loader without importing the other Android base. Existing one-call, disabled policy and forwarding cases characterize current behavior. The new null-record regression is expected to fail before a production guard fix.
The native public-boundary regression failed at an unconditional null record log argument in run 41844216908. Move only that field log inside its existing non-null guard; preserve original SDK forwarding, status and handle behavior.
Exercise the actual derivation source and require a full Nix package build. The existing fileset excludes the newly embedded icon; publish this diagnostic before changing production packaging.
The actual evaluated package source failed its icon asset gate in run 41959518431. Include only the required icon in the fileset; preserve the byte-comparison assertion and full Nix build gate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR consolidates the verified
fix-linux-bugswork onto the upstreamlinux/rustbranch. It combines lifecycle, protocol, battery, tray, persistence, packaging, and CI fixes that interact across the Linux and Android implementations.Linux / AACP
Legacy Qt / system D-Bus
Android
Protocol, Nix, and CI
nixpkgs, and refreshflake.lockLinked issues
Closes #421
Closes #422
Closes #446
Closes #548
Closes #549
Closes #550
Closes #635
Closes #636
Closes #680
Closes #681
Closes #682
Closes #683
Closes #737
Closes #738
Closes #770
Closes #771
Closes #795
Closes #798
Closes #799
Closes #842
Closes #889
Related to #817: this verifies the admission/backpressure path; the original rare three-day incident is not uniquely diagnosed without its binary and pre-recovery thread backtraces.
Validation
7980d892e2394077fad6e618105a35368939bcae(the later changes are Android/legacy-Qt only): https://github.com/91sexboy/librepods/actions/runs/41467613795cargo test --all-targets --locked4bca5d2408c2a9137456939d7f7bf3b67f2e5bae: https://github.com/91sexboy/librepods/actions/runs/4159570933341175ad16f21e7d450668f8f022f779de6944e4d: https://github.com/91sexboy/librepods/actions/runs/41597566883f4970c85166728c91b0b1bb2425082c35f599606: https://github.com/91sexboy/librepods/actions/runs/41599759697757ef6072e56a03bbccc668cf93811b1e91a741b: https://github.com/91sexboy/librepods/actions/runs/416019817269a4d56ae8e1ca3a9394191863a383a868b1ff0e8(the subsequent changes are legacy-Qt only): https://github.com/91sexboy/librepods/actions/runs/41602579671Debug APKartifact uploaded1844cb522eb1551eaf5d4947fbce3a09a4ee66fb: https://github.com/91sexboy/librepods/actions/runs/416074965217b9e3fe205ba5a1b8a84ac77ba0e084889b3b145: https://github.com/91sexboy/librepods/actions/runs/41608885933a03465fa565972085ab66e2367144fd77cb57732: https://github.com/91sexboy/librepods/actions/runs/4162020040425053e1eda1ed4a9d28925c1f1d57ad92bd44dfc: https://github.com/91sexboy/librepods/actions/runs/4162125506325053e1eda1ed4a9d28925c1f1d57ad92bd44dfcreported no actionable findingsReview note
This is intentionally a consolidation PR because several fixes share lifecycle and state-machine invariants. The branch is a direct descendant of upstream
linux/rust; no unrelated-history fallback or force-push is involved. The commits retain focused RED/GREEN regression slices where applicable so reviewers can inspect each behavior independently.Upstream pull-request workflows for the current head are
action_requiredand await maintainer approval. The fork CI cited above is complete; this pending upstream authorization is not a test failure.