Repository navigation
[android] Fix TrainingModuleE2ETest missing-file assertions - #23480
ricardoasouz wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/23480
Note: Links to docs will display an error until the docs builds have been completed.
|
|
@pytorchbot label "release notes: none" |
|
@claude review |
|
Claude finished @kirklandsign's task in 58s —— View job This fix is correct and I found no issues. Both expected messages now match what Detailed reviewPR Review: #23480SummaryThe PR updates the expected messages in
Testing
RecommendationApprove. Nothing blocks merging. |
|
@ricardoasouz PR looks good, once the branch is updated up-to-date we can approve & merge. |
2fc4d7d to
ba49d41
Compare
Thanks @nil-is-all! I've rebased the branch onto the latest main. |
TrainingModule checks paths with ExecuTorchRuntime.validateFilePath since pytorch#17648, so the "!!" messages these two tests expect are never produced and both tests fail. Expect the current messages and pass the assertEquals arguments as (expected, actual). Signed-off-by: Ricardo Alves de Souza <ricardoasouz@hotmail.com>
ba49d41 to
0efadb5
Compare
|
Hi @nil-is-all and @kirklandsign, I've rebased this PR onto the latest I also rebuilt the Android x86_64 native library and reran The PR is currently showing 16 workflows awaiting maintainer approval, including the required checks. Could you please approve the pending workflows when convenient? Thanks for your time and review! |
Summary
testMissingPteFileandtestMissingPtdFilefail on main.TrainingModule.loadvalidates paths withExecuTorchRuntime.validateFilePath, which throwsCannot load model path: path does not exist: <path>(and the same for the data path), but the tests still expect the oldCannot load model path!! <path>andCannot load data path!! <path>messages, which #17648 removed.The assertions also passed
exception.messageas the expected value, so the JUnit failure showed the two strings swapped. This updates the expected messages and passes the arguments as (expected, actual).Found while validating #22959.
Test plan
On an x86_64 emulator (API 30), with the native library built from this branch:
All 4 tests pass. Without this change,
testMissingPteFileandtestMissingPtdFilefail with a message mismatch.cc @kirklandsign @cbilgin @nil-is-all