Fix undeterministic order in modular dependencies (#39005)

* sort correctly

* Update modeling_minimax.py

* Update modular_model_converter.py
This commit is contained in:
Cyril Vallez
2025-06-24 17:04:33 +02:00
committed by GitHub
parent bdf5fb70aa
commit e1e11b0299
14 changed files with 236 additions and 1600 deletions

View File

@@ -1439,7 +1439,7 @@ class ModularFileMapper(ModuleMapper):
original_dependencies = []
other_files_dependencies = defaultdict(list)
for dep in tuple(missing_dependencies):
for dep in sorted(missing_dependencies):
if dep in self.added_objects_file_mapping:
file = self.added_objects_file_mapping[dep]
other_files_dependencies[file].append(dep)