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

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

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

Szelethus
Copy link
Collaborator

@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 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
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
8 checks passed
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