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

✨ Analysis automation base work #66

Merged
merged 3 commits into from
Feb 25, 2025
Merged

Conversation

abrugaro
Copy link
Collaborator

@abrugaro abrugaro commented Feb 19, 2025

Part of #51.

This PR includes:

  • Automation for selecting sources and targets
  • Automation for filling the model providers settings file
  • Steps to fetch the logs and screenshots from the Windows runner
  • Steps to fetch the logs and screenshots from the Linux runner
  • Installation of required dependencies for Linux and Windows runners
  • Skeleton for the automation of the analysis of coolstore, this is already working on Linux on gh actions, will open a follow-up PR for Windows, which may be failing due to The analysis timeout is too low kai#690

@abrugaro abrugaro requested review from sshveta and midays February 19, 2025 16:28
@abrugaro abrugaro self-assigned this Feb 19, 2025
*/
public async getServerStatusIframe(): Promise<FrameLocator | null> {
public async getLeftIframe(): Promise<FrameLocator | null> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method was no longer used and was replaced by getServerStatusIframe() method .
https://github.com/konveyor/kai-ci/blob/main/e2e/pages/vscode.pages.ts#L133

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved in 8b9dc7a.

// }
await window.waitForTimeout(5000);
await vscodeApp.openSetUpKonveyor();
await window.waitForTimeout(5000);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These waits are also replaced by waitforselector.
You need to rebase off main branch ?
https://github.com/konveyor/kai-ci/blob/main/e2e/tests/vscode.test.ts#L36

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved in 8b9dc7a.

I kept some of the changes that were on main but replaced some others

Signed-off-by: Alejandro Brugarolas <[email protected]>
Signed-off-by: Alejandro Brugarolas <[email protected]>
await window.waitForSelector('span:text("Start Analyzer")');
await window.locator('span:has-text("Start Analyzer")').click();
const konveyorView = await window.getByText('Konveyor Analysis View');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to assert that the konveyor analysis view opened and server is running ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now that's affected by konveyor/editor-extensions#389, we can add that assertion once it is fixed, wdyt ?

@sshveta sshveta merged commit 493f7ef into konveyor:main Feb 25, 2025
2 checks passed
@abrugaro abrugaro deleted the feat-analysis branch February 26, 2025 09:31
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.

2 participants