Skip to content

[fix] Apply heuristics when diagtool comes with version number #4515

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

bruntib
Copy link
Contributor

@bruntib bruntib commented Apr 1, 2025

In some environments "diagtool" doesn't exist with this name, but it exists with a name containing version number: "diagtool-14". In this patch we apply some heuristics to try finding diagtool with this extended name, too.

Fixes #4453

@bruntib bruntib added this to the release 6.26.0 milestone Apr 1, 2025
@bruntib bruntib requested review from dkrupp and cservakt April 1, 2025 10:17
@bruntib bruntib requested a review from vodorok as a code owner April 1, 2025 10:17
bruntib added a commit to bruntib/codechecker that referenced this pull request Apr 1, 2025
In some environments "diagtool" doesn't exist with this name, but it
exists with a name containing version number: "diagtool-14".
In this patch we apply some heuristics to try finding diagtool with
this extended name, too.

Fixes Ericsson#4515
@bruntib bruntib force-pushed the diagtool_version branch 3 times, most recently from c53dcab to fb694a6 Compare April 1, 2025 10:30
@@ -154,6 +154,12 @@ def get_diagtool_bin():
if diagtool_bin.exists():
return diagtool_bin

# Sometimes diagtool binary has a version number in its name: diagtool-14.
diagtool_bin = diagtool_bin.with_name(
'diagtool-' + str(ClangSA.version_info().major_version))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use f-string here instead of string concatenation?

In some environments "diagtool" doesn't exist with this name, but it
exists with a name containing version number: "diagtool-14".
In this patch we apply some heuristics to try finding diagtool with
this extended name, too.

Fixes Ericsson#4453
@bruntib bruntib force-pushed the diagtool_version branch from fb694a6 to d3e9313 Compare April 8, 2025 10:06
@bruntib bruntib requested a review from cservakt April 8, 2025 10:06
Copy link
Member

@dkrupp dkrupp left a comment

Choose a reason for hiding this comment

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

LGTM

@dkrupp dkrupp merged commit 734b86c into Ericsson:master May 7, 2025
7 of 8 checks passed
@bruntib bruntib deleted the diagtool_version branch May 12, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CodeChecker checkes does not work when ccache is configured
3 participants