Skip to content

Conversation

mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented May 31, 2024

Hopefully fixes #38116 @jhpalmieri

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

Copy link

Documentation preview for this PR (built with commit 3947d9a; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@jhpalmieri
Copy link
Member

jhpalmieri commented May 31, 2024

With this (plus #38081), make ptestlong-nodoc still produces errors:

sage -t --long --warn-long 23.9 --random-seed=107822812964695469795409383677904579428 src/sage/doctest/forker.py  # 5 doctests failed
sage -t --long --warn-long 23.9 --random-seed=107822812964695469795409383677904579428 src/sage/doctest/control.py  # 7 doctests failed

make ptestlong-nodoc TEST_FILES=src/sage/doctest/ results in two errors for control.py.

(I am also still seeing errors as reported in #35646, but I've edited those out. I haven't seen all tests pass on an OS X machine in months.)

@jhpalmieri
Copy link
Member

I have these environment variables set:

MAKE='make -j8'
MAKEFLAGS=-j8
SAGE_DOCBUILD_OPTS=' --no-plot'
SAGE_TIMEOUT_LONG=800

I don't think I set anything else that could be relevant.

@jhpalmieri
Copy link
Member

If I unset MAKE and MAKEFLAGS, then make ptestlong-nodoc TEST_FILES=src/sage/doctest/ produces no failures. I'll try make ptestlong-nodoc. If I unset these and try to compile Sage, it builds the packages serially, and so it takes much longer, although it still doctests in parallel. Is there a good solution to this?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 31, 2024

Do you still see any of those "JSON" errors?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 31, 2024

What is command -v make on your machine?

@jhpalmieri
Copy link
Member

jhpalmieri commented May 31, 2024

Tests pass with make ptestlong if I don't set MAKE or MAKEFLAGS. (They might have passed without this PR, too — I haven't checked.)

% command -v make
/usr/bin/make

and

% `command -v make` -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

@jhpalmieri
Copy link
Member

Do you still see any of those "JSON" errors?

No.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 31, 2024

OK, then I think the failures that show as "Doctest interrupted" are a separate issue.
Let's get this fix in

@jhpalmieri
Copy link
Member

Actually with MAKE and MAKEFLAGS unset, I don't see the errors even without this branch. This won't hurt, though, so we can merge it.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 1, 2024

Thanks!

vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 3, 2024
sagemathgh-38122: `sage.doctest.control`: In doctests, use Python floats for stats
    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Hopefully fixes sagemath#38116 @jhpalmieri

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#38122
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 4, 2024
sagemathgh-38122: `sage.doctest.control`: In doctests, use Python floats for stats
    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Hopefully fixes sagemath#38116 @jhpalmieri

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#38122
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 5, 2024
sagemathgh-38122: `sage.doctest.control`: In doctests, use Python floats for stats
    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Hopefully fixes sagemath#38116 @jhpalmieri

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#38122
Reported by: Matthias Köppe
Reviewer(s):
@vbraun vbraun merged commit 1f7efa0 into sagemath:develop Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OS X: "make ptestlong" with MAKE set leads to doctest failures in the doctest/ directory
3 participants