-
Notifications
You must be signed in to change notification settings - Fork 193
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
Stryker failure : System.InvalidOperationException: Sequence contains no elements #713
Comments
Thanks for submitting this issue! Does this behaviour only occur on Azure Devops? It looks like a dependency of ours (buildalyzer) cannot open your project file I'm curious if this happens too if you run stryker locally. |
It looks like we are failing to read your test project file for some reason. Does this only happen on azure devops? Could you try it locally and use -f to produce the logfile? Could you also perhaps share the project file with us? |
yes, it fails in Azure Devops only. |
and here is the project file with tests |
One difference I can think of is the msbuild version. There might be a version installed on DevOps that is not compatible with buildalyzer. Unfortunately we don't log the msbuild version before stryker crashes... So I can't compare the versions. |
is there any script or a command I can execute locally and on the agent to collect additional details? |
If you add -f to the stryker run in your pipeline you could use publish pipeline artifact to publish the stryker logs to your build pipeline. You can then download them and send them to us. Other than that I'm not sure yet. We are failing here:
Which to me indicates that for some reason we are unable to build your targetframework(s) using buildalyzer. I'll try to repro using your csproj. Could you perhaps share the solutionfile and project under test projectfile as well? You can remove any sensitive information and I don't think I need any source files. Also, which vm images are you using in your hosted pipelines? Just windows-latest or some other version? And are they the normal versions everyone else uses or are they some microsoft internal agents? |
Here is the log from the agent: the solution file: the project I want to test: The agents are internal, most likely with the latest Windows and pre-installed VS2017 and Azure SDK |
I'm not seeing anything at all suspicious about those project files, SDK style and using package reference is pretty much ideal for buildalyzer and stryker (short of being dotnet core). Have you tried it with any other projects and/or agents? |
yeah, I did. it fails with the same exception: [07:15:03 ERR] An error occurred during the mutation test run |
Would it be possible to get access to the build agent or perhaps a list of all software and versions so I can try to reproduce? Software versions for windows, visual studio, msbuild, nuget and dotnet (core) installed on the system as a minimum to try to rebuild the agent on a vm. |
Closing until repro is available |
Is there any progress on this issue? I'm having the exact same behaviour but on my local machine |
@samvandenbossche Do you have a reproduction project that we can use to analyse the problem? With the current info we cannot research what went wrong. |
I'm afraid not because it's against employer guidelines. |
Could you perhaps create a reproduction using your current project as a template? Just remove anything that's not necessary to produce the failure, anything proprietary. I know that might be a lot of work but if you can't help us create a reproduction there's unfortunately nothing we can do to investigate. |
I'll give it a try |
If the builds were running under Linux, this issue might have fixed it: phmonte/Buildalyzer#142 |
Thanks for the ping @eNeRGy164. I don't think they were running on linux as they were all dotnet framework projects as far as I can tell but I'm gonna go and close this issue anyway since there hasn't been any activity for a while. |
Describe the bug
I don't have a clear enough description, but in Azure DevOps Stryker constantly fails on the "analyzing project" step and exits with code 1. May be I am missing something obvious.
Logs
The tool is executed in Azure DevOps, so the log is copied from the step logs.
stryker-log.log
Expected behavior
Analyze the project and run mutation tests.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: