[SERVER-71572] Verify window_functions_on_timeseries_coll.js correctness Created: 23/Nov/22  Updated: 29/Oct/23  Resolved: 30/Nov/22

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

Type: Bug Priority: Major - P3
Reporter: Yujin Kang Park Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File window_functions_on_timeseries_coll.log    
Issue Links:
Depends
is depended on by SERVER-68710 arrayEq/anyEq behave incorrectly with... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

See failure log attached (as the current assert doesn't print anything, I generated this locally).

Base off SERVER-68710 PR to verify directly.

Participants:

 Description   

jstests\aggregation\sources\setWindowFields\window_functions_on_timeseries_coll.js

SERVER-68710 is addressing an issue with arrayEq (and related helpers in jstests/aggregation/extras/utils.js), where comparison of Object subtypes (NumberLong, ObjectId, ...) always evaluated to true.

And this test fails on patch runs:

https://spruce.mongodb.com/task/mongodb_mongo_master_enterprise_windows_all_feature_flags_required_cqf_passthrough_patch_007aef8fa15b3c54019708ddaa36098d61462e06_637cd0f5e3c331777896fa42_22_11_22_13_40_03/tests?execution=0&sortBy=STATUS&sortDir=ASC

Also consider use of assertArrayEq, which will print the expected vs actual objects.
Example:

    assertArrayEq({expected: expectedResults, actual: coll.aggregate(pipeline).toArray()});

In this particular instance, it might only be a typo, but please check.
https://github.com/10gen/mongo/blob/master/jstests/aggregation/sources/setWindowFields/window_functions_on_timeseries_coll.js#L190



 Comments   
Comment by Githook User [ 30/Nov/22 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-71572 Fix typo in window functions test over timeseries collection
Branch: master
https://github.com/mongodb/mongo/commit/45ab51e980fbd19aea4674cc0009e914001555e1

Generated at Thu Feb 08 06:19:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.