Skip to content

chore(backend): atualizar pacotes para a última versão estável (Aspire 13.6.1) - #175

Merged
evertonschuster merged 1 commit into
mainfrom
chore/backend-update-packages
Oct 12, 2026
Merged

evertonschuster merged 1 commit into
mainfrom
chore/backend-update-packages

Conversation

@evertonschuster

@evertonschuster evertonschuster commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

O que muda

Atualiza os pacotes do backend que tinham versão estável nova. Nenhuma preview, conforme a ADR 0032.

Pacote De Para
Aspire (Aspire.AppHost.Sdk e Aspire.Hosting.JavaScript/PostgreSQL/Python) 13.6.0 13.6.1
FluentValidation (+ DependencyInjectionExtensions) 12.1.1 12.2.0
OpenIddict.AspNetCore / .EntityFrameworkCore 7.7.1 7.7.2
Scalar.AspNetCore 2.17.13 2.18.0
xunit.v3.mtp-off 4.0.1 4.0.2
xunit.runner.visualstudio 4.0.0 4.0.1

O Aspire 13.6.1 corrige o FTL Watch task over Kubernetes ContainerExec resources terminated unexpectedly, que aparecia uns 60 s depois de subir o AppHost. Era uma regressão do 13.6.0 (microsoft/aspire#20664, backport de #20466).

Não atualizados, de propósito:

  • Microsoft.OpenApi fica em 2.12.2, porque o Microsoft.AspNetCore.OpenApi 10.0.12 ainda exige [2.12.0, 3.0.0) e a 2.12.2 é a última da linha 2.x. A trava das ADRs 0032/0050 continua valendo.
  • O .NET SDK 10.0.401, o dotnet-ef 10.0.12 e os pacotes do .NET 10 (EF Core, ASP.NET Core, Microsoft.Extensions.*), além do Npgsql, OpenTelemetry e Serilog, já estavam na última versão estável.

Revisado nos changelogs

  • FluentValidation 12.2.0 corrige o PropertyPath dentro do .When() de um RuleForEach (FluentValidation#2363). Os validators de criar e editar pessoa atendida usam RuleForEach(...).SetValidator(...).When(...). A correção só afeta predicados que leem context.PropertyPath, e os nossos não leem. As chaves de erro indexadas que vão para o frontend (Guardians[0].Name, ReferenceContacts[0].Purposes[0]) já são cobertas por testes e continuam iguais.
  • OpenIddict 7.7.2 só mexe na integração com o Quartz.NET e no provedor web do Discord, e não usamos nenhum dos dois.

Como foi verificado

  • dotnet build backend/AdminBackend.slnx -c Release: 0 avisos, 0 erros.
  • dotnet test: verde, com o gate de cobertura (ServicesService.Tests 427, ServicesService.PersistenceTests 61, Admin.SharedKernel.Tests 228, Admin.Logging.Tests 36, IdentityService.Tests 19).
  • Contrato da API: nenhum pacote que gera o OpenAPI mudou (Microsoft.AspNetCore.OpenApi, Microsoft.OpenApi e Asp.Versioning ficaram iguais), então os tipos do frontend não foram regenerados.

Para o revisor

  • O AppHost não rodou localmente: a stack Aspire do desenvolvedor estava nas portas 5080, 5081 e 5173. O api-contract-check do frontend-ci sobe o AppHost quando backend/AppHost/ muda. Ele faz o smoke do Aspire 13.6.1 e compara os tipos byte a byte.
  • Primeira execução depois do merge: o dotnet run do AppHost baixa o CLI aspire.cli@13.6.1 via dotnet dnx e atualiza o bundle em ~/.aspire (ADR 0050). Quem estiver com a stack rodando precisa reiniciá-la para receber a correção do FTL.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the app’s underlying platform and supporting components, including hosting, database, identity, validation, and API documentation technologies.
    • These updates bring the application’s software foundations to newer versions. No user-facing features or behavior changes are included in this release.

…e 13.6.1)

- Aspire (Aspire.AppHost.Sdk e Aspire.Hosting.*) 13.6.0 -> 13.6.1, que
  corrige o FTL "Watch task over Kubernetes ContainerExec resources
  terminated unexpectedly" (microsoft/aspire#20664).
- FluentValidation 12.1.1 -> 12.2.0.
- OpenIddict 7.7.1 -> 7.7.2.
- Scalar.AspNetCore 2.17.13 -> 2.18.0.
- xunit.v3.mtp-off 4.0.1 -> 4.0.2, xunit.runner.visualstudio 4.0.0 -> 4.0.1.

Microsoft.OpenApi segue em 2.12.2: Microsoft.AspNetCore.OpenApi 10.0.12
ainda exige [2.12.0, 3.0.0) (ADR 0032/0050).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 79ee6ffc-5ad2-4f6d-9298-62e22d7154e6

📥 Commits

Reviewing files that changed from the base of the PR and between 0d25fe4 and 855bd92.


📒 Files selected for processing (2)
  • backend/AppHost/AppHost.csproj
  • backend/Directory.Packages.props

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.



📝 Walkthrough

Walkthrough

The Aspire AppHost SDK and centrally managed Aspire, OpenIddict, FluentValidation, Scalar.AspNetCore, and xUnit package versions are updated.

Changes

Package version updates

Layer / File(s) Summary
Update package versions
backend/AppHost/AppHost.csproj, backend/Directory.Packages.props
The Aspire AppHost SDK and centrally managed package versions are updated. Aspire packages move to 13.6.1; OpenIddict to 7.7.2; FluentValidation to 12.2.0; Scalar.AspNetCore to 2.18.0; and xUnit packages to 4.0.2 and 4.0.1.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other


Merge Risk: ⚪ Minimal · up to 855bd

The changes are limited to dependency updates, and the PR reports successful build and test validation. No concrete merge-blocking risk is established.

Pre-merge checks · Passed 5
Passed Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed O título descreve de forma clara e concisa a atualização dos pacotes do backend para versões estáveis e destaca o Aspire 13.6.1, que é a principal alteração.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@evertonschuster
evertonschuster merged commit 68b9932 into main Oct 12, 2026
17 checks passed
@evertonschuster
evertonschuster deleted the chore/backend-update-packages branch October 12, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant