-
-
Notifications
You must be signed in to change notification settings - Fork 55
Integration-test building without sentry SDK only on main
branch
#785
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
Conversation
596f80b
to
b039a35
Compare
1dbf020
to
b4b64f1
Compare
it wasn't set during scripted builds...
b4b64f1
to
1008fef
Compare
@@ -229,6 +229,8 @@ jobs: | |||
run: sudo pwsh ./test/Scripts.Integration.Test/integration-create-project.ps1 -UnityPath "${{ env.UNITY_PATH }}" | |||
|
|||
- name: Build without Sentry SDK | |||
# This hasn't broken for many months, so disabling on PRs to speed up CI. And also to test a clean build with Sentry SDK included. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A surprise but a welcome one!
private string _symbolUploadTask = @" | ||
// Credentials and project settings information are stored in the sentry.properties file | ||
gradle.taskGraph.whenReady {{ | ||
gradle.taskGraph.allTasks[-1].doLast {{ | ||
println 'Uploading symbols to Sentry' | ||
println 'Uploading symbols to Sentry. You can find the full log in ./Logs/sentry-symbols-upload.log (the file content may not be strictly sequential because it\'s a merge of two streams).' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
uploadTaskFilter = Regex.Replace(uploadTaskFilter, @"\[", "\\["); | ||
|
||
gradleBuildFile = Regex.Replace(gradleBuildFile, uploadTaskFilter, ""); | ||
var regex = new Regex(Regex.Escape(SymbolUploadTaskStartComment) + ".*" + Regex.Escape(SymbolUploadTaskEndComment), RegexOptions.Singleline); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing that!
I've originally made the change to ci.yml in #773, but to my surprise, it actually broke builds - suddenly some symbols weren't uploaded. Turns out this is also reproducible locally - the first build doesn't include
*.dbg.so
/*.sym.so
symbols.Update: the cause was that we relied on
PlayerSettings.GetScriptingBackend(EditorUserBuildSettings.selectedBuildTargetGroup)
but ourBuilder.cs
didn't actually set theEditorUserBuildSettings.selectedBuildTargetGroup
. So this wasn't really an issue for end-users, just the issue of our tests.Before finally finding this out, I've thought it was the issue of Unity not putting the il2cpp symbols in the output folder, so I've originally collected these from Unity editor Data folder. I've reverted this change in the final version of the PR, but kept some refactorings that were originally needed to make it (and tests) work.
#skip-changelog