Skip to content

Migration from .NET 7.0 to .NET 8.0 #1017

Migration from .NET 7.0 to .NET 8.0

Migration from .NET 7.0 to .NET 8.0 #1017

Triggered via pull request December 11, 2024 14:44
Status Failure
Total duration 29m 5s
Artifacts 1

build_and_test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 2 warnings
Build & Test
Process completed with exit code 1.
OnlineSales.Tests.AccountsTests ► CreateAndCheckEntityState_ChangeLog: tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
OnlineSales.Tests.AccountsTests ► CreateAndDeleteCheckEntityState_ChangeLog: tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
OnlineSales.Tests.AccountsTests ► CreateAndDeleteItemTest: tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
OnlineSales.Tests.AccountsTests ► CreateAndGetItemTest: tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
OnlineSales.Tests.AccountsTests ► CreateAndUpdateCheckEntityState_ChangeLog: tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
OnlineSales.Tests.AccountsTests ► CreateAndUpdateItemTest: tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
OnlineSales.Tests.AccountsTests ► GetAllTest: tests/OnlineSales.Tests/Environment/TestApplication.cs#L53
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: System.AggregateException : One or more errors occurred. (An error occurred while saving the entity changes. See the inner exception for details.) ---- Microsoft.EntityFrameworkCore.DbUpdateException : An error occurred while saving the entity changes. See the inner exception for details. -------- System.InvalidCastException : Writing values of 'System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' is not supported for parameters having NpgsqlDbType 'Jsonb'. ------------ System.NotSupportedException : Type 'Dictionary`2' required dynamic JSON serialization, which requires an explicit opt-in; call 'EnableDynamicJson' on 'NpgsqlDataSourceBuilder' or NpgsqlConnection.GlobalTypeMapper (see https://www.npgsql.org/doc/types/json.html and the 8.0 release notes for more details). Alternatively, if you meant to use Newtonsoft JSON.NET instead of System.Text.Json, call UseJsonNet() instead.
OnlineSales.Tests.AccountsTests ► GetTotalCountTest(createTestItem: True, filter: "", totalCount: 1, payloadItemsCount: 1): tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
OnlineSales.Tests.AccountsTests ► GetTotalCountTest(createTestItem: True, filter: "filter[limit]=10&filter[skip]=0", totalCount: 1, payloadItemsCount: 1): tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
OnlineSales.Tests.AccountsTests ► GetTotalCountTest(createTestItem: True, filter: "filter[limit]=10&filter[skip]=100", totalCount: 1, payloadItemsCount: 0): tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
OnlineSales.Tests.AccountsTests ► GetTotalCountTest(createTestItem: True, filter: "filter[where][id][eq]=1", totalCount: 1, payloadItemsCount: 1): tests/OnlineSales.Tests/SimpleTableTests.cs#L307
Failed test found in: _fv-az1429-301_2024-12-11_14_45_54.trx Error: Expected the enum to be HttpStatusCode.Created {value: 201}, but found HttpStatusCode.UnprocessableEntity {value: 422}.
Build & Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "test-results". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
test-results
104 MB