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

Dogfood recent changes #1136

Merged
merged 166 commits into from
Jan 20, 2023
Merged

Conversation

ncreated
Copy link
Member

@ncreated ncreated commented Jan 18, 2023

What and why?

🐶 Merging develop into dogfooding, so the SDK version will be upgraded in mobile app and Shopist.

How?

Following recent change on develop, I updated the location of SR module in dogfooded Package.swift.

Because we're in the middle of V2 migration and DatadogInternal module is not yet available as stand-alone package that SR could depend on, that change ☝️ broke our SR unit tests setup. Xcode was confused with resolving following:

  • DatadogSessionReplay/Package.swift defining its own DatadogSessionReplay module
  • DatadogSessionReplay/Package.swift linking to ../Package.swift which also defines DatadogSessionReplay
  • DatadogSessionReplay/Package.swift linking to ../TestUtilities/Package.swift which links ../Package.swift that defines DatadogSessionReplay

To avoid this confusion, this PR adds DDPatchForSR/Package.swift which is basically a copy of the main Package.swift available on develop. Unlike the main Package.swift on dogfooding branch, it makes no mention of DatadogSessionReplay module.

That approach seeks at introducing minimal change (it will be erased once we reach V2):

  • no changes to bitrise.yml made
  • minimal updates in DatadogSessionReplay/Package.swift and /TestUtilities/Package.swift that should not conflict with develop changes any time soon

To make DDPatchForSR/Package.swift work without introducing any changes in repository layout, two symbolic links were created:

  • DDPatchForSR/Sources/Sources
  • DDPatchForSR/Tests/Tests

Entire patch is done in this commit: c374b78

Other than this, just developdogfooding merge.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests
  • Run integration tests
  • Run smoke tests

maxep and others added 30 commits October 18, 2022 14:27
Downgrade to version 2.1.3 of testing framework
Co-Authored-By: Maciek Grzybowski <maciek.grzybowski@datadoghq.com>
…h-data-to-pointer-interaction-model

RUMM-2784 [SR] Migrate to `PointerInteractionData` for sending touch information
…sure

Replace `CodableValue` with `AnyCodable`
@ncreated ncreated self-assigned this Jan 18, 2023
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Jan 18, 2023

Datadog Report

Branch report: ncreated/merge-develop-into-dogfooding
Commit report: c374b78

dd-sdk-ios: 0 Failed, 0 New Flaky, 116 Passed, 0 Skipped, 4m 51.55s Wall Time

@ncreated ncreated force-pushed the ncreated/merge-develop-into-dogfooding branch from 3d2c360 to 6abed76 Compare January 19, 2023 11:21
- SR cannot use main `Package.swift` because it includes another definition of `DatadogSessionReplay`.
swiftSettings: [
.define("SPM_BUILD"),
.define("DD_SDK_ENABLE_EXPERIMENTAL_APIS"),
]
Copy link
Member Author

Choose a reason for hiding this comment

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

It is not possible to add path: .. as SPM will complain that sources cannot be located in outside of package directory. Symbolic links to Sources and Tests workaround this limit.

@ncreated ncreated marked this pull request as ready for review January 19, 2023 13:11
@ncreated ncreated requested review from a team as code owners January 19, 2023 13:11
Copy link
Contributor

@maycmlee maycmlee left a comment

Choose a reason for hiding this comment

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

I don't believe any of this affects the public docs, so there's nothing for docs to review.

Copy link
Member

@maxep maxep left a comment

Choose a reason for hiding this comment

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

🚀 🐶

@ncreated ncreated merged commit 5bf7d3c into dogfooding Jan 20, 2023
@ncreated ncreated deleted the ncreated/merge-develop-into-dogfooding branch January 20, 2023 10:24
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

Successfully merging this pull request may close these issues.

8 participants