| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Wire observeTracingMessages and expectTracingMessages into the unified test format runner and vendor the spec's tracing fixtures, plus a resync-specs.sh entry to refresh them. Span attributes are plain Python primitives rather than the BSON-decoded documents the generic match evaluator compares against, so MatchEvaluatorUtil.match_span_attributes adapts them: ints widen to Int64 so the $$type "long" alias matches, and db.mongodb.lsid is rebuilt from its UUID string into the document shape the sessionLsid operator expects. The getMore fixture is held back for the change that adds getMore spans; the other 22 do not exercise getMore.
Cut each to the invariant a reader needs, dropping spec references and restatements of the code.
| Back | FazBrowse Home | New Git URL |
PYTHON-6036
Third of four PRs splitting #2964. Base is PYTHON-5947-otel-2-transactions.
Changes in this PR
Replaces hand-written assertions with the cross-driver spec suite, so the spans from PRs 1 and 2 are checked against the same fixtures every other driver runs.
The getMore fixture is held back for PR 4, which adds the support it needs. The other 22 do not exercise getMore.
Around 4,200 of the 4,600 added lines are resync-specs.sh output and another ~150 are generated mirrors, leaving roughly 190 lines to review.
The 22 vendored fixtures match mongodb/specifications master. Two needed fixing upstream first; both are merged in DRIVERS-3597.
The tree-wide ignoreExtraSpans rule is the one piece here not yet on master: it is specified in DRIVERS-3598 (specifications#1973), still open. PR 4's fixture depends on it, since without it that fixture's negative assertions are unenforceable.
Test Plan
Checklist
Checklist for Author
Checklist for Reviewer