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

CURA 11482 sentry #10

Merged
merged 8 commits into from
Jan 17, 2024
Merged

CURA 11482 sentry #10

merged 8 commits into from
Jan 17, 2024

Conversation

jellespijker
Copy link
Member

Ported the CCI recipe for Clipper and integrated Sentry uploading step in the build scripts. This will upload the debug and source files giving us quite a detailed Issue report, this should also result in better merging of Sentry events.

See the custom patch in: recipes/clipper/all/patches/0002-build-debug-symbols-on-windows-6.x.patch and the enable_sentry option in the conanfile.py

        if self.options.get_safe("enable_sentry", False):
            sentry_project = self.conf.get("user.curaengine:sentry_project", "", check_type=str)
            sentry_org = self.conf.get("user.curaengine:sentry_org", "", check_type=str)
            if sentry_project == "" or sentry_org == "":
                raise ConanInvalidConfiguration("sentry_project is not set")
            output = StringIO()
            self.run(f"sentry-cli -V", output=output)
            if "sentry-cli" not in output.getvalue():
                raise ConanInvalidSystemRequirements("sentry-cli is not installed")
            build_source_dir = self.build_path.parent.parent.as_posix()
            self.output.info("Uploading debug symbols to sentry")
            self.run(f"sentry-cli debug-files upload --include-sources -o {sentry_org} -p {sentry_project} {build_source_dir}")

Such that we can add Sentry build steps

Contribute to CURA-11482
Contribute to CURA-11482
Contribute to CURA-11482
Contribute to CURA-11482
Contribute to CURA-11482
Contribute to CURA-11482
@jellespijker jellespijker mentioned this pull request Jan 13, 2024
10 tasks
Contribute to CURA-11482
@wawanbreton wawanbreton merged commit ad84618 into main Jan 17, 2024
1 check passed
@wawanbreton wawanbreton deleted the CURA-11482_sentry branch January 17, 2024 08:56
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.

2 participants