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

Unit tests stuck #99

Open
raphaelguye opened this issue Sep 5, 2023 · 4 comments
Open

Unit tests stuck #99

raphaelguye opened this issue Sep 5, 2023 · 4 comments

Comments

@raphaelguye
Copy link

We have some issues with the run of our unit tests when trying to upgrade from v22.5.0 to v22.8.0 or above.

When we integrate v22.5.0 to our project, everything is fine and all of our unit tests are executed with success.
When we integrate v22.8.0 (or above), some tests are just stuck and the process never ends.

Can you tell us a bit more about the changelog between 22.5.0 and 22.8.0?
It said "iOS 16 compatibility", but is there any breaking changes? Our app is targeting iOS 13.

@timliu55
Copy link
Collaborator

timliu55 commented Sep 6, 2023

@raphaelguye - it includes too many code changes in new releases, it might not be a good idea to dig into the changelog.
My suggestion is,

  1. Try to use the latest v23.8.0, it is more reliable and it supports iOS 12+
  2. Try to collect the stuck logs with the "Console App" on macOS, analyze it or send it to us
  3. Try to debug it, pause the debug session and check the call stack, analyze it or send it to us
  4. Create a small test project which can reproduce the stuck issue, and send it to us

@raphaelguye
Copy link
Author

Thank you for your answer.
Indeed, we first tried with v23.8.0. And because it didn't worked, we started to search from which release it doesn't work anymore for us.
And the result is that it's working with v22.5.0, but not with v22.8.0.

That's why I'm asking if there is something special in your changelog between these two releases?

@dzwick-bit
Copy link

Hey @timliu55, i'm taking over this issue from raphael since hes away. Like he said we are whitnessing a problem while running the unit tets with our MAM application. Raphael has tried releases from 23.8.0 back to 22.5.0. The break happenes between versions 22.5. and 22.8.
If you could provide us with a bit more information what was changed in this update we could start pipointing the problem.

Regarding your other suggestions, debugging is not really effective since the application starts as expected but the testrunner never executes.

@timliu55
Copy link
Collaborator

@dzwick-bit , I just compared our code changes from 22.5 to 22.8, there are too many changes, but most of them are bug fixings, "iOS 16 compatibility" means some bugs appear on ios16 only
And also there is a big feature, but it is behind a feature flag - "Allow MAM SDK to use policies from Secure Hub", we only turn it on for several customers (not sure if your org are on the list)

We need to find what happened in your side, at least we need to find some error message, could you please try below:

  1. Run UT from Xcode, and collect log from the Xcode output window
  2. Open Console.app on Mac, choose your device -> start streaming, and then repro your issue. Check the log to see what error happened
  3. Find similar questions on google, like this https://developer.apple.com/forums/thread/691809

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

3 participants