Skip to content

Fix SanityCheck: adapt to LlmModule.load() void return#236

Open
psiddh wants to merge 1 commit intometa-pytorch:mainfrom
psiddh:fix-sanitycheck-load-api
Open

Fix SanityCheck: adapt to LlmModule.load() void return#236
psiddh wants to merge 1 commit intometa-pytorch:mainfrom
psiddh:fix-sanitycheck-load-api

Conversation

@psiddh
Copy link
Copy Markdown
Contributor

@psiddh psiddh commented Apr 21, 2026

LlmModule.load() now returns void and throws ExecutorchRuntimeException on failure (changed in pytorch/executorch#18669). Remove the return value capture and assertEquals check — a successful load() call without exception is the assertion.

LlmModule.load() now returns void and throws ExecutorchRuntimeException
on failure (changed in pytorch/executorch#18669). Remove the return
value capture and assertEquals check — a successful load() call without
exception is the assertion.

This commit was authored with the help of Claude.
@psiddh psiddh requested review from Copilot and kirklandsign April 21, 2026 16:48
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 21, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Android instrumentation sanity test to align with the upstream API change where LlmModule.load() no longer returns a status code and instead signals failure via exception.

Changes:

  • Removes the captured return value from LlmModule.load() and the associated assertEquals check.
  • Relies on “no exception thrown” as the success condition for model loading.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants