-
Notifications
You must be signed in to change notification settings - Fork 7
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
Extract Component - Generate Module Extract list #37
Comments
This component should be between the components It should contain only code relating to everything needed to execute the external maven command and read the Checkstyle extract file produced into memory. If file failed to be created, we should throw a I am currently preferring the name |
In #40 we completed the work of getting the info for reader of json file and putting the info to memory. We also need to implement the execution of checkstyle project maven process to generate the extract info file, and fetch the contents of it. |
Should we create an issue at checkstyle repo for the maven process? I don't have a clear idea how to create a file in a maven life time. I could only imagine to do that in an UT and the file could be generate with running a test by now. |
@Luolc There will be no changes in Checkstyle for this. These are the steps I am seeing for the process:
If you have a better process, let me know. |
I am fine with these steps. In fact the only difference between this and our previous plan is that the extract program is not put in CS project. Let's go into the detail.
My suggestion: in a
I think we could just use the PR branch version. Our goal is to test specific PR branch, so the extract infos should describe exactly about the PR branch version. Edit: In a offline mode, it is sure user would have the PR branch version CS project. We could implement a method that take that repo path and branch name as parameter, make a copy to our project, and do the rest steps. |
Your right, I forgot we were going to do this.
I don't think we need to do a copy. We are only injecting 1 file and output should go under our repository somewhere. We can delete the injected file after we are done as part of a new step 5. |
OK, I am fine with this. Arguments commented in #32 . |
Our steps could be split into two separate work:
I would like to send a PR of the second, only contains the abstract design thinking and discuss the code structure in the PR. I find it difficult to describe my thinking in words, "show me the code" way may be more effective. Edit: #50 And I would work on the first in the meantime. |
@Luolc Is there anything left to be done in this issue? |
@rnveach It's done. Before integrating this into |
Then I am closing this issue |
Taken from discussions in #29 ,
We need to generate a list of modules, properties, and hierarchy from checkstyle PR for our analysis and to identify full regression model needed.
This the list of information we need right now:
Based on discussions at #19 (comment) and in issue:
As of right now, this probably has to be loaded as a file from a separate maven process.
So we don't have to inject
gson
dependency into Checkstyle too, I think we should just write out file by hand.It is ok if we can't cover external maven command by coverage or UT for now.
This is blocked by #19 .
The text was updated successfully, but these errors were encountered: