Skip to content

Bump Respawn from 6.2.1 to 7.0.0 - #225

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/BookTracker.Tests/Respawn-7.0.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/BookTracker.Tests/Respawn-7.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 11, 2026 •

Copy link
Copy Markdown
Contributor

Updated Respawn from 6.2.1 to 7.0.0.

Release notes

Sourced from Respawn's releases.

7.0.0

What's Changed

New Contributors

Full Changelog: jbogard/Respawn@v6.2.1...v7.0.0

Commits viewable in compare view.

@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels May 11, 2026
---
updated-dependencies:
- dependency-name: Respawn
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/nuget/BookTracker.Tests/Respawn-7.0.0 branch from 50a7653 to 96a6feb Compare May 11, 2026 11:41
N3rdage added a commit that referenced this pull request May 12, 2026
* chore(deps): upgrade bunit 1.40.0 → 2.7.2 with migration

Dependabot PR #221's bump failed CI on two breaking changes between
bunit 1.x and 2.x:

- TestContext renamed to BunitContext (CS0618 warning in 1.x → error
  in 2.x with treat-warnings-as-errors elsewhere; here it'd be
  obsolete-with-error CS0619 either way).
- RenderComponent<T>() obsoleted in favour of Render<T>() — same
  signature, just renamed; nine call sites in MudAuthorPickerTests.

Migration applied:

- ComponentTestBase now inherits BunitContext (was TestContext).
- All nine RenderComponent<MudAuthorPicker>() calls become
  Render<MudAuthorPicker>().

Runtime surprise the compile-fix didn't reveal: MudBlazor 8.x's
KeyInterceptorService and PointerEventsNoneService register as
IAsyncDisposable-only. bUnit 2.x's BunitContext.Dispose() calls the
ServiceProvider's sync Dispose path, which refuses async-only
services: "type only implements IAsyncDisposable. Use DisposeAsync
to dispose the container." All nine tests failed teardown with that
error.

Fix on ComponentTestBase: implement xUnit's IAsyncLifetime so the
disposal goes via DisposeAsync (Task return) which casts to
IAsyncDisposable and delegates to BunitContext's own DisposeAsync
(ValueTask return). `new` keyword on DisposeAsync because it hides
BunitContext's same-named method with a different return type —
acknowledged explicit shadow, not an accidental hide.

After: 9 / 9 component tests pass.

* chore(deps): upgrade Respawn 6.2.1 → 7.0.0 with migration

Dependabot PR #225's bump failed CI on a breaking API change:
Respawner.CreateAsync(string, ...) and ResetAsync(string) overloads
removed; both now require DbConnection.

Migration applied in TestDbContextFactory:

- Added Microsoft.Data.SqlClient using.
- WipeAndReseed now opens a fresh SqlConnection per invocation and
  passes it to both GetRespawner + ResetAsync. Respawn builds its
  FK graph at CreateAsync time and doesn't hold the connection
  afterwards, so a per-call open/dispose is fine; no need to share
  a connection across the two calls.
- GetRespawner signature now takes (SqlConnection) — the lazy init
  still races at most once (semaphore), still cached process-wide.

253 of 254 integration tests pass; 1 skipped (pre-existing, surname
case-insensitivity test that documented a limitation).

* chore(deps): defer Microsoft.ApplicationInsights.AspNetCore 3.x

Dependabot PR #222 (2.22.0 → 3.1.1) is not a routine bump — 3.x is a
full OpenTelemetry-based rewrite of the classic ApplicationInsights
SDK. ITelemetryInitializer (used by UserTelemetryInitializer.cs to
stamp Easy Auth user names onto telemetry items) is removed; the
entire concept is replaced with OpenTelemetry processors. Migration
needs a design pass over Program.cs's telemetry setup, not just a
version bump.

Resolution shape:

- .github/dependabot.yml gains an ignore rule for major-version bumps
  of this specific package. Minor / patch updates within 2.x keep
  auto-applying. Dependabot won't keep re-opening the same failing
  PR every week.
- TODO #42 captures the migration scope so the work isn't lost —
  replace UserTelemetryInitializer with BaseProcessor<Activity>
  reading IHttpContextAccessor, audit Program.cs's AddApplication-
  InsightsTelemetry call, verify codeless attach interaction.

When PR #222 closes (Dependabot will skip the major-bump pattern on
its next run), this loop closes.
@dependabot @github

dependabot Bot commented on behalf of github May 12, 2026

Copy link
Copy Markdown
Contributor Author

Looks like Respawn is no longer updatable, so this is no longer needed.

@dependabot dependabot Bot closed this May 12, 2026
@dependabot
dependabot Bot deleted the dependabot/nuget/BookTracker.Tests/Respawn-7.0.0 branch May 12, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants