Repository navigation
Replace Pomelo MySQL EF Core provider with Microting fork - #22362
Eric Erhardt (eerhardt) merged 4 commits into
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22362Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22362" |
|
CI restore currently fails with NU1101 because Could a maintainer please import it with the
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. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
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. |
|
Reopening to move MySQL EF support forward. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Eric Erhardt (eerhardt)
left a comment
There was a problem hiding this comment.
One minor comment, then we should be able to merge this once CI is green.
|
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. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Bart Koelman (@bart-vmware) - I just noticed that this is targeting release/17.0. Can you retarget it to |
270152a to
f0623ba
Compare
|
Rebased. |
Eric Erhardt (eerhardt)
left a comment
There was a problem hiding this comment.
A couple rebase/merge conflicts got mistakenly made. Can you fix them?
## 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]>
Co-authored-by: Eric Erhardt <[email protected]>
f0623ba to
ac7baaa
Compare
|
Eric Erhardt (@eerhardt) I'm sorry for the noise, I should have checked. The rebase should be good now. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Thanks for the contribution here Bart Koelman (@bart-vmware)! I'll figure out what the test failures are and try to get this merged. |
Head branch was pushed to by a user without write access
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
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. |
|
Eric Erhardt (@eerhardt) Merged cleanly (no conflicts). |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
0daae1d
into
microsoft:main
Description
Pomelo.EntityFrameworkCore.MySqlhas not been updated since 9.0.0 (EF Core 9), which forcedAspire.Pomelo.EntityFrameworkCore.MySqlto pin EF Core 9 dependencies while the rest of the repo moves to newer versions. Switch toMicroting.EntityFrameworkCore.MySql, the maintained fork, which targets EF Core 10.The package is renamed to match:
Aspire.Pomelo.EntityFrameworkCore.MySql->Aspire.Microting.EntityFrameworkCore.MySqlPomeloEntityFrameworkCoreMySqlSettings->MicrotingEntityFrameworkCoreMySqlSettingsAspire:Pomelo:EntityFrameworkCore:MySql->Aspire:Microting:EntityFrameworkCore:MySqlThe 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.MySqlmust switch to the new package ID, rename the settings type, and move configuration to theAspire:Microting:EntityFrameworkCore:MySqlsection. Provider namespaces changed fromPomelo.EntityFrameworkCore.MySql.*toMicroting.EntityFrameworkCore.MySql.*, which affects code that uses provider APIs directly.Fixes #22150
Checklist
<remarks />and<code />elements on your triple slash comments?