Skip to content

Fix Testcontainers.MsSql 4.10.0 breaking changes#92

Merged
JerrettDavis merged 5 commits intodependabot/nuget/tests/JD.Efcpt.Build.Tests/multi-cb2d0bd432from
copilot/sub-pr-87
Feb 10, 2026
Merged

Fix Testcontainers.MsSql 4.10.0 breaking changes#92
JerrettDavis merged 5 commits intodependabot/nuget/tests/JD.Efcpt.Build.Tests/multi-cb2d0bd432from
copilot/sub-pr-87

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 10, 2026

Testcontainers.MsSql 4.10.0 deprecated parameterless constructors for MsSqlBuilder and ContainerBuilder, breaking builds with CS0618 errors.

Changes

  • Updated container builder instantiation across 8 test locations to use new constructor API that requires image parameter
  • Bumped Testcontainers.MsSql to 4.10.0 in JD.Efcpt.Sdk.IntegrationTests.csproj (missed in original Dependabot update)

Migration

// Before
var container = new MsSqlBuilder()
    .WithImage("mcr.microsoft.com/mssql/server:2022-latest")
    .Build();

// After
var container = new MsSqlBuilder("mcr.microsoft.com/mssql/server:2022-latest")
    .Build();

Files updated:

  • SqlServerSchemaIntegrationTests.cs
  • EndToEndReverseEngineeringTests.cs
  • QuerySchemaMetadataIntegrationTests.cs (4 instances)
  • SnowflakeSchemaIntegrationTests.cs
  • SqlGenerationIntegrationTests.cs

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

dependabot Bot and others added 2 commits February 10, 2026 03:51
---
updated-dependencies:
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/nuget/tests/JD.Efcpt.Build.Tests/multi-cb2d0bd432 branch from 84d3da3 to 83e401f Compare February 10, 2026 04:15
Copilot AI and others added 2 commits February 10, 2026 04:19
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Testcontainers.MsSql from 4.4.0 to 4.10.0 Fix Testcontainers.MsSql 4.10.0 breaking changes Feb 10, 2026
Copilot AI requested a review from JerrettDavis February 10, 2026 04:26
@JerrettDavis JerrettDavis marked this pull request as ready for review February 10, 2026 04:45
@JerrettDavis JerrettDavis merged commit 6cfae03 into dependabot/nuget/tests/JD.Efcpt.Build.Tests/multi-cb2d0bd432 Feb 10, 2026
2 checks passed
@JerrettDavis JerrettDavis deleted the copilot/sub-pr-87 branch February 10, 2026 04:45
JerrettDavis added a commit that referenced this pull request Feb 17, 2026
* deps: Bump Testcontainers.PostgreSql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.PostgreSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps: Bump Testcontainers.FirebirdSql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.FirebirdSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps: Bump Testcontainers.MySql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.MySql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix obsolete Testcontainers API calls after 4.10.0 upgrade (#91)

* Initial plan

* Plan to fix obsolete Testcontainers API calls

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

* Fix obsolete Testcontainers API calls

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

* deps: Bump Testcontainers.MsSql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix Testcontainers.MsSql 4.10.0 breaking changes (#92)

* deps: Bump Testcontainers.MsSql from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: Testcontainers.MsSql
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Initial plan

* Fix Testcontainers obsolete constructors to use new API

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

* Update Testcontainers.MsSql to 4.10.0 in Sdk.IntegrationTests

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Co-authored-by: JD Davis <mxjerrett@gmail.com>

* deps: update NuGet packages to latest versions

* deps: Bump Testcontainers.Oracle from 4.4.0 to 4.10.0

---
updated-dependencies:
- dependency-name: Testcontainers.Oracle
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: address build errors from dependency updates

- Add 'partial' keyword to all test classes (required by TinyBDD 0.19.2 source generator)
- Restore TinyBDD analyzer disabling target (source generator produces broken code)
- Fix obsolete parameterless Testcontainers constructors (MySql, Oracle, PostgreSql)
- All 858 unit tests passing

* refactor: Remove redundant WithImage() calls in Testcontainers setup (#103)

* Initial plan

* refactor: remove redundant WithImage() calls and outdated.txt

Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants