Skip to content

[diff] Fix a CLI remote-remote bug where we checked the detection status #3996

Merged
bruntib merged 1 commit intoEricsson:masterfrom
Szelethus:tag_diff_detection_status_bugfix
Sep 21, 2023
Merged

[diff] Fix a CLI remote-remote bug where we checked the detection status #3996
bruntib merged 1 commit intoEricsson:masterfrom
Szelethus:tag_diff_detection_status_bugfix

Conversation

@Szelethus
Copy link
Copy Markdown
Contributor

@Szelethus Szelethus commented Aug 28, 2023

Ideally, when we use CodeChecker cmd diff, we should return exactly what
the server API calls return. We obviously can't do that when either the
baseline or the newline result contains a local directory, since they
are not on the server. In that case, we need to parse the results, check
for review status rules on the server, etc.

However, when both operands are on the server, there is no need to do
additional filtering, lets just trust that the server returns correct
results. If not, we should fix it the server.

Depends on #3995.

@Szelethus Szelethus added this to the release 6.23.0 milestone Aug 28, 2023
@Szelethus Szelethus requested a review from cservakt August 28, 2023 11:32
@Szelethus Szelethus force-pushed the tag_diff_detection_status_bugfix branch from e62cc70 to d3d1d2f Compare September 8, 2023 12:59
@Szelethus Szelethus added CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands and removed server 🖥️ labels Sep 8, 2023
@Szelethus Szelethus force-pushed the tag_diff_detection_status_bugfix branch from d3d1d2f to 5f482f8 Compare September 12, 2023 12:51
Copy link
Copy Markdown
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

Ideally, when we use CodeChecker cmd diff, we should return exactly what
the server API calls return. We obviously can't do that when either the
baseline or the newline result contains a local directory, since they
are not on the server. In that case, we need to parse the results, check
for review status rules on the server, etc.

However, when both operands _are_ on the server, there is no need to do
additional filtering, lets just trust that the server returns correct
results. If not, we should fix it the server.
@bruntib bruntib merged commit 52dec6a into Ericsson:master Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix 🔨 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CodeChecker diff works inconsistently in local-local, local-remote, remote-remote cases, especially with tags

3 participants