Closed vbreuss closed 1 year ago
Looks like two different problems. The first looks like the dashboard has not yet been updated to support the new version of the report, the second seems to be some problem detecting your unit tests which we did not expect.
@rouke-broersma : Both issues started occurring with v3.8.1 and work well with the previous version.
As a workaround I reverted both projects to v3.7.1.
Should I split this issue in two?
Yes both changes that caused these two issues were released in 3.8. If you could create a new issue for the second problem that would be great!
I created stryker-mutator/stryker-net#2501 for the second issue!
@rouke-broersma , it seems this issue is still not resolved as of today.
I reverted my change and use now the latest version 3.8.2
, but the build still fails:
_____ _ _ _ _ ______ _______
/ ____| | | | | \ | | ____|__ __|
| (___ | |_ _ __ _ _| | _____ _ __ | \| | |__ | |
\___ \| __| '__| | | | |/ / _ \ '__| | . ` | __| | |
____) | |_| | | |_| | < __/ | | |\ | |____ | |
|_____/ \__|_| \__, |_|\_\___|_| (_)|_| \_|______| |_|
__/ |
|___/
Version: 3.8.2
[08:41:29 INF] Identifying project to mutate.
[08:41:39 INF] Found project /home/runner/work/Testably.Architecture.Rules/Testably.Architecture.Rules/Source/Testably.Architecture.Rules/Testably.Architecture.Rules.csproj to mutate.
[08:41:39 INF] Building test project /home/runner/work/Testably.Architecture.Rules/Testably.Architecture.Rules/Tests/Testably.Architecture.Rules.Tests/Testably.Architecture.Rules.Tests.csproj (1/1)
[08:41:52 INF] Total number of tests found: 138.
[08:41:52 INF] Initial testrun started.
[08:41:58 INF] 299 mutants created
[08:41:58 INF] Capture mutant coverage using 'CoverageBasedTest' mode.
[08:42:00 INF] [12](https://github.com/Testably/Testably.Architecture.Rules/actions/runs/4903156687/jobs/8760595632#step:5:13) mutants got status CompileError. Reason: Mutant caused compile errors
[08:42:00 INF] 52 mutants got status NoCoverage. Reason: Not covered by any test.
[08:42:00 INF] 60 mutants got status Ignored. Reason: Removed by block already covered filter
[08:42:00 INF] 124 total mutants are skipped for the above mentioned reasons
[08:42:00 INF] [17](https://github.com/Testably/Testably.Architecture.Rules/actions/runs/4903156687/jobs/8760595632#step:5:18)5 total mutants will be tested
All mutants have been tested, and your mutation score has been calculated
…[08:43:49 ERR] Failed to upload report to the dashboard at https://dashboard.stryker-mutator.io/api/reports/github.com/Testably/Testably.Architecture.Rules/main?module=Testably.Architecture.Rules
System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Stryker.Core.Clients.DashboardClient.PublishReport(JsonReport report, String version)
[08:43:49 ERR] Uploading to stryker dashboard failed...
[08:43:49 INF] Time Elapsed 00:02:[19](https://github.com/Testably/Testably.Architecture.Rules/actions/runs/4903156687/jobs/8760595632#step:5:20).81[20](https://github.com/Testably/Testably.Architecture.Rules/actions/runs/4903156687/jobs/8760595632#step:5:21)[21](https://github.com/Testably/Testably.Architecture.Rules/actions/runs/4903156687/jobs/8760595632#step:5:22)7
[08:[43](https://github.com/Testably/Testably.Architecture.Rules/actions/runs/4903156687/jobs/8760595632#step:5:44):49 INF] The final mutation score is 64.76 %
Mhm I'll take another look. We should probably also log the failure message instead of only the error code..
2023-05-07T09:02:54.999789068Z: [ERROR] 'D:\\a\\Testably.Abstractions\\Testably.Abstractions\\Tests\\Testably.Abstractions.Compression.Tests\\ZipFile\\Tests.cs': [Object]
2023-05-07T09:02:54.999792968Z: [ERROR] }
2023-05-07T09:02:54.999796068Z: [ERROR] },
2023-05-07T09:02:54.999799268Z: [ERROR] query: { module: 'Testably.Abstractions.Compression' },
2023-05-07T09:02:54.999802568Z: [ERROR] params: {},
2023-05-07T09:02:54.999805768Z: [ERROR] reqId: 'daf91545d8474aab90524d31b542122d',
2023-05-07T09:02:54.999808968Z: [ERROR] time: 2023-05-07T09:02:54.995Z,
2023-05-07T09:02:54.999812268Z: [ERROR] duration: 450,
2023-05-07T09:02:54.999815368Z: [ERROR] error: {
2023-05-07T09:02:54.999818568Z: [ERROR] name: 'BAD_REQUEST',
2023-05-07T09:02:54.999821768Z: [ERROR] message: 'Invalid report. data/schemaVersion must match pattern "^1(\\.\\d*)?$"',
2023-05-07T09:02:54.999825268Z: [ERROR] status: 400,
2023-05-07T09:02:54.999828268Z: [ERROR] errors: [],
2023-05-07T09:02:54.999831568Z: [ERROR] stack: 'BAD_REQUEST: Invalid report. data/schemaVersion must match pattern "^1(\\.\\d*)?$"\n' +
2023-05-07T09:02:54.999835069Z: [ERROR] ' at ReportsController.verifyRequiredPutReportProperties (file:///app/node_modules/@stryker-mutator/dashboard-backend/dist/src/api/ReportsController.js:98:23)\n' +
2023-05-07T09:02:54.999839069Z: [ERROR] ' at ReportsController.update (file:///app/node_modules/@stryker-mutator/dashboard-backend/dist/src/api/ReportsController.js:35:14)\n' +
2023-05-07T09:02:54.999842569Z: [ERROR] ' at runMicrotasks (<anonymous>)\n' +
2023-05-07T09:02:54.999845969Z: [ERROR] ' at processTicksAndRejections (node:internal/process/task_queues:96:5)'
2023-05-07T09:02:54.999849269Z: [ERROR] }
2023-05-07T09:02:54.999852369Z: [ERROR] }
The html elements schema version enforces version 1, but we have had a breaking change and are on version 2.
Describe the bug I can't use the dashboard reporter to upload reports since the tool was updated to
3.8.1
. The same report with tool version3.7.1
is working.Logs I get the following error in the Github Build Pipeline:
When I revert back to v3.7.1 (
dotnet tool install dotnet-stryker --tool-path ../tools --version 3.7.1
) the report gets successfully uploaded:Expected behavior The report should be uploaded to https://dashboard.stryker-mutator.io/.
Desktop (please complete the following information):
Additional context In my other project Stryker also no longer uploads the dashboard report, but it shows a different error message: