Closed threefjefff closed 4 years ago
Do you have both dotnet core 2.1 and dotnet core 3.0 available on the build agent? Could you share the pipeline with us?
Do you have both dotnet core 2.1 and dotnet core 3.0 available on the build agent?
Yeah, it has a host of different sdks available:
dotnet --list-sdks
2.1.300 [/usr/share/dotnet/sdk]
2.1.301 [/usr/share/dotnet/sdk]
2.1.302 [/usr/share/dotnet/sdk]
2.1.401 [/usr/share/dotnet/sdk]
2.1.402 [/usr/share/dotnet/sdk]
2.1.403 [/usr/share/dotnet/sdk]
2.1.500 [/usr/share/dotnet/sdk]
2.1.502 [/usr/share/dotnet/sdk]
2.1.503 [/usr/share/dotnet/sdk]
2.1.504 [/usr/share/dotnet/sdk]
2.1.505 [/usr/share/dotnet/sdk]
2.1.506 [/usr/share/dotnet/sdk]
2.1.507 [/usr/share/dotnet/sdk]
2.1.508 [/usr/share/dotnet/sdk]
2.1.509 [/usr/share/dotnet/sdk]
2.1.602 [/usr/share/dotnet/sdk]
2.1.603 [/usr/share/dotnet/sdk]
2.1.604 [/usr/share/dotnet/sdk]
2.1.605 [/usr/share/dotnet/sdk]
2.1.606 [/usr/share/dotnet/sdk]
2.1.700 [/usr/share/dotnet/sdk]
2.1.701 [/usr/share/dotnet/sdk]
2.1.801 [/usr/share/dotnet/sdk]
2.1.802 [/usr/share/dotnet/sdk]
2.2.100 [/usr/share/dotnet/sdk]
2.2.101 [/usr/share/dotnet/sdk]
2.2.102 [/usr/share/dotnet/sdk]
2.2.103 [/usr/share/dotnet/sdk]
2.2.104 [/usr/share/dotnet/sdk]
2.2.105 [/usr/share/dotnet/sdk]
2.2.106 [/usr/share/dotnet/sdk]
2.2.107 [/usr/share/dotnet/sdk]
2.2.108 [/usr/share/dotnet/sdk]
2.2.109 [/usr/share/dotnet/sdk]
2.2.202 [/usr/share/dotnet/sdk]
2.2.203 [/usr/share/dotnet/sdk]
2.2.204 [/usr/share/dotnet/sdk]
2.2.205 [/usr/share/dotnet/sdk]
2.2.206 [/usr/share/dotnet/sdk]
2.2.300 [/usr/share/dotnet/sdk]
2.2.301 [/usr/share/dotnet/sdk]
2.2.401 [/usr/share/dotnet/sdk]
2.2.402 [/usr/share/dotnet/sdk]
3.0.100 [/usr/share/dotnet/sdk]
Could you share the pipeline with us?
I can share the Stryker section of it, sure.
- job: Stryker_API
displayName: Run Stryker Command
dependsOn: [BuildUnittestSonar]
steps:
- template: steps/nuget-feed-auth.yaml@templates
parameters:
Nuget_Config: ${{ variables.Nuget_Config_Location }}
- task: DotNetCoreCLI@2
displayName: 'Install Stryker'
continueOnError: true
inputs:
command: custom
custom: tool
vstsFeed: ${{ variables.Artifact_Shared_Package_Feed }}
arguments: 'install dotnet-stryker --version 0.13.0 --tool-path $(Agent.BuildDirectory)/tools'
- script: |
cd ${{ variables.Unit_Test_Folder }}/${{ variables.Api_Project }}.UnitTests/
$(Agent.BuildDirectory)/tools/dotnet-stryker```
Am I missing something or are none of the sdk's in that list dotnet core 3.0.x? 🤔
Fat fingered the copy D: , Updated the post.
Could you do a run with logging to file turned on (-f flag) and send us the logs? You can cross out any sensitive information. I am most interested in this dependencies Stryker was able to resolve, they should include dotnet core frameworks at the least and that information gets logged in the log file.
Here's the zip of the folder:
@threefjefff Sorry for not getting back to you. I've looked into the issue and can't really find any reason this would happen. I also can't really debug it because it seems related to your project and build environment. We did just introduce a new feature which should make stryker work on dotnet core 3.0 systems without a need for dotnet core 2.1 to be available. When that is released as part of 0.16.0 perhaps it solves your problem as well.
If this problem still persists, please let us know
Describe the bug Mutations fail to build in CI pipeline, but seem to be built and executed correctly when run locally against the project
Logs
Expected behavior Mutations created and tested against.
Desktop (please complete the following information):