Skip to content

fix(shadows): use cloud-computed delta in sync_shadow#130

Merged
KennethKnudsen97 merged 1 commit into
masterfrom
fix/sync-shadow-delta-only
Jun 4, 2026
Merged

fix(shadows): use cloud-computed delta in sync_shadow#130
KennethKnudsen97 merged 1 commit into
masterfrom
fix/sync-shadow-delta-only

Conversation

@KennethKnudsen97

Copy link
Copy Markdown
Contributor

sync_shadow previously re-applied the full desired blob on every boot, firing apply_delta_and_ack (and any caller side-effects gated on a Some delta) even when desired matched reported. Switch to AWS's delta field so callers can rely on None to skip work when nothing actually changed.

The original reason for preferring desired — narrow deltas missing parent variant tags — is now handled by the bare-string variant fallback in #129.

Previously sync_shadow re-applied the full `desired` blob on every boot,
firing `apply_delta_and_ack` (and any side-effects gated on a Some delta)
even when desired matched reported. Use AWS's `delta` field so callers
can rely on `None` to skip work when nothing actually changed.
@MathiasKoch

Copy link
Copy Markdown
Member

@KennethKnudsen97 Is this right? Seems like it is referenced in our firmware, and should have been merged instead?

@KennethKnudsen97

KennethKnudsen97 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

@MathiasKoch I think it autoclosed it. seems like a weird feature.

@KennethKnudsen97 KennethKnudsen97 merged commit 994b586 into master Jun 4, 2026
10 checks passed
@KennethKnudsen97 KennethKnudsen97 deleted the fix/sync-shadow-delta-only branch June 4, 2026 07:26
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