Skip to content

feat: run sql-server queries through tedious with per-call transaction guards #11327

Description

@kyle-sexton

Parent

Refs #9849

Depends on

Outcome

Queries run on SQL Server through tedious with the plugin's own pool and per-call guards that leave no transaction open, proven against a fake tedious connection.

Demo: run the plugin's unit-test command; each guard, discard rule, timeout and row-cap case passes.

Decisions

Key interfaces

  • The executor interface from slice B.

Done when

  • The plugin's unit tests against a fake tedious connection exit 0 with a case for each: the leading IF @@TRANCOUNT > 0 ROLLBACK; XACT_ABORT ON, READ COMMITTED and LOCK_TIMEOUT set; autocommit; discard when @@TRANCOUNT is above 0 after the call; discard after a timeout, a cancel and an error; at most two pooled connections with idle ones closed; the agent application name; sql-login and entra-default auth; the request timeout and the row cap each cancelling the request
  • git grep -l '"tedious"' -- 'plugins/sql-server/**/package.json' prints at least one path
  • ci-status is green on the PR head

Out of scope

Activity

  1. added
    agent-ready
    on Oct 30, 2026
  2. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue run that agent-ready started failed or was cancelled before it reported, or it stopped or the token broker refused it because its workflow files differ from main's. work-unblock removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.

  3. added
    agent-ready
    and removed
    agent-ready
    on Oct 31, 2026
  4. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor
    No description provided.
  5. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-ready

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions