Skip to content

Native Node.js and Mongoose compatibility profiles - #9

Closed
udsmicrosoft wants to merge 3 commits into
documentdb:mainfrom
udsmicrosoft:users/urismiley/compatibility-nodejs
Closed

udsmicrosoft wants to merge 3 commits into
documentdb:mainfrom
udsmicrosoft:users/urismiley/compatibility-nodejs

Conversation

@udsmicrosoft

@udsmicrosoft udsmicrosoft commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add native Node.js driver and Mongoose model compatibility profiles using integrity-checked npm archives, reviewed lockfiles, offline client installation, and a pinned Node runtime. Both use the shared execution, result, and provenance contracts rather than independent success criteria.

The native-driver profile exercises collection APIs, while the Mongoose profile exercises model APIs and ODM-specific behavior. Profile inventory, reviewed versions, version policies, and required scenarios are defined in compatibility/registry.yaml.

Scope

  • nodejs (MongoDB Node.js driver 7.7.0, profile node24-linux-x64-async) and mongoose (Mongoose 9.11.0, profile node24-linux-x64-mongoose) registry entries, each with 17 required scenarios. Mongoose covers model creation, document save, schema indexes, and schema validation alongside the shared CRUD, cursor, aggregation, error, and BSON scenarios.
  • Shared JavaScript client and reporting helpers with explicit assertion, operation, timeout, setup, and cleanup classification.
  • npm verification: every locked archive must come from registry.npmjs.org and match its SHA-512 integrity before an offline install. The reviewed lockfile and JavaScript client and reporting code are part of the execution-input digest.
  • Workflow selection, scheduled and DocumentDB-release runs, CI, and README dashboard integration, including Node.js and Mongoose badges in the root README.
  • No changes to existing playground applications, scripts, tests, READMEs, connection settings, or interactive behavior.

The registered npm versions are pinned to reviewed manifests and lockfiles. A newer npm release is not eligible to run until its lockfile is reviewed.

Review order

Depends on #11. Stack order: #11 reporting -> #9 JavaScript integrations -> #10 watcher.

Merge after #11. Until then, Files changed also shows #11's two commits. This PR's own change is a single commit: 471c9d5 (27 files).

Validation

  • Python 3.12 formatting, import ordering, lint, and type checks; 368 infrastructure tests (67 added here).
  • 34 Node 24 tests covering JavaScript reporting and dashboard freshness, plus actionlint and ShellCheck.
  • Live run of this branch (471c9d5) on the fork: workflow run. PyMongo 4.18.0, Node.js driver 7.7.0, and Mongoose 9.11.0 each passed 17/17 required scenarios on DocumentDB 0.117.0 (51/51 total).
  • Failure demonstration on the fork: workflow run. Each profile reported its intentional failure as a labeled demonstration (17/18), and the run failed as expected.
  • The README publisher on main ingested the normal run without errors and rendered Working badges for all three integrations. It ignored the demonstration.

AI disclosure

GitHub Copilot assisted with the implementation and ran the automated validation described above.

  • AI assistance and automated validation are disclosed.
  • Human review of the npm verification and scenario coverage.
  • Contributor has personally reproduced the relevant checks.

@udsmicrosoft udsmicrosoft changed the title Add native Node.js and Mongoose compatibility profiles Port native Node.js and Mongoose compatibility profiles Oct 12, 2026
@udsmicrosoft udsmicrosoft changed the title Port native Node.js and Mongoose compatibility profiles Native Node.js and Mongoose compatibility profiles Oct 12, 2026
Copilot-Session: ea872837-0dd4-45cb-8cbe-b421717a6a16
Signed-off-by: urismiley <urismiley@microsoft.com>
Copilot-Session: 6a136a8e-6b75-48b4-b09d-ed8ccafbb07d
Signed-off-by: urismiley <urismiley@microsoft.com>
Copilot-Session: ea872837-0dd4-45cb-8cbe-b421717a6a16
Signed-off-by: urismiley <urismiley@microsoft.com>
@udsmicrosoft
udsmicrosoft force-pushed the users/urismiley/compatibility-nodejs branch from e9d9d44 to 471c9d5 Compare November 3, 2026 01:18
@udsmicrosoft

Copy link
Copy Markdown
Contributor Author

Superseded by #13, which combines this work into a single PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant