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

Fix private binary app analysis tier3 #114

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Conversation

aufi
Copy link
Member

@aufi aufi commented Apr 15, 2024

Updating expected incidents files prefix and adding more readable diff for issues and incident lists.

This should fix tier3 test.

Updating expected incidents files prefix and adding more readable diff
for issues and incident lists.

This should fix tier3 test.

Signed-off-by: Marek Aufart <maufart@redhat.com>
@aufi
Copy link
Member Author

aufi commented Apr 15, 2024

@pranavgaikwad @mguetta1 There is one incident less (than expected) for local-storage-00001, is it some known analyzer/test update?
image

  File:     "/bin/maven/java-project/src/main/java/io/konveyor/demo/config/ApplicationConfiguration.java",
  Line:     37,

@aufi
Copy link
Member Author

aufi commented Apr 15, 2024

It is with https://github.com/konveyor/go-konveyor-tests/blob/main/analysis/tc_tackle_testapp_private_binary.go#L47-L56 test expectation, the first incident in the file on line 8 is found, but not the other one that should be on line 37

(note, this application looks to be slightly different to tackle-testapp from github https://github.com/konveyor/tackle-testapp-public or https://github.com/konveyor/tackle-testapp)

Signed-off-by: Marek Aufart <maufart@redhat.com>
@aufi
Copy link
Member Author

aufi commented Apr 16, 2024

It is with https://github.com/konveyor/go-konveyor-tests/blob/main/analysis/tc_tackle_testapp_private_binary.go#L47-L56 test expectation, the first incident in the file on line 8 is found, but not the other one that should be on line 37

(note, this application looks to be slightly different to tackle-testapp from github https://github.com/konveyor/tackle-testapp-public or https://github.com/konveyor/tackle-testapp)

Confirmed with @pranavgaikwad that the incident on line 37 is not recognized intentionaly after analyzer/rules change. Analysis in tier3 test now works for me.

...
--- PASS: TestApplicationAnalysis (245.22s)
    --- PASS: TestApplicationAnalysis/tackle-testapp-binary (245.22s)
PASS
ok  	github.com/konveyor/go-konveyor-tests/analysis	245.237s

@aufi aufi requested a review from pranavgaikwad April 16, 2024 14:52
@aufi
Copy link
Member Author

aufi commented Apr 16, 2024

TIER2 is expected to fail.

analysis/analysis_test.go Show resolved Hide resolved
analysis/analysis_test.go Outdated Show resolved Hide resolved
Signed-off-by: Marek Aufart <maufart@redhat.com>
@aufi
Copy link
Member Author

aufi commented Apr 17, 2024

@pranavgaikwad Good point, updated, example:

...
    analysis_test.go:213: Different amount of incidents error. Got 8, expected 7.
Unexpected incident found: /bin/maven/java-project/src/main/java/io/konveyor/demo/config/ApplicationConfiguration.java line 8.

@aufi aufi merged commit b98c6f9 into konveyor:main Apr 17, 2024
4 of 5 checks passed
@mguetta1
Copy link
Collaborator

Hi @aufi
Should this change be backported into release-0.3?

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.

None yet

3 participants