Skip to content

Framework upstream 1: Restructure into documentdb_tests/ package with core/ test hierarchy#4

Merged
nitinahuja89 merged 1 commit intodocumentdb:mainfrom
eerxuan:pr/restructure-package
Mar 20, 2026
Merged

Framework upstream 1: Restructure into documentdb_tests/ package with core/ test hierarchy#4
nitinahuja89 merged 1 commit intodocumentdb:mainfrom
eerxuan:pr/restructure-package

Conversation

@eerxuan
Copy link
Copy Markdown
Contributor

@eerxuan eerxuan commented Mar 16, 2026

Move all source files under documentdb_tests/ top-level package to make the package a python module.
Reorganize tests into the core/ folder structure following the MongoDB documentation hierarchy.

Structure:
  documentdb_tests/
    conftest.py
    pytest.ini
    framework/              # Shared testing framework
    compatibility/
      result_analyzer/      # Test result analysis tools
      tests/
        core/
          collections/capped_collections/
          operator/stages/{group,match}/
          query-and-write/commands/{find,insert}/

File moves (no content changes beyond import paths):

  • framework/ -> documentdb_tests/framework/
  • result_analyzer/ -> documentdb_tests/compatibility/result_analyzer/
  • tests/collection/ -> tests/core/collections/capped_collections/
  • tests/aggregate/ -> tests/core/operator/stages/{group,match}/
  • tests/find/ -> tests/core/query-and-write/commands/find/
  • tests/insert/ -> tests/core/query-and-write/commands/insert/

Add docs/testing/FOLDER_STRUCTURE.md documenting the layout.

@eerxuan eerxuan requested a review from a team as a code owner March 16, 2026 23:52
@eerxuan eerxuan changed the title Restructure into documentdb_tests/ package with core/ test hierarchy Framework upstream 1: Restructure into documentdb_tests/ package with core/ test hierarchy Mar 20, 2026
@nitinahuja89
Copy link
Copy Markdown
Collaborator

Docker image build is failing - Can you please fix that.

Copy link
Copy Markdown
Collaborator

@nitinahuja89 nitinahuja89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the docker build failure

@eerxuan eerxuan force-pushed the pr/restructure-package branch from 09ebfc6 to 770b904 Compare March 20, 2026 19:27
@eerxuan eerxuan force-pushed the pr/restructure-package branch 2 times, most recently from 4dc3567 to 148b9b6 Compare March 20, 2026 23:07
Move all source files under documentdb_tests/ top-level package and
reorganize tests into the core/ folder structure following the MongoDB
documentation hierarchy.

Structure:
  documentdb_tests/
    conftest.py
    pytest.ini
    framework/              # Shared testing framework
    compatibility/
      result_analyzer/      # Test result analysis tools
      tests/
        core/
          collections/capped_collections/
          operator/stages/{group,match}/
          query-and-write/commands/{find,insert}/

File moves (no content changes beyond import paths):
- framework/ -> documentdb_tests/framework/
- result_analyzer/ -> documentdb_tests/compatibility/result_analyzer/
- tests/collection/ -> tests/core/collections/capped_collections/
- tests/aggregate/ -> tests/core/operator/stages/{group,match}/
- tests/find/ -> tests/core/query-and-write/commands/find/
- tests/insert/ -> tests/core/query-and-write/commands/insert/

Add docs/testing/FOLDER_STRUCTURE.md documenting the layout.

Signed-off-by: Yunxuan Shi <yunxuan@amazon.com>
@eerxuan eerxuan force-pushed the pr/restructure-package branch from 148b9b6 to e6a43c5 Compare March 20, 2026 23:11
@nitinahuja89 nitinahuja89 merged commit 9fc9c6e into documentdb:main Mar 20, 2026
1 check passed
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.

4 participants