You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SQL Server 7,000-row bulk-copy test times out intermittently on CI since the parallel limiter was removed #479
Dapper_business_commands_and_outbox_rows_commit_atomically_in_one_batch in tests/Relayer.Outbox.SqlServer.Tests/AdoNetEnlistmentTests.cs timed out on CI in both its sync and async cases. Each commits 7,000 outbox rows through SqlBulkCopy, and the copy hit SqlClient's default 30-second bulk-copy timeout. It is intermittent: the three other CI runs I saw that included the same main passed.
This started after #472 removed the suite's ParallelLimiter of 4, whose comment said it protected exactly this timeout under CI contention. AGENTS.md does not allow putting the limiter back, so the test needs a fix of its own.
failed Dapper_business_commands_and_outbox_rows_commit_atomically_in_one_batch(True) (31s 593ms)
SqlException: Execution Timeout Expired. ... Operation cancelled by user. The statement has been terminated.
at Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(DbDataReader reader)
at Relayer.Outbox.SqlServer.SqlServerOutboxBatch.Execute() SqlServerOutboxBatch.cs:61
at Relayer.Outbox.SqlServer.SqlServerOutboxTransaction.Commit() SqlServerOutboxTransaction.cs:65
The (False) case failed the same way. Locally (macOS ARM64, Docker Desktop) the whole project passed three times without the limiter, in 21-23s.
What to find out
Why a 7,000-row copy takes over 30s on the runner. Whole-machine starvation (every test project runs at once on 4 vCPUs) and something blocking inside SQL Server look different in the server's wait stats; capture them on a failing run.
SqlServerOutboxBatch creates its SqlBulkCopy without setting BulkCopyTimeout, so applications get the 30s default whatever command timeout they configured. Decide whether that should follow the caller's configuration; if it should, the test can then set its own budget.
Expected
The test passes reliably on CI without a suite-wide concurrency limit.
Red-main follow-up: main run 42822068563 fails only both 7,000-row SQL Server atomic-batch cases at SqlBulkCopy timeout. Fresh origin/main still uses 7,000 rows. #482 remains the focused fix with Closes #479; #485 investigates production bulk-copy performance and does not replace this test fix.
The earlier wait ended: 42822850989 completed with the SQL Server tests passing, but Pub/Sub Reconnect failed with ResponseEnded during reconnect and shutdown. #482 is now draft. Released main-ci and attempted the blocker-first route, but acquire pr-482 returned HELD/exit 3: another worker owns the fix and its CI recovery. No competing implementation or rerun was started.
Already-implemented and supersession routes do not apply: the test fix is absent from main, #479 remains open with its original acceptance criterion, and #482 delivers it. This is a recurring test failure, not demonstrated infrastructure eligible for a main rerun; dispatching main before the fix merges would not resolve it. No parent closure, stale-scope rewrite, human decision, or upstream release gate applies. Current blocker is [locked] #482, not waiting for the completed run. No on-hold label added. All owned locks released at unit completion.
Activity
thomhurst commentedon Nov 10, 2026
Red-main follow-up: main run 42822068563 fails only both 7,000-row SQL Server atomic-batch cases at SqlBulkCopy timeout. Fresh origin/main still uses 7,000 rows. #482 remains the focused fix with Closes #479; #485 investigates production bulk-copy performance and does not replace this test fix.
The earlier wait ended: 42822850989 completed with the SQL Server tests passing, but Pub/Sub Reconnect failed with ResponseEnded during reconnect and shutdown. #482 is now draft. Released main-ci and attempted the blocker-first route, but acquire pr-482 returned HELD/exit 3: another worker owns the fix and its CI recovery. No competing implementation or rerun was started.
Already-implemented and supersession routes do not apply: the test fix is absent from main, #479 remains open with its original acceptance criterion, and #482 delivers it. This is a recurring test failure, not demonstrated infrastructure eligible for a main rerun; dispatching main before the fix merges would not resolve it. No parent closure, stale-scope rewrite, human decision, or upstream release gate applies. Current blocker is [locked] #482, not waiting for the completed run. No on-hold label added. All owned locks released at unit completion.
Shrink the SQL Server one-batch test to 1,000 rows (closes #479)
Recover the live Pub/Sub reconnect fixture after native failure (refs #…
Keep SQL Server atomic-batch fixture focused on its contract (refs #532…
Keep frozen control runner baselines pinned (#532)