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

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

Closed
dymurray opened this issue Sep 12, 2024 · 4 comments
Closed

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

dymurray opened this issue Sep 12, 2024 · 4 comments

Comments

@dymurray
Copy link

  • Simulate a scenario where we have 2 years of data
  • 10/15 apps
  • Start on an older branch, run analysis
  • Simulate code change
  • Rerun analysis
  • Deliver this as a script that all devs can use to prepopulate data
@sshveta
Copy link
Collaborator

sshveta commented Sep 17, 2024

@abrugaro Assigning this to you .

@abrugaro
Copy link

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
Copy link
Author

dymurray commented Sep 18, 2024

@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

@abrugaro
Copy link

abrugaro commented Oct 1, 2024

PR merged, the script can be found here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants