Repository navigation
ci: update TUnit to 1.90.5, enable adaptive parallelism and drop load-only test throttles - #2807
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedToo many files! This PR contains 202 files, which is 102 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This organization's CodeRabbit subscription is cancelled. Resubscribe in Billing to continue reviews beyond the free-tier limit.
|
|
The change is small and consistent with the repo guidelines. It makes two edits:
Rolling out to Notes, none of them blocking:
I'm not leaving any findings. |
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; the previous streaming timeout-protection issue is fixed. SummaryUpdates TUnit to 1.90.5, enables adaptive parallelism in CI, and removes test throttles while keeping exclusions for shared state.
Reviews (6) · Last reviewed commit: "test: restore streaming and Sentinel con..." · Reviewed by Greptile |
1.90.1 reworks experimental adaptive parallelism (thomhurst/TUnit#7916). Re-measure CI with it.
|
Verdict: CLEAR. I found no bugs. There is one description mismatch to fix, and I couldn't verify the TUnit 1.90.1 package. The change is two edits:
Description and diff disagree on the version. The title and body say TUnit 1.90.0. The diff pins The timing evidence is thin.
Rollout scope.
The change follows the repo guidelines: no changelog or design doc files are touched, and benchmark workflows are untouched. The earlier Claude and Greptile reviews raised no findings, and there are no inline review threads to check. |
…tate
TUnit adaptive parallelism now decides concurrency. Throttles that only
protected load, CPU or wall-clock budgets are gone; throttles that guard
shared mutable state remain, as narrow as the state allows.
Removed (load/resource protection only):
- ParallelLimiter<TimingSensitive> (Respire.Tests, Coordination): all 52
usages and both classes. Fake-server tests own their server and port.
- ParallelLimiter<DockerHeavy>: all 27 usages and the class. Each test
starts its own container; RespireContainerFixture retries host-port
collisions.
- ParallelLimiter<ChildProcessProbes> (8), NotInParallel(IsolatedProbe)
and the ChildProcessProbes/TestConstraints files: the probes run in
child processes.
- ParallelLimiter<ContainerTopology> and its class: dedicated Sentinel,
and the fixture retries port collisions.
- [assembly: ParallelLimiter<StreamingTestParallelLimit>] (limit 2 for the
whole Streaming assembly) and TestConcurrency.cs; README updated.
- NotInParallel(ClientCacheHits) x16: per-client hit counts, unique keys,
dedicated fixture; the stated reason was load delaying tracking replies.
- NotInParallel("signalr-integration") x3, one ReshardingKey use
(ClusterMultiKey moves no slots).
- Bare [NotInParallel] on tests that use their own fake server, pool,
database, container or child process, filter listeners to their own
port/exception, or cited thread-pool starvation, cold JIT or GC timing.
- --maximum-parallel-tests 2 in sentinel-routing-regressions.yml.
Narrowed:
- Class-level bare [NotInParallel] moved to only the methods that need it
(ConnectionMetric, ConnectionMetricCleanup, ErrorMetricFoundation,
ErrorObservation, RedisMetricSchema, BatchCommandRetry, ClusterReadyResponse,
ImmediateRetryState, ReceiveBuffer, SentinelCircuitDispatch,
StandaloneCommandRetry, TopologyCommandRetry, TransactionCommandRetry,
StandaloneCircuitDispatch, StandaloneReplicaReady, UnitRetryLifetime,
SE.Compat TransactionTests, and others).
- Bare to keyed: StandaloneCommandRetryIntegrationTests (CONFIG SET timeout
on its own server), StreamWorkerTelemetry metric-only tests (filter by
WorkerName), Aspire telemetry-disable cases (shared probe names).
Kept:
- Bare [NotInParallel] for process-global state: in-process allocation
measurement (no-GC region, AGENTS.md), RespireMetrics/RespireTracing
configuration, unfiltered Meter/Activity/EventListeners, tests asserting
RespireTelemetry.IsOperationEnabled/IsEnabled, static response pools,
ClusterSlotMutationClock static gate, Console.SetError, GIT_* env vars
(StableVersionTagTests), Hangfire's static RedisUtils connection.
- Keyed: ClientPause, ReshardingKey (slot moves on shared cluster),
ClusterKeyNotification (restarts a shared primary), CommandStatsKey,
CommandLogKey, SharedClusterSubscriptions, SearchProfile/HybridRedisVersions
(FT.DROPINDEX server bug on a shared server).
- RedisTestContainer's isolated-database pool and FakeRespServer's port gate
(correctness, not concurrency caps).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of the current headThe TUnit bump and the 1. The description no longer matches the diff (needs fixing)
2. Removing the caps is a separate, riskier change (split it out)
3.
|
|
Addressed the review of the throttle removals in 901d9b7 and the updated PR description.
The earlier package comparison used the previous head. The PR's validation section records the focused checks for this revision. |
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
I found nothing that needs action on head 901d9b7. I reviewed the diff and checked the head for leftovers. I did not build or run any tests.
Suggestion (non-blocking): the PR description says known flakes were seen once. Consider filing issues for |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Filed both intermittent failures from the Claude review. #2823 records the no-GC region diagnostics from the adaptive networking run. #2824 records the SignalR HTTP 500 from the fixed-parallelism smoke run. Each issue links the failing job and identifies the tested commit. |
|
Both reviewers cleared Once the maintainer resolves the Actions policy decision in #2821, restore the automatic review check, rerun the failed CI gate, and arm auto-merge on the reviewed head. |
TUnit 1.90.5 measurements before the streaming limiter was restored
Adaptive parallelism was enabled on both versions. Only the TUnit package versions changed in the measured pair. All measured workflows passed.
CI took 30m48s on 1.90.4 and 31m03s on 1.90.5. Selected test steps totalled 1,749 and 1,697 seconds. Control · Trial
Upstream feedback
TUnit 1.90.4 follow-up
An earlier revision updated TUnit from 1.90.2 to 1.90.4 to test the adaptive scheduling changes in thomhurst/TUnit#7938 on this repository’s CI.
Both workflows passed. Whole CI took 15m46s on 1.90.2 and 16m57s on 1.90.4. Summed across the unit, integration, analyzer, component, smoke, and StackExchange compatibility test steps, the times were 1,877 and 1,847 seconds (1.6% lower). The wall time includes runner queues and non-test jobs. Adaptive parallelism was enabled on both versions. Only the TUnit package pins changed. One paired run gives an initial estimate. More runs would establish its repeatability.
Control · 1.90.4 · Upstream feedback
Summary
ci.yml, through the workflow-levelTUNIT_ADAPTIVE_PARALLELISM: 1environment variable.[ParallelLimiter<TimingSensitive>](52),<DockerHeavy>(27),<ChildProcessProbes>(8) and<ContainerTopology>(1), with their classesClientCacheHits,"signalr-integration"andIsolatedProbekeys[NotInParallel]RespireMetrics.ConfigureandRespireTracingtestsIsOperationEnabledassertionsClusterSlotMutationClockConsole.SetError,GIT_*environment variables and Hangfire's staticRedisUtilsIf a test fails only with adaptive parallelism on, rerun it with
--maximum-parallel-testsset to the highest limit in that process's summary line.Earlier CI timing on TUnit 1.90.2
Three rounds, each running this branch (adaptive), a fixed-limit control of the same code, and
main(1.87.12, all throttles) at the same time. Test steps summed over all jobs, in seconds:mainmain, 2245 s fixed and 2198 s adaptive.Largest per-job changes, in seconds (
main→ this PR):Known flakes seen once
Neither failure shows shared state. Each happened once in 6 throttle-free runs:
ConcurrentResponseBarriersAllocateNothingAfterInitialization(adaptive run): the no-GC region ended early. The test still runs alone under[NotInParallel], so leftover background work from earlier tests is the likely cause.ClusterBackplaneTests.ClusterRoutesBroadcastMembershipAndClientResults(True, True)(fixed-limit run): HTTP 500 on the SignalR long-polling connect. It uses its own key prefix on the shared cluster.Validation
At 901d9b7, the streaming test project built for net10.0 and net11.0 with zero warnings. All 412 tests in the documented regression selection passed on net10.0 in fixed mode and on net11.0 in adaptive mode. TUnit reported that the streaming assembly limit stayed at two throughout the adaptive run. The Sentinel regression workflow matches the base version.
Earlier validation before the limits were restored:
dotnet build -c Releasesucceeds.Respire.Testson net11.0 with adaptive mode on: 14,909 tests, 0 failed.Upstream report: thomhurst/TUnit#7915 (comment)