-
-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest configuration broken with pytest 8.x; failures in Build & Test CI #37536
Labels
Milestone
Comments
vbraun
pushed a commit
to vbraun/sage
that referenced
this issue
May 26, 2024
… in `src/conftest_test.py`) <!-- ^ 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". --> Frequently seen in the CI, for example https://github.com/sagemath/sage/ actions/runs/9055116851/job/24875749181?pr=37862#step:12:27 ``` Doctesting files changed since last git commit No files to doctest Features detected for doctesting: Running pytest on ['/sage/src'] with options [] ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0 rootdir: /sage/src configfile: tox.ini plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7 collected 63 items / 2 skipped src/conftest_test.py .F [ 3%] src/sage/doctest/parsing_test.py ........... [ 20%] src/sage/manifolds/differentiable/examples/symplectic_space_test.py .... [ [26](https://github.com/sagemath/sage/actions/runs/9055116851/job/2487 5749181?pr=37862#step:12:27)%] [ 26%] src/sage/manifolds/differentiable/symplectic_form_test.py .............. [ 49%] ..................... [ 82%] src/sage/manifolds/differentiable/tensorfield_paral_test.py . [ 84%] src/sage/numerical/backends/cvxopt_backend_test.py .. [ 87%] src/sage/numerical/backends/glpk_backend_test.py .. [ 90%] src/sage/numerical/backends/glpk_exact_backend_test.py .. [ 93%] src/sage/numerical/backends/interactivelp_backend_test.py .. [ 96%] src/sage/numerical/backends/ppl_backend_test.py .. [100%] =================================== FAILURES =================================== ______________ TestPytestSageScript.test_invoke_on_inputtest_file ______________ self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0> def test_invoke_on_inputtest_file(self): result = subprocess.run( ["sage", "--pytest", input_file], capture_output=True, text=True, ) > assert result.returncode == 1 # There are failures in the input test E assert 2 == 1 E + where 2 = CompletedProcess(args=['sage', '--pytest', PosixPath('/sage/src/conftest_inputtest.py')], returncode=2, stdout="======...n !!!!!!!!!!!!!!!!!!!!\n=============================== 1 error in 0.18s ===============================\n", stderr='').returncode src/conftest_test.py:40: AssertionError =========================== short test summary info ============================ FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt est_file ============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https ://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3 7862#step:12:38)) ==============Running pytest on ['/sage/src'] with options [] ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0 rootdir: /sage/src configfile: tox.ini plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7 collected 63 items / 2 skipped src/conftest_test.py .F [ 3%] src/sage/doctest/parsing_test.py ........... [ 20%] src/sage/manifolds/differentiable/examples/symplectic_space_test.py .... [ 26%] [ 26%] src/sage/manifolds/differentiable/symplectic_form_test.py .............. [ 49%] ..................... [ 82%] src/sage/manifolds/differentiable/tensorfield_paral_test.py . [ 84%] src/sage/numerical/backends/cvxopt_backend_test.py .. [ 87%] src/sage/numerical/backends/glpk_backend_test.py .. [ 90%] src/sage/numerical/backends/glpk_exact_backend_test.py .. [ 93%] src/sage/numerical/backends/interactivelp_backend_test.py .. [ 96%] src/sage/numerical/backends/ppl_backend_test.py .. [100%] =================================== FAILURES =================================== ______________ TestPytestSageScript.test_invoke_on_inputtest_file ______________ self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0> def test_invoke_on_inputtest_file(self): result = subprocess.run( ["sage", "--pytest", input_file], capture_output=True, text=True, ) > assert result.returncode == 1 # There are failures in the input test E assert 2 == 1 E + where 2 = CompletedProcess(args=['sage', '--pytest', PosixPath('/sage/src/conftest_inputtest.py')], returncode=2, stdout="======...n !!!!!!!!!!!!!!!!!!!!\n=============================== 1 error in 0.18s ===============================\n", stderr='').returncode src/conftest_test.py:40: AssertionError =========================== short test summary info ============================ FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt est_file ============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https ://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3 7862#step:12:38)) ============== ``` - Fixes sagemath#37536. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] 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#37999 Reported by: Matthias Köppe Reviewer(s): Nathan Dunfield
vbraun
pushed a commit
to vbraun/sage
that referenced
this issue
May 29, 2024
… in `src/conftest_test.py`) <!-- ^ 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". --> Frequently seen in the CI, for example https://github.com/sagemath/sage/ actions/runs/9055116851/job/24875749181?pr=37862#step:12:27 ``` Doctesting files changed since last git commit No files to doctest Features detected for doctesting: Running pytest on ['/sage/src'] with options [] ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0 rootdir: /sage/src configfile: tox.ini plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7 collected 63 items / 2 skipped src/conftest_test.py .F [ 3%] src/sage/doctest/parsing_test.py ........... [ 20%] src/sage/manifolds/differentiable/examples/symplectic_space_test.py .... [ [26](https://github.com/sagemath/sage/actions/runs/9055116851/job/2487 5749181?pr=37862#step:12:27)%] [ 26%] src/sage/manifolds/differentiable/symplectic_form_test.py .............. [ 49%] ..................... [ 82%] src/sage/manifolds/differentiable/tensorfield_paral_test.py . [ 84%] src/sage/numerical/backends/cvxopt_backend_test.py .. [ 87%] src/sage/numerical/backends/glpk_backend_test.py .. [ 90%] src/sage/numerical/backends/glpk_exact_backend_test.py .. [ 93%] src/sage/numerical/backends/interactivelp_backend_test.py .. [ 96%] src/sage/numerical/backends/ppl_backend_test.py .. [100%] =================================== FAILURES =================================== ______________ TestPytestSageScript.test_invoke_on_inputtest_file ______________ self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0> def test_invoke_on_inputtest_file(self): result = subprocess.run( ["sage", "--pytest", input_file], capture_output=True, text=True, ) > assert result.returncode == 1 # There are failures in the input test E assert 2 == 1 E + where 2 = CompletedProcess(args=['sage', '--pytest', PosixPath('/sage/src/conftest_inputtest.py')], returncode=2, stdout="======...n !!!!!!!!!!!!!!!!!!!!\n=============================== 1 error in 0.18s ===============================\n", stderr='').returncode src/conftest_test.py:40: AssertionError =========================== short test summary info ============================ FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt est_file ============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https ://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3 7862#step:12:38)) ==============Running pytest on ['/sage/src'] with options [] ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0 rootdir: /sage/src configfile: tox.ini plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7 collected 63 items / 2 skipped src/conftest_test.py .F [ 3%] src/sage/doctest/parsing_test.py ........... [ 20%] src/sage/manifolds/differentiable/examples/symplectic_space_test.py .... [ 26%] [ 26%] src/sage/manifolds/differentiable/symplectic_form_test.py .............. [ 49%] ..................... [ 82%] src/sage/manifolds/differentiable/tensorfield_paral_test.py . [ 84%] src/sage/numerical/backends/cvxopt_backend_test.py .. [ 87%] src/sage/numerical/backends/glpk_backend_test.py .. [ 90%] src/sage/numerical/backends/glpk_exact_backend_test.py .. [ 93%] src/sage/numerical/backends/interactivelp_backend_test.py .. [ 96%] src/sage/numerical/backends/ppl_backend_test.py .. [100%] =================================== FAILURES =================================== ______________ TestPytestSageScript.test_invoke_on_inputtest_file ______________ self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0> def test_invoke_on_inputtest_file(self): result = subprocess.run( ["sage", "--pytest", input_file], capture_output=True, text=True, ) > assert result.returncode == 1 # There are failures in the input test E assert 2 == 1 E + where 2 = CompletedProcess(args=['sage', '--pytest', PosixPath('/sage/src/conftest_inputtest.py')], returncode=2, stdout="======...n !!!!!!!!!!!!!!!!!!!!\n=============================== 1 error in 0.18s ===============================\n", stderr='').returncode src/conftest_test.py:40: AssertionError =========================== short test summary info ============================ FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt est_file ============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https ://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3 7862#step:12:38)) ============== ``` - Fixes sagemath#37536. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] 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#37999 Reported by: Matthias Köppe Reviewer(s): Nathan Dunfield
vbraun
pushed a commit
to vbraun/sage
that referenced
this issue
May 31, 2024
… in `src/conftest_test.py`) <!-- ^ 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". --> Frequently seen in the CI, for example https://github.com/sagemath/sage/ actions/runs/9055116851/job/24875749181?pr=37862#step:12:27 ``` Doctesting files changed since last git commit No files to doctest Features detected for doctesting: Running pytest on ['/sage/src'] with options [] ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0 rootdir: /sage/src configfile: tox.ini plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7 collected 63 items / 2 skipped src/conftest_test.py .F [ 3%] src/sage/doctest/parsing_test.py ........... [ 20%] src/sage/manifolds/differentiable/examples/symplectic_space_test.py .... [ [26](https://github.com/sagemath/sage/actions/runs/9055116851/job/2487 5749181?pr=37862#step:12:27)%] [ 26%] src/sage/manifolds/differentiable/symplectic_form_test.py .............. [ 49%] ..................... [ 82%] src/sage/manifolds/differentiable/tensorfield_paral_test.py . [ 84%] src/sage/numerical/backends/cvxopt_backend_test.py .. [ 87%] src/sage/numerical/backends/glpk_backend_test.py .. [ 90%] src/sage/numerical/backends/glpk_exact_backend_test.py .. [ 93%] src/sage/numerical/backends/interactivelp_backend_test.py .. [ 96%] src/sage/numerical/backends/ppl_backend_test.py .. [100%] =================================== FAILURES =================================== ______________ TestPytestSageScript.test_invoke_on_inputtest_file ______________ self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0> def test_invoke_on_inputtest_file(self): result = subprocess.run( ["sage", "--pytest", input_file], capture_output=True, text=True, ) > assert result.returncode == 1 # There are failures in the input test E assert 2 == 1 E + where 2 = CompletedProcess(args=['sage', '--pytest', PosixPath('/sage/src/conftest_inputtest.py')], returncode=2, stdout="======...n !!!!!!!!!!!!!!!!!!!!\n=============================== 1 error in 0.18s ===============================\n", stderr='').returncode src/conftest_test.py:40: AssertionError =========================== short test summary info ============================ FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt est_file ============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https ://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3 7862#step:12:38)) ==============Running pytest on ['/sage/src'] with options [] ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0 rootdir: /sage/src configfile: tox.ini plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7 collected 63 items / 2 skipped src/conftest_test.py .F [ 3%] src/sage/doctest/parsing_test.py ........... [ 20%] src/sage/manifolds/differentiable/examples/symplectic_space_test.py .... [ 26%] [ 26%] src/sage/manifolds/differentiable/symplectic_form_test.py .............. [ 49%] ..................... [ 82%] src/sage/manifolds/differentiable/tensorfield_paral_test.py . [ 84%] src/sage/numerical/backends/cvxopt_backend_test.py .. [ 87%] src/sage/numerical/backends/glpk_backend_test.py .. [ 90%] src/sage/numerical/backends/glpk_exact_backend_test.py .. [ 93%] src/sage/numerical/backends/interactivelp_backend_test.py .. [ 96%] src/sage/numerical/backends/ppl_backend_test.py .. [100%] =================================== FAILURES =================================== ______________ TestPytestSageScript.test_invoke_on_inputtest_file ______________ self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0> def test_invoke_on_inputtest_file(self): result = subprocess.run( ["sage", "--pytest", input_file], capture_output=True, text=True, ) > assert result.returncode == 1 # There are failures in the input test E assert 2 == 1 E + where 2 = CompletedProcess(args=['sage', '--pytest', PosixPath('/sage/src/conftest_inputtest.py')], returncode=2, stdout="======...n !!!!!!!!!!!!!!!!!!!!\n=============================== 1 error in 0.18s ===============================\n", stderr='').returncode src/conftest_test.py:40: AssertionError =========================== short test summary info ============================ FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt est_file ============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https ://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3 7862#step:12:38)) ============== ``` - Fixes sagemath#37536. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] 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#37999 Reported by: Matthias Köppe Reviewer(s): Nathan Dunfield
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/sagemath/sage/actions/runs/8126496765/job/22210315057?pr=37401#step:14:25
On closer look, our
pytest
integration is completely broken.The text was updated successfully, but these errors were encountered: