Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/plugin/python/transformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ export class DocspecTransformer {
docspecModules as unknown as { name: string },
);

// Sort modules by name so the sequential IDs assigned by `SymbolIdTracker` are deterministic across
// runs (`PythonLoader` traversal order is filesystem-dependent and reshuffles IDs across CI machines).
const sortedModules = [...docspecModules].sort((a, b) => a.name.localeCompare(b.name));

// Convert all the modules, store them in the root object
for (const module of docspecModules) {
for (const module of sortedModules) {
this.walkAndTransform({
currentDocspecNode: module,
moduleName: module.name,
Expand Down
Loading