[Vela OTA] Sub-Issue 11: Delta update engine — binary diff/patch#207
Merged
Conversation
added 3 commits
May 19, 2026 18:09
…ation (#199) - Add vela-e2e integration test crate with 6 test suites (55 tests) - Suite 1: Watchdog + EventBus — event emission, subscribers, history - Suite 2: Slot Manager + Lifecycle — transitions, metrics, terminal states - Suite 3: Hub Client + Retry + Download — retry exhaustion, checksum, auth - Suite 4: Full Pipeline — phase order, terminal states, config - Suite 5: Error Recovery — space errors, retry behavior, fallback path - Suite 6: Configuration — defaults, custom configs, error conversions - Add SlotManager + SlotLabel types to vela-slotmgr - Fix 40+ pre-existing compilation errors across workspace crates - Fix dependency versions (x509-cert, csbindgen, hmac, ring compat) - Fix platform compatibility (watchdog on Windows via cfg guards) - Fix API mismatches in orchestrator, hub client, download, flashpack
…202) - Add vela-delta crate with sliding-window block-matching algorithm - Binary diff generator: generate_delta(old, new) -> DeltaResult<Vec<u8>> - Patch applier: apply_patch(base, delta) -> DeltaResult<Vec<u8>> - DeltaManifest format for .fpk delta.manifest metadata - VDLT magic header with SHA-256 integrity verification - 19 unit tests including roundtrip, hash verification, edge cases - Integrates with FlashPack PayloadType::Delta
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.
Sub-Issue 11: Delta Update Engine
Implement a binary delta engine that enables efficient incremental updates
by transmitting only the changed bytes between versions.
Design
Vela Delta is a standalone crate (
vela-delta) in the vela-core workspace:API
generate_delta(old: &[u8], new: &[u8]) -> DeltaResult<Vec<u8>>apply_patch(base: &[u8], patch: &[u8]) -> DeltaResult<Vec<u8>>DeltaManifest— metadata for delta bundlesIntegration with FlashPack
PayloadType::Deltawhen building delta FlashPacksdelta.manifestin the .fpk tar archiverequires_versionin FpkHeader