Skip to content

Add fault-injection tests for flashing failures #19

Description

@ashishsinghbora

Problem Statement

FlashCore needs predictable behavior when storage operations fail during a real flash.

Proposed Solution / Enhancement

Use the fault-injecting BlockDevice to simulate:

  • USB disconnect
  • Timeout
  • Short read
  • Short write
  • Read failure
  • Write failure
  • Flush failure
  • GPT failure
  • FAT failure
  • Verification mismatch

For every failure, verify that FlashCore:

  • Stops safely
  • Reports the correct error
  • Does not report success
  • Releases resources correctly

Architectural Layer Impacted

Flash Engine / Block Device / Error Handling / Verification

Alternatives Considered

Testing only successful flashes does not prove that the application is safe during failure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase:verificationPhase: Flashing verificationtestingTesting and test infrastructure

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions