[DRIVERS-2644] Downgrade to the lowest supported schema version Created: 07/Jun/23  Updated: 28/Oct/23  Resolved: 13/Jun/23

Status: Closed
Project: Drivers
Component/s: Unified Test Runner
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Jérôme Tamarelle Assignee: Jérôme Tamarelle
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by PHPLIB-1063 Add a test that drivers emit a Comman... Closed
Related
related to DRIVERS-2649 Ensure unified spec tests use the low... Backlog
Driver Changes: Not Needed

 Description   

Summary

When a new schema version is introduced in unified-test-format, new spec documents tend to be stamped with the latest version even if the document does not use the new fields of the new versions.

Example with command-logging-and-monitoring/tests/monitoring/writeConcernError, this file is valid with schemaVersion 1.4 but it have been created with schemaVersion 1.13

Motivation

Who is the affected end user?

Driver developers have to implement the test logic of the new versions even if their task is to implement an unified test case that doesn't require it. Alternatively the "max supported schema version" can be artificially updated.

https://github.com/mongodb/mongo-php-library/pull/1090#discussion_r1213254002

How does this affect the end user?

Require more work than necessary for driver developers.

How likely is it that this problem or use case will occur?

Every time a new unified test is added without checking the minimum schema version required.

If the problem does occur, what are the consequences and how severe are they?

Developer efficiency or test reliability issue.

Is this issue urgent?

No.

Is this ticket required by a downstream team?

No.

Is this ticket only for tests?

Yes.

Acceptance Criteria

What specific requirements must be met to consider the design phase complete?



 Comments   
Comment by Jérôme Tamarelle [ 13/Jun/23 ]

"schemaVersion" updated in unified spec test files. This doesn't need to be sync with driver tests.

Comment by Githook User [ 13/Jun/23 ]

Author:

{'name': 'Jérôme Tamarelle', 'email': 'jerome@tamarelle.net', 'username': 'GromNaN'}

Message: DRIVERS-2644 Downgrade unified test files to the lowest supported schema version (#1431)

CI Script to be created later as part of DRIVERS-2649
Branch: master
https://github.com/mongodb/specifications/commit/3880a6ab41d495c1fbe88b49f2d67347ea128dd2

Comment by Jérôme Tamarelle [ 12/Jun/23 ]

https://github.com/mongodb/specifications/pull/1431

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