[SERVER-63427] Create a pass-through python hook that augments ShardingTest with no-Config Created: 08/Feb/22  Updated: 06/Dec/22  Resolved: 28/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Andrew Shuvalov (Inactive) Assignee: [DO NOT USE] Backlog - Sharding NYC
Resolution: Won't Fix Votes: 0
Labels: sharding-nyc-subteam2, sharding-nyc-subteam2-catalog-poc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63426 Create a separate file with hook to r... Closed
is depended on by SERVER-63429 Create a `patch_only` test suite that... Closed
is depended on by SERVER-63598 Umbrella ticket for minimal POC for o... Closed
Assigned Teams:
Sharding NYC
Sprint: Sharding 2022-02-21
Participants:
Story Points: 3

 Description   

This is a continuation of SERVER-63426 and is blocked by it. The goal is to be able to add a test suite for all existing tests with hybrid config server.

One way could be to have a Python hook that allows to run a pass-through suite that that replaces the ShardingTest constructor with our constructor. All examples of existing hooks are here.

Find the way how to `eval()` the augmented constructor from SERVER-63426 for every test that runs with this hook. One possible example is hello_failures.py that I did before, however it is not an exact match because the goal is to run something like loading hooks in programs.py . Some work is required to find the best pattern.


Generated at Thu Feb 08 05:57:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.