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

CI for UI Tests Infrastructure Update #88

Merged
merged 14 commits into from
Sep 11, 2024

Conversation

PiotrKarczmarz
Copy link
Collaborator

@PiotrKarczmarz PiotrKarczmarz commented Sep 11, 2024

CLOSE https://linear.app/sourcegraph/issue/CODY-2816/ci-for-visual-studio-integration-tests-based-on-vsixtesting

UI Tests infrastructure (Cody.VisualStudio.Tests) updated to allow running them, not only locally which were running fine from the very beginning, but also using GitHub Actions.

Fixed threading issues only seen in GitHub Actions:

  • VsixTesting runner exception: Call was Rejected By Callee (more about it), caused PlaywrightTestsBase.InitializeAsync() was called multiple times, which internally tries to call VS API, when XUnit was creating instances of all involved test classes
  • Removed calls to VS API from TestBase constructor, which have the same effect as above

@PiotrKarczmarz PiotrKarczmarz changed the title CI Tests Infrastructure Update CI UI Tests Infrastructure Update Sep 11, 2024
@PiotrKarczmarz PiotrKarczmarz changed the title CI UI Tests Infrastructure Update CI for UI Tests Infrastructure Update Sep 11, 2024
…d(IVsCredentialKey credentialKey, String credentialValue) method.
Copy link
Collaborator

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

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

Looks great in the CI! Let's document how dev can add a new test and what steps devs should take when the CI fail in our CONTRIBUTING docs in a follow up. Will create a linear issue for this, thank you so much!

{
}

//[VsFact(Version = VsVersion.VS2022)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is this for?

Copy link
Collaborator Author

@PiotrKarczmarz PiotrKarczmarz Sep 11, 2024

Choose a reason for hiding this comment

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

This is for XUnit logger, which is passing calls to our Logger. Thanks to it we have nice, detailed logs from tests https://github.com/sourcegraph/cody-vs/actions/runs/10814320609/job/30000502786#step:8:88

image

NoBuild = true,
NoRestore = true
});
// DotNetTest("./Cody.VisualStudio.Tests/bin/Debug/Cody.VisualStudio.Tests.dll", new DotNetTestSettings
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to keep this comment?

Copy link
Collaborator Author

@PiotrKarczmarz PiotrKarczmarz Sep 11, 2024

Choose a reason for hiding this comment

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

Yes (it's a reminder). I will change it later, when I will finish the next part of CI updates.

@PiotrKarczmarz PiotrKarczmarz merged commit c93eb6e into main Sep 11, 2024
1 check passed
@PiotrKarczmarz PiotrKarczmarz deleted the piotr/ci-infrastructure-update branch September 11, 2024 18:09
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