Repository navigation
Accept a capability baseline and compare the manual with it weekly - #4582
Open
evanchooly wants to merge 2 commits into
Open
evanchooly wants to merge 2 commits into
evanchooly wants to merge 2 commits into
Conversation
Capability discovery over the whole reference at mongodb/docs e4b0c153 is READY with every context healthy once the discovery plan records its reviewed assignments and omissions. The accepted catalog and a coverage plan of today's identities and minimums, with reviewed bindings and exclusions, form the baseline. discover.sh now acquires the manual at the clone's commit, discovers its capabilities, inventories core's API and writes a coverage report, and the Publish job files its missing-API and version-annotation findings.
…rom coverage They run only on Atlas, report on the deployment rather than query data, or work only on encrypted fields, so the weekly job files no issue for them. Each exclusion carries its reason; the facets of the excluded stages are excluded with them.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 6 of the operator-audit plan, drafted for your review as you asked. Stacked on #4581.
Problem
Capability coverage (which operators, contexts and versions the manual declares, compared with Morphia's API) was built but never ran. It needs an accepted baseline: a reviewed snapshot later runs are held to, so a lost operator or a count drop shows up. Until there is one, no
MISSING_APIorVERSION_ANNOTATIONfinding can be published.What discovery found
At mongodb/docs
e4b0c153, the commit of the example inventory, the first run was PARTIAL:14 link failures.
$merge,$out,$redactand$textlink tocore/,tutorial/andimages/pages outside the request. The source request now covers the wholereference/tree and those directories.24 definitions no catalog page lists. The manual's catalog pages omit them. The discovery plan now carries reviewed decisions, each with a reason:
assignments(22):$serializeEJSON,$deserializeEJSON,$subtype,$unsetField, and the 8.3 array forms of$top,$bottomand$bottomN;$scoreand$scoreFusion;$text;$rank,$shiftand$locf.omissions(2):$vectorSearch's page declares its stage with the expression directive, and the stage is already in the stages catalog;$optionsis a parameter of$regex.CatalogDiscoverysupports both: an assignment places the definition in its context, a stale review is its own problem, and the plan validates reasons and duplicates.Rerun with those, discovery is READY: 346 capabilities, all 8 contexts healthy, no discovery problems.
The baseline
These files go in
audits/catalog/:discovery-plan.json: the probe's catalog rules plus the reviews above.capability-catalog.json: the 346 capabilities with their evidence.coverage-plan.json:$push's$position,$sliceand$sorttoPushOptions;$,$[]and$[<identifier>](field-path syntax, with no factory) and for$substr(a deprecated alias of$substrBytes).The coverage report against core's API is COMPARED: 231 typed, 41 missing, 102 unmapped and 5 excluded.
What the weekly job would file
43 issues:
MISSING_API, all genuine gaps:$serializeEJSON,$toObject,$hash,$sigmoid,$similarity*,$encStr*, ...);$search,$searchMeta,$vectorSearch,$rankFusion,$scoreFusion,$score);$queryStatsand its sections,$querySettings,$listSessions,$listClusterCatalog, ...);$minMaxScaler.VERSION_ANNOTATION:TypeExpressions.toUuidhas no server-version annotation (the manual says 8.0), andDocumentsdeclares 5.1 where the manual now says 6.0.Weekly wiring
audits/discover.sh: after generation, it acquires the manual at the clone's commit (audits/config/manual-baseline-sources.jsonwith that revision), parses it with the pinned Snooty adapter, discovers under the committed plan, inventories core's API, and writescoverage.json. The summary gains a coverage section.operator-discovery.yml: the docs clone widens its sparse set (all ofreference/,core/,tutorial/,images/, and thesource/code-examplessymlink), and the job installs the pinned Python anduv. The Publish job also files the coverage findings, with the same journal.documented-examples.json: gains one include ($redact's image include, now resolvable).Update: exclusions
As you decided, the coverage plan excludes, each with its reason:
$search,$searchMeta,$vectorSearch,$rankFusion,$scoreFusion,$score,$listSearchIndexes);$queryStats,$querySettings,$listSessions,$listLocalSessions,$listSampledQueries,$listClusterCatalog,$shardedDataDistribution,$changeStreamSplitLargeEvent);$encStr*).That's 32 exclusions including their facets. The weekly job would now file 14
MISSING_APIissues, all for new server expressions, plus the two version annotations, which are fixed in Morphia in the next PR.Decisions for review
discovery-plan.jsonare mine, especially treating the 12 window functions as window-only and omitting$vectorSearch's expression directive.UNKNOWN_MAPPING. Their API tags don't settle which factory builds them. They're neither filed nor counted as present until explicit bindings are reviewed. That's the next coverage work.Verification
audits/discover.shfrom this branch, run locally on a clone ate4b0c153: the inventory diff is empty, and coverage is COMPARED with all contexts healthy and the same states.CapabilityBaselineTest: the plan validates, the catalog has no problems, and every expected identity, binding and exclusion is in the catalog, with minimums equal to the counts.Self-reviewed only: the independent reviewers are out of quota until 2026-11-26.