Skip to content

Take pending dependency updates and fix Genie resume and timeout gaps - #191

Merged
ivanvyd merged 4 commits into
mainfrom
chore/dependency-and-review-batch
Nov 28, 2026
Merged

ivanvyd merged 4 commits into
mainfrom
chore/dependency-and-review-batch

Conversation

@ivanvyd

@ivanvyd ivanvyd commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

What this changes

One maintenance batch: the open Dependabot updates, and the defects a review of the 3.1.0 Genie
changes found.

Dependencies

Every NuGet Dependabot PR (#180, #181, #182, #183, #184, #190) failed dotnet restore --locked-mode: Dependabot cannot rewrite the lock files, and #181 also hit NU1109 because
Microsoft.AspNetCore.OpenApi 10.0.15 and Microsoft.AspNetCore.Mvc.Testing 10.0.15 need
Microsoft.OpenApi 2.13 and Microsoft.Extensions 10.0.15 above the central pins. This takes them
together and regenerates the lock files:

  • .NET 10 runtime packages (Microsoft.Extensions.*, EF Core, ASP.NET Core) to 10.0.15.
  • Azure.Core 1.65.0 on net10.0. The net8.0 floor (Azure.Core 1.44.1, Extensions 8.x) is unchanged.
  • Microsoft.Extensions.AI.OpenAI 11.0.1, OpenAI 2.15.0, Microsoft.Extensions.Diagnostics.Testing and
    TimeProvider.Testing 11.0.1, WireMock.Net 2.31.0. These come from dotnet/extensions, which versions
    independently: their net10.0 assets depend on Extensions 10.0.15, checked in the published nuspecs.
  • The direct Microsoft.OpenApi 2.7.5 pin is removed; AspNetCore.OpenApi 10.0.15 requires >= 2.13.0,
    above the GHSA-v5pm-xwqc-g5wc fix.
  • The security.yml bumps from Bump the minor-and-patch group across 1 directory with 3 updates #189 (dependency-review-action 5.0.1, scorecard-action 2.6.0), each SHA compared with its upstream tag. The ci.yml setup-cli bump stays in Bump the minor-and-patch group across 1 directory with 3 updates #189, because ci.yml is a confidentiality control that needs the owner's review label.

Not taken: the Microsoft.Extensions.* 11.0.0 runtime majors in #180 and #190 (DependencyInjection,
Logging.Abstractions, Options, Hosting.Abstractions). They would make every .NET 10 consumer load
.NET 11 assemblies over its shared framework. dependabot.yml now ignores majors of the packages that
track the runtime. Moving to .NET 11 is a target-framework decision for its own ADR.

Genie conversation fixes (from the 3.1.0 review)

  • QUERY_RESULT_EXPIRED was unmapped, so resuming an old checkpoint polled for the whole
    ResponseTimeout and returned TimedOut. It now maps to Completed, because only the result rows
    expired. The status comes from the Databricks SDK MessageStatus enum; live behaviour is not
    verified.
  • The typed client's two-minute HttpClient.Timeout is shorter than the ten-minute response
    deadline. A hung GET surfaced as a TaskCanceledException the caller never asked for, against the
    guide's contract. A wait now polls again, a single read throws TimeoutException, and a submission
    throws GenieResponseTimeoutException (acceptance unknown).
  • DeleteAsync skipped the ./.. identifier check that every other conversation operation has.
  • An invalid accepted identity from Genie threw ArgumentException (caller error); it is now
    InvalidOperationException.
  • Default interface methods return a faulted task instead of throwing synchronously.

Structure: the gate, identifier, ownership and tenant checks were hand-copied into seven methods and
had already drifted (the Delete gap). They are now one ordered AuthorizeAsync. Submission builds its
own path, and one ResponseDeadline.IsTimeout classifier replaces five catch sites.

Tests

  • New HttpClientLoggingTests pins in the default suite that all 11 library HTTP clients carry no
    logger, including one added afterwards with ConfigureHttpClientDefaults. Before, only the packaged
    consumer fixture, which CI does not run, covered this.
  • New cases for the fixes above. One existing WireMock polling test raced its fake deadline against
    real HTTP latency on a loaded machine; its clock-advance loop is now time-bounded and its deadline
    is out of reach.

Docs

The guide and the interface remarks now state that ownership records carry no tenant, so an owner
key must be unique across tenants. They also state that host-wide ConfigureHttpClientDefaults
loggers are removed from library clients.

Closes #180, closes #181, closes #182, closes #183, closes #184. #190 stays open for its 11.0.0 runtime majors; it is closed separately with the reason.

How it was verified

On Windows, .NET SDK 10.0.400, Docker 29.8.1, at 64afed2 before the cherry-pick:

  • dotnet restore --force-evaluate, then dotnet restore --locked-mode: exit 0.
  • dotnet build -c Release: 0 warnings, 0 errors.
  • dotnet test -c Release --filter "Category!=Live": 541 passed, 0 failed (9 m 53 s).
  • dotnet format --verify-no-changes: exit 0.
  • scripts/check-doc-links.sh and scripts/check-doc-claims.sh: exit 0.
  • GenieConversationTests failed 4 of 6 runs while the machine was loaded and passed 3 of 3 on unchanged main. A WireMock 2.30.0 rerun showed the failure did not come from that bump. The stack showed the fake deadline expiring during a real POST. After the test change: 6 of 6 passed, then the full run above.
  • The Genie status set was read from the Databricks Python SDK MessageStatus enum. The 11.x package dependencies were read from the published nuspecs on nuget.org.

Not verified: Genie behaviour on a live workspace for QUERY_RESULT_EXPIRED or a real per-request timeout. The new tests were not run against the old code; they are expected to fail there, from reading it.

Checklist

  • Tests cover the changed behaviour, and fail without the change (covered; failing without the change is reasoned, not run)
  • Touches tenant resolution, the query layer, or auth? A case was added to the cross-tenant isolation suite (TenantIsolation category)
  • Changes architecture or public API? No new API. The ADR 0035 behaviour is refined, not changed
  • Breaking change? None. The behaviour changes are listed in CHANGELOG.md
  • Changes the SQL or HTTP behavior? SemVer impact (patch) and the CHANGELOG.md entry were reviewed
  • No unapproved client/customer names, project codenames, environment identifiers, private paths, or other confidential context
  • Commits signed off (git commit -s)

ivanvyd and others added 4 commits November 28, 2026 05:50
Patch releases of the .NET 10 runtime packages to 10.0.15, Azure.Core 1.65.0 on
net10.0, Microsoft.Extensions.AI.OpenAI 11.0.1, OpenAI 2.15.0, the dotnet/extensions
testing packages 11.0.1 and WireMock.Net 2.31.0. The net8.0 floor is unchanged.

AspNetCore.OpenApi 10.0.15 requires Microsoft.OpenApi 2.13.0 or later, above the
GHSA-v5pm-xwqc-g5wc fix, so the direct 2.7.5 pin goes.

Dependabot no longer proposes majors of packages that track the .NET runtime:
moving the net10.0 floor to 11.x loads .NET 11 assemblies over every .NET 10
consumer's shared framework, which is a target-framework decision.

Signed-off-by: Ivan Vydrin <ivan.vydrin@techfabric.com>
- Map QUERY_RESULT_EXPIRED to Completed. A resumed message whose result
  rows had expired polled until ResponseTimeout and returned TimedOut.
- Classify the two-minute HttpClient.Timeout as a timeout, not as caller
  cancellation: a wait polls again, a read throws TimeoutException, and a
  submission throws GenieResponseTimeoutException (acceptance unknown).
- Validate the conversation ID in DeleteAsync like every other operation.
- Report an invalid accepted identity as InvalidOperationException.
- Return faulted tasks from the default interface methods.

The gate, identifier, ownership and tenant checks were copied into seven
methods and had drifted; they are now one ordered AuthorizeAsync, and one
ResponseDeadline.IsTimeout replaces five catch sites.

HttpClientLoggingTests pins in the default suite that all eleven library
clients carry no HTTP logger, including host-wide defaults added later.
The guide now states that owner keys must be unique across tenants.

Signed-off-by: Ivan Vydrin <ivan.vydrin@techfabric.com>
Bumps the minor-and-patch group with 3 updates in the / directory: [databricks/setup-cli](https://github.com/databricks/setup-cli), [actions/dependency-review-action](https://github.com/actions/dependency-review-action) and [ossf/scorecard-action](https://github.com/ossf/scorecard-action).

Updates `databricks/setup-cli` from 1.23.0 to 1.27.0
- [Commits](databricks/setup-cli@9625fdd...12452ad)

Updates `actions/dependency-review-action` from 5.0.0 to 5.0.1
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](actions/dependency-review-action@a1d282b...bbc44d1)

Updates `ossf/scorecard-action` from 2.5.0 to 2.6.0
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](ossf/scorecard-action@fa7117d...23f22cd)

---
updated-dependencies:
- dependency-name: databricks/setup-cli
  dependency-version: 1.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: actions/dependency-review-action
  dependency-version: 5.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: ossf/scorecard-action
  dependency-version: 2.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Ivan Vydrin <ivan.vydrin@techfabric.com>
ci.yml is a confidentiality control that only the repository owner may approve. The setup-cli 1.27.0 bump stays in #189; the security.yml bumps from it remain here.

Signed-off-by: Ivan Vydrin <ivan.vydrin@techfabric.com>
@ivanvyd
ivanvyd merged commit 3ae1106 into main Nov 28, 2026
15 checks passed
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