Skip to content

Sort globbed tests for deterministic execution #955

@Hellenpac

Description

@Hellenpac

Describe the bug
Otter run returns grades for questions in a random order.
To Reproduce
Steps to reproduce the behavior:
On terminal, run: otter run -a autograder.zip assignment.ipynb

Expected behavior
Expected an ordered list of questions with their respective grades, like it used to be.
Versions
Python 3.13.5 and Otter v6.1.3

Additional context
Here is an example:
name score max_score
0 Public Tests NaN NaN
1 q3_2_3 3.0 3.0
2 q3_1_4 3.0 3.0
3 q3_3_2 3.0 3.0
4 q1_1_1 3.0 3.0
5 q3_1_1 3.0 3.0
6 q1_0 3.0 3.0
7 q1_1_4 3.0 3.0
8 q1_2_3 3.0 3.0
9 q3_2_2 3.0 3.0
10 q3_1_5 3.0 3.0
11 q2_1_2 3.0 3.0
12 q2_1_3 3.0 3.0
13 q3_1_8 3.0 3.0
14 q2_1_4 3.0 3.0
15 q2_1_5 3.0 3.0
16 q3_1_9 2.0 2.0
17 q4_1 0.0 3.0
18 q2_1_1 3.0 3.0
19 q1_1_3 3.0 3.0
20 q3_1_2 3.0 3.0
21 q3_2_1 3.0 3.0
22 q3_1_6 3.0 3.0
23 q1_2_1 3.0 3.0
24 q3_0 3.0 3.0
25 q3_3_1 3.0 3.0
26 q1_1_2 3.0 3.0
27 q3_1_3 3.0 3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions