-
Notifications
You must be signed in to change notification settings - Fork 14
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
[RFR] Fix Apache wicket app analysis failure #213
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nachandr for the PR.
Could you please add analysis tag and dependencies checks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nachandr please create a new application var for this analysis in https://github.com/konveyor/go-konveyor-tests/blob/main/data/application.go
Analysis tags and dependencies are not generated with the selected target. |
Good, please set the expected result to an empty array so if something changes we can catch it - Thanks @mguetta1. Just want to make sure I have this right. Are you referring to a placeholder for the future or something else? If it's just a placeholder , I think we could leave the code as is and add the dependencies when they do get generated. |
Signed-off-by: Nandini Chandra <[email protected]>
Signed-off-by: Nandini Chandra <[email protected]>
Signed-off-by: Nandini Chandra <[email protected]>
Signed-off-by: Nandini Chandra <[email protected]>
Signed-off-by: Nandini Chandra <[email protected]>
Signed-off-by: Nandini Chandra <[email protected]>
61e622b
to
8df7493
Compare
Signed-off-by: Nandini Chandra <[email protected]>
9499921
to
fa91324
Compare
Hi, not a placeholder but an empty array to make sure that this is the expected behavior instead of skipping the |
Sure, I could do that in a follow up PR . I'd also like to check if analysis_test.go needs to be updated. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
The change looks good to me. I am not sure that the current analysis result is really the expected result (no tags/deps)
Hi @aufi and @pranavgaikwad , Is this expected? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nachandr, this test case specifies path within the source repository, so looking on the sample app: https://github.com/windup/windup-sample-apps/tree/master/test-files/src_example/org/apache/wicket, no dependencies is (probably) correct, there is no pom.xml in the directory subtree.
Generally, there should be tags at least from language discovery (Java and Maven for this app), but these come from language-discovery task triggered automatically with application creation.
So, they might have appeared in case analysis has finished later than the language discovery. This is not common on most applications, but here, the application looks to be just a bunch of .java
files, so analysis might be pretty fast. This could explain sometimes generated tags.
I tested the analysis locally, except the discovery tags, results are the same and since this is analysis tests more that discovery tests, this PR with empty Dependencies and Tags is LGTM.
@aufi , Thank you ! |
* Update Analysis issues Signed-off-by: Nandini Chandra <[email protected]> * Update Incidents Signed-off-by: Nandini Chandra <[email protected]> * Update Incidents for Analysis issues Signed-off-by: Nandini Chandra <[email protected]> * Move application initilaization out of test file Signed-off-by: Nandini Chandra <[email protected]> * Move application initilaization out of test file Signed-off-by: Nandini Chandra <[email protected]> * Remove redundant lines Signed-off-by: Nandini Chandra <[email protected]> * Import required packages Signed-off-by: Nandini Chandra <[email protected]> --------- Signed-off-by: Nandini Chandra <[email protected]> Signed-off-by: Cherry Picker <[email protected]>
Signed-off-by: Nandini Chandra <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Co-authored-by: Nandini Chandra <[email protected]>
* Update Analysis issues Signed-off-by: Nandini Chandra <[email protected]> * Update Incidents Signed-off-by: Nandini Chandra <[email protected]> * Update Incidents for Analysis issues Signed-off-by: Nandini Chandra <[email protected]> * Move application initilaization out of test file Signed-off-by: Nandini Chandra <[email protected]> * Move application initilaization out of test file Signed-off-by: Nandini Chandra <[email protected]> * Remove redundant lines Signed-off-by: Nandini Chandra <[email protected]> * Import required packages Signed-off-by: Nandini Chandra <[email protected]> --------- Signed-off-by: Nandini Chandra <[email protected]> Signed-off-by: Cherry Picker <[email protected]>
Signed-off-by: Nandini Chandra <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Co-authored-by: Nandini Chandra <[email protected]>
No description provided.