konveyor / kai

Konveyor AI - static code analysis driven migration to new targets via Generative AI
Apache License 2.0
23 stars 29 forks source link

Develop a script that seeds Kai/Konveyor with analysis history #360

Open dymurray opened 1 week ago

dymurray commented 1 week ago
sshveta commented 2 days ago

@abrugaro Assigning this to you .

abrugaro commented 1 day ago

Hi @dymurray,

Just to confirm, the goal is to simulate changes applied to multiple applications over time. The script should:

  1. Create N apps using an older branch
  2. Analyze them
  3. Edit the branch to select a more recent version to simulate the code changes
  4. Analyze them again

Is that right?

Also, I'm creating the script assuming that auth is disabled in Konveyor when the script is executed. Is that acceptable?

Thanks!

dymurray commented 1 day ago

@abrugaro that's exactly right. It is probably worth at first stepping through the example with one application and 3-4 iterations of code changes. I think the majority of the work here will be focusing on finding a few good example applications that we understand the historical changes well enough to be able to sanity check the results. Once we have this, lets develop the script to take a clean Konveyor install and populate it with this data.

Once the data is present on the hub, there is some possibility to leverage @jortel and @mansam 's Hub snapshot work to be able to backup the data inside of the Konveyor instance, and then be able to seed a new Konveyor instance with all of that data. It would probably be more efficient than having every developer run a set of 30-40 analyses everytime they want to populate their instance.

If we can find a few good example apps with code changes that fix specific incidents then this is where we can get valuable data exposed within Kai.

cc @jwmatthews if I'm missing something