Skip to content

Conversation

orlitzky
Copy link
Contributor

We currently run

sage: check_symbolic_expression_order(200)
sage: check_symbolic_expression_order(10000)  # long time

in succession, for a total of 10200 total repetitions of this random test. The second one is slow and is raising warnings in the CI:

2025-07-24T02:19:27.8495248Z ##[warning]slow doctest:
2025-07-24T02:19:27.8496718Z     check_symbolic_expression_order(10000)
2025-07-24T02:19:27.8497325Z Test ran for 34.32s cpu, 34.36s wall
2025-07-24T02:19:27.8498929Z Check ran for 0.00s cpu, 0.00s wall

This commit combines the two lines into a single test,

sage: check_symbolic_expression_order(500)  # long time

to eliminate the warning. We run these tests on every pull request, so if there is a problem, we will catch it eventually, even with fewer repetitions per run. And anyone messing with the ordering on SR can of course run the tests with as many repetitions as he likes.

We currently run

  sage: check_symbolic_expression_order(200)
  sage: check_symbolic_expression_order(10000)  # long time

in succession, for a total of 10200 total repetitions of this random
test. The second one is slow and is raising warnings in the CI:

  2025-07-24T02:19:27.8495248Z ##[warning]slow doctest:
  2025-07-24T02:19:27.8496718Z     check_symbolic_expression_order(10000)
  2025-07-24T02:19:27.8497325Z Test ran for 34.32s cpu, 34.36s wall
  2025-07-24T02:19:27.8498929Z Check ran for 0.00s cpu, 0.00s wall

This commit combines the two lines into a single test,

  sage: check_symbolic_expression_order(500)  # long time

to eliminate the warning. We run these tests on every pull request, so
if there is a problem, we will catch it eventually, even with fewer
repetitions per run. And anyone messing with the ordering on SR can of
course run the tests with as many repetitions as he likes.
@orlitzky orlitzky force-pushed the fewer-sr-ordering-reps branch from 974f59d to 4fc99c0 Compare July 24, 2025 13:10
@orlitzky orlitzky requested a review from user202729 July 24, 2025 13:10
vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 26, 2025
sagemathgh-40472: src/sage/symbolic/random_tests.py: fewer random test repetitions
    
We currently run

```
sage: check_symbolic_expression_order(200)
sage: check_symbolic_expression_order(10000)  # long time
```

in succession, for a total of 10200 total repetitions of this random
test. The second one is slow and is raising warnings in the CI:

```
2025-07-24T02:19:27.8495248Z ##[warning]slow doctest:
2025-07-24T02:19:27.8496718Z     check_symbolic_expression_order(10000)
2025-07-24T02:19:27.8497325Z Test ran for 34.32s cpu, 34.36s wall
2025-07-24T02:19:27.8498929Z Check ran for 0.00s cpu, 0.00s wall
```

This commit combines the two lines into a single test,

```
sage: check_symbolic_expression_order(500)  # long time
```

to eliminate the warning. We run these tests on every pull request, so
if there is a problem, we will catch it eventually, even with fewer
repetitions per run. And anyone messing with the ordering on SR can of
course run the tests with as many repetitions as he likes.
    
URL: sagemath#40472
Reported by: Michael Orlitzky
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 26, 2025
sagemathgh-40472: src/sage/symbolic/random_tests.py: fewer random test repetitions
    
We currently run

```
sage: check_symbolic_expression_order(200)
sage: check_symbolic_expression_order(10000)  # long time
```

in succession, for a total of 10200 total repetitions of this random
test. The second one is slow and is raising warnings in the CI:

```
2025-07-24T02:19:27.8495248Z ##[warning]slow doctest:
2025-07-24T02:19:27.8496718Z     check_symbolic_expression_order(10000)
2025-07-24T02:19:27.8497325Z Test ran for 34.32s cpu, 34.36s wall
2025-07-24T02:19:27.8498929Z Check ran for 0.00s cpu, 0.00s wall
```

This commit combines the two lines into a single test,

```
sage: check_symbolic_expression_order(500)  # long time
```

to eliminate the warning. We run these tests on every pull request, so
if there is a problem, we will catch it eventually, even with fewer
repetitions per run. And anyone messing with the ordering on SR can of
course run the tests with as many repetitions as he likes.
    
URL: sagemath#40472
Reported by: Michael Orlitzky
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 27, 2025
sagemathgh-40472: src/sage/symbolic/random_tests.py: fewer random test repetitions
    
We currently run

```
sage: check_symbolic_expression_order(200)
sage: check_symbolic_expression_order(10000)  # long time
```

in succession, for a total of 10200 total repetitions of this random
test. The second one is slow and is raising warnings in the CI:

```
2025-07-24T02:19:27.8495248Z ##[warning]slow doctest:
2025-07-24T02:19:27.8496718Z     check_symbolic_expression_order(10000)
2025-07-24T02:19:27.8497325Z Test ran for 34.32s cpu, 34.36s wall
2025-07-24T02:19:27.8498929Z Check ran for 0.00s cpu, 0.00s wall
```

This commit combines the two lines into a single test,

```
sage: check_symbolic_expression_order(500)  # long time
```

to eliminate the warning. We run these tests on every pull request, so
if there is a problem, we will catch it eventually, even with fewer
repetitions per run. And anyone messing with the ordering on SR can of
course run the tests with as many repetitions as he likes.
    
URL: sagemath#40472
Reported by: Michael Orlitzky
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 28, 2025
sagemathgh-40472: src/sage/symbolic/random_tests.py: fewer random test repetitions
    
We currently run

```
sage: check_symbolic_expression_order(200)
sage: check_symbolic_expression_order(10000)  # long time
```

in succession, for a total of 10200 total repetitions of this random
test. The second one is slow and is raising warnings in the CI:

```
2025-07-24T02:19:27.8495248Z ##[warning]slow doctest:
2025-07-24T02:19:27.8496718Z     check_symbolic_expression_order(10000)
2025-07-24T02:19:27.8497325Z Test ran for 34.32s cpu, 34.36s wall
2025-07-24T02:19:27.8498929Z Check ran for 0.00s cpu, 0.00s wall
```

This commit combines the two lines into a single test,

```
sage: check_symbolic_expression_order(500)  # long time
```

to eliminate the warning. We run these tests on every pull request, so
if there is a problem, we will catch it eventually, even with fewer
repetitions per run. And anyone messing with the ordering on SR can of
course run the tests with as many repetitions as he likes.
    
URL: sagemath#40472
Reported by: Michael Orlitzky
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 29, 2025
sagemathgh-40472: src/sage/symbolic/random_tests.py: fewer random test repetitions
    
We currently run

```
sage: check_symbolic_expression_order(200)
sage: check_symbolic_expression_order(10000)  # long time
```

in succession, for a total of 10200 total repetitions of this random
test. The second one is slow and is raising warnings in the CI:

```
2025-07-24T02:19:27.8495248Z ##[warning]slow doctest:
2025-07-24T02:19:27.8496718Z     check_symbolic_expression_order(10000)
2025-07-24T02:19:27.8497325Z Test ran for 34.32s cpu, 34.36s wall
2025-07-24T02:19:27.8498929Z Check ran for 0.00s cpu, 0.00s wall
```

This commit combines the two lines into a single test,

```
sage: check_symbolic_expression_order(500)  # long time
```

to eliminate the warning. We run these tests on every pull request, so
if there is a problem, we will catch it eventually, even with fewer
repetitions per run. And anyone messing with the ordering on SR can of
course run the tests with as many repetitions as he likes.
    
URL: sagemath#40472
Reported by: Michael Orlitzky
Reviewer(s):
@vbraun vbraun merged commit 6fdd6da into sagemath:develop Aug 2, 2025
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants