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

Some tests have a dependency on mono, which is deprecated and not part of ubuntu 24.04 #855

Closed
DaveTryon opened this issue Jan 6, 2025 · 1 comment

Comments

@DaveTryon
Copy link
Contributor

Our PR's have begun to fail in ubuntu-latest, with the following error:

System.IO.FileNotFoundException: Could not find 'mono' host. Make sure that 'mono' is installed on the machine and is available in PATH environment variable.
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Helpers.DotnetHostHelper.GetMonoPath() in /_/src/Microsoft.TestPlatform.CoreUtilities/Helpers/DotnetHostHelper.cs:line 93
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DefaultTestHostManager.GetTestHostProcessStartInfo(IEnumerable`1 sources, IDictionary`2 environmentVariables, TestRunnerConnectionInfo connectionInfo) in /_/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DefaultTestHostManager.cs:line 218
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources, String runSettings) in /_/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyOperationManager.cs:line 226
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.InitializeTestRun(TestRunCriteria testRunCriteria, IInternalTestRunEventsHandler eventHandler) in /_/src/Microsoft.TestPlatform.CrossPlatEngine/Client/ProxyExecutionManager.cs:line 182

Based on actions/runner-images#10636. ubuntu-latest has updated to ubuntu-24.04, which does not include mono (mono has been deprecated). I'll open a PR to use ubuntu-22.04 in the runner to unblock the PR pipeline, but we need a plan to address this in the long run. Eventually, both PR pipeline and the CI pipeline should migrate to ubuntu-24.04.

@DaveTryon DaveTryon added the needs triage Default status upon issue submission label Jan 6, 2025
@DaveTryon DaveTryon changed the title PR builds are failing on ubuntu-latest Some tests have a dependency on mono, which is deprecated and not part of ubuntu 24.04 Jan 6, 2025
@jalkire jalkire added accepted We are working on this and hope to release it into the product and removed needs triage Default status upon issue submission labels Jan 9, 2025
@DaveTryon
Copy link
Contributor Author

I've opened https://dev.azure.com/mseng/1ES/_workitems/edit/2242153 to put this on the planning radar and to track its execution. Closing this issue to avoid having duplicates. If/when we fix this, the PR can reference back to this issue for documentation purposes.

@DaveTryon DaveTryon removed the accepted We are working on this and hope to release it into the product label Jan 9, 2025
@DaveTryon DaveTryon removed their assignment Jan 9, 2025
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

No branches or pull requests

2 participants