Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing Flutter dependency causes integration tests to fail #33

Closed
craiglabenz opened this issue May 14, 2024 · 0 comments
Closed

Removing Flutter dependency causes integration tests to fail #33

craiglabenz opened this issue May 14, 2024 · 0 comments

Comments

@craiglabenz
Copy link
Collaborator

craiglabenz commented May 14, 2024

#32 attempts to remove a dependency on the Flutter SDK (that never should have been present in the first place) and return these MediaPipe implementations to pure-Dart packages (albeit with native components, of course).

Interestingly, doing so seems to have broken GitHub Actions' ability to resolve native symbols in integration tests. The error that's surfacing is the classic :

Invalid argument(s): Couldn't resolve native function 'language_detector_create' in 'package:mediapipe_text/src/io/third_party/mediapipe/generated/mediapipe_text_bindings.dart' :
No asset with id 'package:mediapipe_text/src/io/third_party/mediapipe/generated/mediapipe_text_bindings.dart' found.
Available native assets: .
Attempted to fallback to process lookup.
dlsym(RTLD_DEFAULT, language_detector_create): symbol not found.

Over several commits, I added logging to the CI scripts to verify that the the unavailable native asset was in fact downloaded to the correct location, and it seems to have been downloaded just fine. (Note that this apparent CI success is misleading, because I turned off early exiting. The tests still failed.)

Eventually I tested reverting the Flutter SDK removal, and then the tests all passed for real.

Note that during this whole process, all tests have passed on my local machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant