Open jamescrosswell opened 1 year ago
The cocoa version bump itself is triggered here: https://github.com/getsentry/sentry-dotnet/blob/d32f05ba46ca3a022224dae039b27f13691ac06c/.github/workflows/update-deps.yml#L16-L18
Which runs this custom workflow: https://github.com/getsentry/sentry-dotnet/blob/d32f05ba46ca3a022224dae039b27f13691ac06c/.github/workflows/update-deps.yml#L25-L28
Currently that workflow runs update-dependency.ps1, which essentially just updates the submodule, creates a commit and then creates a PR for this commit.
In the case of the Cocoa SDK, where submodule changes might result in changes to src/Sentry.Bindings.Cocoa/ApiDefinitions.cs
, we need to rebuild the submodule as part of preparing the PR.
update-dependency.ps1
script would run (if provided)We're going to have to figure out how to deal with the swift headers before tackling this. Right now, I've got to:
scripts/generate-cocoa-bindings.ps1
scripts/generate-cocoa-bindings.ps1
againAs context: We "have" to do this because SentryId
got moved into the swift headers and now we "have" to import that header too when generating the binding.
We could "mock" that one type tho.
We have a chore(deps) PR that bumps the CocoaSDK from v8.10.0 to v8.11.0.
It looks like although this bumps the CocoaSDK, it hasn't recompiled our bindings and committed the updated version of these to source (which is why the dirty check is failing when CI runs the build on this PR).
I'm not sure how the chore(deps) PRs get created (presumably by some kind of bot) but however it happens, we need to tweak the process so that it not only bumps the version of the Sentry Cocoa module we depend on but also rebuilds our bindings and commits any changes to thes as part of the same PR, each time we upgrade this module.