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

fix: tests on iOS 17 #136

Merged
merged 1 commit into from
Mar 15, 2024
Merged

fix: tests on iOS 17 #136

merged 1 commit into from
Mar 15, 2024

Conversation

crleona
Copy link
Collaborator

@crleona crleona commented Mar 14, 2024

Summary

This updated CI to run on the latest versions of MacOS/Xcode.

Running the tests locally with the latest Xcode results in a few failures, so I've fixed the following:

  • Use sorted key output for JSON, as iOS 17+ uses a more secure dictionary type that randomizes key order
  • Use strict URL parsing as the URL(string:) default behavior has changed in iOS 17
  • Clean up testFilterAndEnrichmentPlugin results so that events aren't duplicated between runs (this does not appear to be an issue on CI, only while running locally). (@yuhao900914, can this test just use an in-memory store instead?)

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

@yuhao900914
Copy link
Contributor

Can this test just use an in-memory store instead?
Yes, which memory it's using doesn't matter.

@crleona crleona force-pushed the ios-17-test-fixes branch 2 times, most recently from 94fec61 to 7f22dd6 Compare March 15, 2024 00:30
Copy link
Contributor

@justin-fiedler justin-fiedler left a comment

Choose a reason for hiding this comment

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

Thanks for updating this!

@crleona crleona merged commit 04e5d03 into main Mar 15, 2024
3 checks passed
@crleona crleona deleted the ios-17-test-fixes branch March 15, 2024 16:59
github-actions bot pushed a commit that referenced this pull request Mar 15, 2024
# [1.4.0](v1.3.6...v1.4.0) (2024-03-15)

### Bug Fixes

* Don't use idfv as deviceID if disabled. ([#133](#133)) ([76ef012](76ef012))
* Fixes for automatic screen tracking ([#137](#137)) ([55b2ca9](55b2ca9))
* tests on iOS 17 ([#136](#136)) ([04e5d03](04e5d03))

### Features

* migrate storage to for better thread safety ([#129](#129)) ([2bbe919](2bbe919))
Copy link

🎉 This PR is included in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants