Repository navigation
Resolve tested snippets and keep only mongosh content when reading pages - #4570
Open
evanchooly wants to merge 1 commit into
Open
evanchooly wants to merge 1 commit into
evanchooly wants to merge 1 commit into
Conversation
103 operator pages were skipped: their examples are tested snippets that io-code-block and literalinclude directives name, or sit beside other drivers' tabs whose remote shared includes the extractor rejected. Page reading now keeps only the shell tab of each tabs-drivers set and the selected-content chosen for shell, then splices in the named snippet and include files, recording each with its blob. fetch.py pages follows those targets and the discovery clone includes the snippet tree. The inventory at the same docs commit now reads 297 pages; no example on the pages read before changed, and generation is unchanged.
This was referenced Nov 23, 2026
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 5 of the operator-audit plan: the snippet resolver, listed as the largest remaining unlock. Stacked on #4569.
Problem
The example inventory skipped 103 of 300 operator pages, most of the stage pages among them:
$medianhas.. tabs-drivers::set or a composable tutorial's.. selected-content::blocks. The C# tab's remote shared includes (.. sharedinclude:: dbx/csharp/...) merged into the example and were rejected, which took the shell example down with them.Discovery couldn't see new or renamed examples on those pages, and generation couldn't consider them.
Change
FormMigration.shellTabskeeps only the mongosh content: theshelltab of each.. tabs-drivers::set, and the.. selected-content::blocks selected forshell, each re-indented to its directive. Every drivers-tab set in the manual has ashelltab.FormMigration.snippetssplices in the files that.. input::,.. output::and.. literalinclude::name under/code-examples/or/includes/as inline blocks:source/code-examples/testedis a repository symlink to../../../../code-examples/tested, so snippets are read fromcontent/code-examples;:language:,:category:,:copyable:,:visible:and:emphasize-lines:; nothing selects lines;..segments are refused.fetch.py pagesfollows those targets. The discovery workflow and the README's clone add/content/code-examples/tested/(9.2 MB) to the sparse checkout.e4b0c153. Otherwise the first weekly run would treat every newly visible unowned example as new and file aNEW_EXAMPLEissue for each.Result
interface,search,searchMeta)$matchbinding and 5 on$unwind. The weekly job will file those asMISSING_BINDINGissues.audits/discover.shfrom this commit reproduces the committed inventory byte for byte (inventory.diffis empty).Decisions for review
db.moviesfromsample_mflix) and print elided results (_id: ..., trailing...). They extract like any other example, and generation will report them as gaps; the runner doesn't load sample datasets. Of 303 mongosh snippet inputs, 186 read a sample dataset.Verification
SnippetsTest: shell-tab and selected-content selection, snippet and include splicing with blobs, an absent target left in place, and..refused.Self-reviewed only: the independent reviewers are out of quota until 2026-11-26.