[SERVER-49062] Investigate ninja build order for TEMPLATE aggregations Created: 24/Jun/20  Updated: 20/Jul/20  Resolved: 17/Jul/20

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

Type: Task Priority: Major - P3
Reporter: Daniel Moody Assignee: Daniel Moody
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Platform 2020-07-13, Dev Platform 2020-07-27
Participants:

 Description   

In SERVER-48966, it was observed that the TEMPLATE aggregation could be disrupting build order from converting things to and from dictionaries and lists. Investigate that the build order is preserved when updating the template inputs and outputs: https://github.com/mongodb/mongo/blob/c848b16c777e78fa3b21d7b0ad538ee2072346d4/site_scons/site_tools/ninja_next.py#L686-L699



 Comments   
Comment by Daniel Moody [ 17/Jul/20 ]

I investigated all places where the lists that the ninja generator iterates for TEMPLATE builds and anytime a list was generated from dictionary keys, the list was already sorted, so in conclusion the order or inputs and other aggregations will always be the same.

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