Skip to content

Replace Pomelo MySQL EF Core provider with Microting fork - #22362

Merged
Eric Erhardt (eerhardt) merged 4 commits into
microsoft:mainfrom
SteeltoeOSS:mysql-pomelo-to-microting
Nov 25, 2026
Merged

Eric Erhardt (eerhardt) merged 4 commits into
microsoft:mainfrom
SteeltoeOSS:mysql-pomelo-to-microting

Conversation

@bart-vmware

@bart-vmware Bart Koelman (bart-vmware) commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Pomelo.EntityFrameworkCore.MySql has not been updated since 9.0.0 (EF Core 9), which forced Aspire.Pomelo.EntityFrameworkCore.MySql to pin EF Core 9 dependencies while the rest of the repo moves to newer versions. Switch to Microting.EntityFrameworkCore.MySql, the maintained fork, which targets EF Core 10.

The package is renamed to match:

  • Aspire.Pomelo.EntityFrameworkCore.MySql -> Aspire.Microting.EntityFrameworkCore.MySql
  • PomeloEntityFrameworkCoreMySqlSettings -> MicrotingEntityFrameworkCoreMySqlSettings
  • Config section Aspire:Pomelo:EntityFrameworkCore:MySql -> Aspire:Microting:EntityFrameworkCore:MySql

The integration and its tests target net10.0 only, because Microting 10.x requires EF Core 10 and no stable EF Core 11 release exists yet. Package validation is disabled for the renamed package since it has no shipped baseline.

Breaking changes

Existing users of Aspire.Pomelo.EntityFrameworkCore.MySql must switch to the new package ID, rename the settings type, and move configuration to the Aspire:Microting:EntityFrameworkCore:MySql section. Provider namespaces changed from Pomelo.EntityFrameworkCore.MySql.* to Microting.EntityFrameworkCore.MySql.*, which affects code that uses provider APIs directly.

Fixes #22150

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No (this concerns pattern-based renames only)
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22362

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22362"

@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Nov 17, 2026
@bart-vmware

Copy link
Copy Markdown
Contributor Author

CI restore currently fails with NU1101 because Microting.EntityFrameworkCore.MySql 10.0.14 is not on the approved feeds (dotnet-public / dotnet-eng / dotnet10 / dotnet11 / dotnet9).

Could a maintainer please import it with the dotnet-migrate-package pipeline (definition 931 in dnceng/internal)?

I checked its dependencies against the public dnceng feeds: Microsoft.EntityFrameworkCore.Relational 10.0.15 and MySqlConnector 2.6.2 are already on dotnet-public, so this is the only package that needs importing. After that the failed jobs only need a re-run, with no code changes.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@eerhardt

Copy link
Copy Markdown
Member

Thanks Bart Koelman (@bart-vmware) for the contribution.

I'm going to close this PR until we make a decision at #22150 (comment) on whether this is the best place for this library going forward. We can always reopen this PR if the decision is that we should maintain it in this repo.

@eerhardt

Copy link
Copy Markdown
Member

Reopening to move MySQL EF support forward.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Comment thread Directory.Packages.props Resolved

@eerhardt Eric Erhardt (eerhardt) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, then we should be able to merge this once CI is green.

@eerhardt

Copy link
Copy Markdown
Member

We will be able to add net11 support in a few days when https://www.nuget.org/packages/Microting.EntityFrameworkCore.MySql/11.0.0 gets out of 7 day quarantine.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@eerhardt

Copy link
Copy Markdown
Member

Bart Koelman (@bart-vmware) - I just noticed that this is targeting release/17.0. Can you retarget it to main? 17.0 has shipped, and this will need to go into 17.1.

@bart-vmware

Copy link
Copy Markdown
Contributor Author

Rebased.

Comment thread Directory.Packages.props Resolved
Comment thread Directory.Packages.props Resolved
Comment thread Directory.Packages.props Resolved
Comment thread Directory.Packages.props Resolved
Comment thread Directory.Packages.props Resolved

@eerhardt Eric Erhardt (eerhardt) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple rebase/merge conflicts got mistakenly made. Can you fix them?

Jose Perez Rodriguez (joperezr) pushed a commit that referenced this pull request Nov 20, 2026
## Description

Test-only change for `release/17.0`. It fixes CLI E2E failures that show
up on unrelated release PRs (for example #22401 and #22362). There are
no product changes.

**1. ConfigSource brownfield adoption test.** This ports only the
`ConfigSourceTestContext` test fix from #22182, which is already merged
on `main` and is also part of the open backport #22219.
`Update_AcceptingConfigurationSourceUpdatesBrownfieldConfiguration`
assumed the old SDK version and an exact JSON property order. With this
change, the test:
- runs `aspire update --yes --nuget-config-dir .`
- sets the expected `sdk.version` from the AppHost
- compares the result with `JsonNode.DeepEquals`

**2. Post-update CLI self-update prompt.** After the project update,
`aspire update` may ask `An update is available for the Aspire CLI.
Would you like to update it now? [Y/n]`.
`features.updateNotificationsEnabled` does not control this prompt. It
appears only when a newer CLI has been published on the selected
channel. Four tests blocked on it until they timed out:
-
`CentralPackageManagementTests.AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps`
-
`CentralPackageManagementTests.AspireUpdateRemovesOrphanAppHostPackageVersionWhenSdkAlreadyCurrent`
-
`ChannelUpdateWorkflowTests.UpdateToStable_TypeScriptSingleFileInit_KeepsConfigChannel`
-
`ChannelUpdateWorkflowTests.UpdateToStable_TypeScript_PreviewsStablePkgsAndKeepsChannel`

The new `CliE2EAutomatorHelpers.WaitForAspireUpdateCompletionAsync`
helper waits until one of three things appears for the current
`SequenceCounter` value:
- the success prompt
- the error prompt, which still fails fast
- the CLI self-update prompt

Only output after the line where the command was typed is considered, so
a prompt left on screen by an earlier `aspire update` in the same test
does not count. When the CLI self-update prompt appears, the helper
types `n` without Enter, so no phantom shell command desyncs the
counter, and then waits for the success prompt. It does not press Enter
blindly or use fixed delays, and it works whether or not the prompt
appears. The comments that claimed `updateNotificationsEnabled`
suppresses this prompt have been corrected.

### Validation

- `MSBUILDTERMINALLOGGER=false dotnet build
tests/Aspire.Cli.EndToEnd.Tests/Aspire.Cli.EndToEnd.Tests.csproj -v q
-nologo` succeeded with 0 warnings and 0 errors.
- The affected E2E tests were **not run locally**: they need Docker plus
a Linux CLI archive, and Docker isn't available on the authoring
machine. The CLI E2E jobs in this PR's CI provide that validation.
- Root cause comes from the asciinema recordings and TRX files of CI run
44398134189 (#22401). In all four failures the terminal is blocked at
the CLI self-update `[Y/n]` prompt.

Fixes # (issue)

## Checklist

- Is this feature complete?
  - [x] Yes. Ready to ship.
  - [ ] No. Follow-up changes expected.
- Are you including unit tests for the changes and scenario tests if
relevant?
  - [x] Yes
  - [ ] No
- Did you add public API?
  - [ ] Yes
    - If yes, did you have an API Review for it?
      - [ ] Yes
      - [ ] No
- Did you add `<remarks />` and `<code />` elements on your triple slash
comments?
      - [ ] Yes
      - [ ] No
  - [x] No
- Does the change make any security assumptions or guarantees?
  - [ ] Yes
    - If yes, have you done a threat model and had a security review?
      - [ ] Yes
      - [ ] No
  - [x] No

---------

Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Pomelo.EntityFrameworkCore.MySql has not been updated since 9.0.0 (EF Core 9),
which forced Aspire.Pomelo.EntityFrameworkCore.MySql to pin EF Core 9
dependencies while the rest of the repo moves to newer versions. Switch to
Microting.EntityFrameworkCore.MySql, the maintained fork, which targets
EF Core 10.

The package is renamed to match:

- Aspire.Pomelo.EntityFrameworkCore.MySql -> Aspire.Microting.EntityFrameworkCore.MySql
- PomeloEntityFrameworkCoreMySqlSettings -> MicrotingEntityFrameworkCoreMySqlSettings
- Config section Aspire:Pomelo:EntityFrameworkCore:MySql -> Aspire:Microting:EntityFrameworkCore:MySql

The integration and its tests target net10.0 only, because Microting 10.x
requires EF Core 10 and no stable EF Core 11 release exists yet. Package
validation is disabled for the renamed package since it has no shipped baseline.

Fixes microsoft#22150

Existing users of Aspire.Pomelo.EntityFrameworkCore.MySql must switch to the
new package ID, rename the settings type, and move configuration to the
`Aspire:Microting:EntityFrameworkCore:MySql` section. Provider namespaces
changed from `Pomelo.EntityFrameworkCore.MySql.*` to
`Microting.EntityFrameworkCore.MySql.*`, which affects code that uses
provider APIs directly.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@bart-vmware

Copy link
Copy Markdown
Contributor Author

Eric Erhardt (@eerhardt) I'm sorry for the noise, I should have checked. The rebase should be good now.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@eerhardt

Copy link
Copy Markdown
Member

Thanks for the contribution here Bart Koelman (@bart-vmware)! I'll figure out what the test failures are and try to get this merged.

@eerhardt
Eric Erhardt (eerhardt) enabled auto-merge (squash) November 20, 2026 20:08
auto-merge was automatically disabled November 23, 2026 12:24

Head branch was pushed to by a user without write access

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@eerhardt

Copy link
Copy Markdown
Member

Bart Koelman (@bart-vmware) - can you merge main into this PR? (I'd do it myself, but since this PR was created from the SteeltoeOSS org, it won't let me modify the PR).

We had some bad tests that were fixed, so we need to get on the latest main to get the fixes so CI is clean.

@bart-vmware

Copy link
Copy Markdown
Contributor Author

Eric Erhardt (@eerhardt) Merged cleanly (no conflicts).

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@eerhardt
Eric Erhardt (eerhardt) merged commit 0daae1d into microsoft:main Nov 25, 2026
906 of 909 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.1 milestone Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Aspire.Pomelo.EntityFrameworkCore.MySql from the repo

2 participants