Skip to content

test(native): unify model URLs on v0.9.0 + fix ssdlite shape assertion#1185

Merged
msluszniak merged 2 commits into
mainfrom
@ms/native-tests-unify-v0.9.0-urls
May 25, 2026
Merged

test(native): unify model URLs on v0.9.0 + fix ssdlite shape assertion#1185
msluszniak merged 2 commits into
mainfrom
@ms/native-tests-unify-v0.9.0-urls

Conversation

@msluszniak
Copy link
Copy Markdown
Member

Description

The native test runner downloaded model artifacts from a mix of main, v0.6.0, v0.7.0, v0.8.0, and v0.9.0 HuggingFace paths, none of which lined up with what src/constants/modelUrls.ts actually ships on v0.9.0. This PR points every MODELS entry in run_tests.sh at its canonical v0.9.0 path (verified with HEAD checks), keeping the destination filenames identical so the integration .cpp constants don't need to move.

The v0.9.0 SSDLite is exported without a leading batch dim, so ObjectDetectionInheritedTests.GetInputShapeWorks now asserts rank-3 (C, H, W) instead of rank-4 (1, C, H, W).

Introduces a breaking change?

  • Yes
  • No

Type of change

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Documentation update (improves or adds clarity to existing documentation)
  • Other (chores, tests, code style improvements etc.)

Tested on

  • iOS
  • Android

Testing instructions

cd packages/react-native-executorch/common/rnexecutorch/tests
bash ./run_tests.sh --refresh-models

--refresh-models is required on first run since every URL changed; cached files from older versions are stale. All 23 test suites pass on a physical Android device.

Screenshots

Related issues

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Additional notes

run_tests.sh: bumped every MODELS entry to its canonical v0.9.0 path from
src/constants/modelUrls.ts; mixed v0.6/0.7/0.8/main URLs caused the runner
to pull artifacts that no longer matched what the JS API ships.

ObjectDetectionTest.cpp: the v0.9.0 ssdlite is exported without a leading
batch dim, so GetInputShapeWorks now asserts (C, H, W) instead of
(1, C, H, W).
@msluszniak msluszniak self-assigned this May 25, 2026
@msluszniak msluszniak added the test Issue and PR related to tests or testing infrastructure label May 25, 2026
Comment thread packages/react-native-executorch/common/rnexecutorch/tests/run_tests.sh Outdated
Hoists the v0.9.0 version tag into a single LIB_VERSION variable +
HF_VERSION_TAG derived constant, so future bumps are one-line changes.
@msluszniak msluszniak requested a review from chmjkb May 25, 2026 13:40
@msluszniak msluszniak merged commit 578f983 into main May 25, 2026
4 checks passed
@msluszniak msluszniak deleted the @ms/native-tests-unify-v0.9.0-urls branch May 25, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Issue and PR related to tests or testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants