Add mongo evalya full-coverage fixture #25423
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #25423"
general
weight: 0.35
HadhemiDD
What does this PR do?
TL;DR: Adds a
mongo-fullevalya fixture (mongo/tests/evalya.yaml): the smallest sharded MongoDB 8.0 cluster that exercises both the mongos and the replica-set collectors, a seed, and a continuous workload that includes lock contention. Stacked on #25153 (onboard-evalya skill). Test fixtures only.shard01with a primary (shard-a) and a hidden delayed secondary (shard-b: priority 0, votes 0,secondaryDelaySecs5) so replication lag andrepl.counters move; mongos; asocatentrypoint forwarding 27017 (mongos), 27018 (shard-a), 27019 (shard-b), same pattern as #25224.seed.sh: adds the shard, creates thedatadoguser, seeds a pre-split sharded collection with indexes.activity-gen.sh: a mixed workload through mongos (inserts, indexed and scan queries, getMores, updates, aggregates, deletes, periodic DDL, a long-lived session), plus lock contention inlockdrill:- on shard-a: a slow
$wherewriter holding intent locks, two fast writers anddbStats, and a holder every 3s runningcreateIndexes/dropIndexes,dbHash, a cross-databaserenameCollection, and anfsynclock;- through mongos: a capped insert (Metadata X) and
setUserWriteBlockModeon then off (Global X).logicalSessionRefreshMillis=10000, sosessions.countappears within a short run.Knobs (Compose interpolation, read from the environment of the
evalya run, e.g.LOCK_DRILL=0 evalya run ...orevalya run -e LOCK_DRILL=0 ...):| Variable | Default | Effect |
|---|---|---|
|
MONGO_VERSION|8.0| Image tag for every mongo service (6.0+). ||
DB_USERNAME/DB_PASSWORD|datadog/datadog| Monitoring user created byseed. ||
ACTIVITY_GEN|1|0keepsactivity-genup but idle. ||
LOCK_DRILL|1|0skips thefsynclock and thesetUserWriteBlockModeholder; the rest of the lock contention still runs. |Side effect of the lock drill:
setUserWriteBlockModewithglobal: trueblocks all user writes cluster-wide for its window, every 3s. That includes the fixture's ownactivity-geniteration, the shard holder's index build (logged, restarted 5s later), and any consumer writing through the forwarded ports. Read-only scrapers are not blocked.LOCK_DRILL=0opts out. An exit trap kills the holders and runsfsyncUnlockthensetUserWriteBlockModeoff, best effort, so stoppingactivity-genmid-window does not leave the cluster blocked.ACTIVITY_DURATION(script-only, not passed by the compose file) is documented in the README.Motivation
semantic-core's FTF federates
-fullfixtures (redis-full, rabbitmq-full #25224) to compare the Datadogmongocheck with the OTelmongodbreceiver. Mongo had no evalya fixture, and the existingmongo-shard.yamlcompose (11 mongods, no healthchecks,docker execinit) is not usable as one. The lock workload exists because serverStatus reportslocks.<type>.acquireWaitCountandtimeAcquiringMicrosonly after an acquisition waits, which one-at-a-time traffic never causes, so the comparator had no data on either side for 27 lock metric pairs.Validation
mongodbreceiver(MongoDB 8.0.32, three 15s windows,LOCK_DRILL=1). The other 6 read modes 8.0 never acquires in steady state (MetadataR,oplogR, and waits onoplogw); the README records why.- dashboard and monitor metrics: 29/29 emitted, 25 non-zero with
agent check mongo(Agent 7.83.1, three instances: mongos, primary, secondary). The 4 zeros:chunks.jumbo,globallock.currentqueue.{readers,writers},extra_info.page_faultsps. The two queue gauges are point-in-time, and the lock workload queues operations only in ~100ms bursts, so they are still expected to read 0 at scrape time; that expectation is reasoned, not measured.-
metadata.csv: 221/328 emitted, 162 non-zero.- OTel
mongodbreceiver(otelcol-contrib 0.161.0, all metrics enabled): 50/52 emitted, 43 non-zero.LOCK_DRILL, live on this head:-
LOCK_DRILL=1: shard-aserverStatus().locksshowed non-zeroacquireWaitCountfor Global, Database, and Collection in all four modes. With anfsynclock held by hand,docker stoponactivity-genreturned in 0.5s, loggedlock drill released, thefsyncLockWorkerlock was gone, and a write through mongos succeeded.-
LOCK_DRILL=0: the container gotLOCK_DRILL=0, the log showedlock drill disabledand 40+ iterations with noUserWritesBlockedand no failures. Database, Collection, and Metadata lock fields were still populated; the Global wait fields were absent, since the drill's holders are the only Global S/X requests.evalya manifest validate --path mongo/tests/evalya.yaml: OK (warnings: ignoredrestart:policies, no registry mirror).ddev --no-interactive test --lint mongo: pass. Tests-only change, no changelog.MONGO_VERSION,ACTIVITY_GEN=0.Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged🤖 Generated with Claude Code