-
-
Couldn't load subscription status.
- Fork 680
Activate/fix rpy2 tests #35396
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
Activate/fix rpy2 tests #35396
Conversation
|
Documentation preview for this PR (built with commit 11833d8; changes) is ready! 🎉 |
This reverts commit 9990302.
…s of each test" This reverts commit deadf97.
|
Otherwise lgtm. |
|
There is a genuine failure: |
|
Is that from the conda test? I added the package name here, but that will only take effect after updating the conda-lock files (as done and to be redone in #37998) |
|
OK. Thanks. |
|
Thanks! |
sagemathgh-35396: Activate/fix rpy2 tests <!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes sagemath#12345", use "Add a new method to multiply two integers" --> ### 📚 Description <!-- Describe your changes here in detail. --> As a follow-up on: - sagemath#35237 we make `rpy2` a dynamically detected feature, enabling the automatic run of doctests tagged `# optional - rpy2`; we use a file-level doctest tag for the `r.py` file. We also update the spkg documentation for sagemath#35347 <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> Resolves sagemath#35347 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] 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 accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> - Depends on sagemath#35237 <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#35396 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee, Matthias Köppe
sagemathgh-35396: Activate/fix rpy2 tests <!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes sagemath#12345", use "Add a new method to multiply two integers" --> ### 📚 Description <!-- Describe your changes here in detail. --> As a follow-up on: - sagemath#35237 we make `rpy2` a dynamically detected feature, enabling the automatic run of doctests tagged `# optional - rpy2`; we use a file-level doctest tag for the `r.py` file. We also update the spkg documentation for sagemath#35347 <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> Resolves sagemath#35347 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] 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 accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> - Depends on sagemath#35237 <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#35396 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee, Matthias Köppe
sagemathgh-35396: Activate/fix rpy2 tests <!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes sagemath#12345", use "Add a new method to multiply two integers" --> ### 📚 Description <!-- Describe your changes here in detail. --> As a follow-up on: - sagemath#35237 we make `rpy2` a dynamically detected feature, enabling the automatic run of doctests tagged `# optional - rpy2`; we use a file-level doctest tag for the `r.py` file. We also update the spkg documentation for sagemath#35347 <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> Resolves sagemath#35347 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] 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 accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> - Depends on sagemath#35237 <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#35396 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee, Matthias Köppe
These are causing some doctest failures after sagemath#35396
These are causing some doctest failures after sagemath#35396 ``` ********************************************************************** File "/usr/lib/python3.12/site-packages/sage/interfaces/r.py", line 51, in sage.interfaces.r Failed example: v = 2*x+y+1; v Expected: [1] 32.2 17.8 10.3 20.2 66.1 21.8 22.6 12.8 16.9 50.8 43.5 Got: R[write to console]: Además: R[write to console]: Aviso: <BLANKLINE> R[write to console]: In sage10 + sage6 : R[write to console]: <BLANKLINE> R[write to console]: longitud de objeto mayor no es múltiplo de la longitud de uno menor <BLANKLINE> [1] 32.2 17.8 10.3 20.2 66.1 21.8 22.6 12.8 16.9 50.8 43.5 ********************************************************************** File "/usr/lib/python3.12/site-packages/sage/interfaces/r.py", line 78, in sage.interfaces.r Failed example: r(-17).sqrt() Expected: [1] NaN Got: R[write to console]: Además: R[write to console]: Aviso: <BLANKLINE> R[write to console]: In sqrt(sage10) : R[write to console]: Se han producido NaNs <BLANKLINE> [1] NaN ********************************************************************** File "/usr/lib/python3.12/site-packages/sage/interfaces/r.py", line 356, in sage.interfaces.r._setup_r_to_sage_converter Failed example: r(-17).sqrt().sage() Expected: nan Got: R[write to console]: Además: R[write to console]: Aviso: <BLANKLINE> R[write to console]: In sqrt(sage4) : R[write to console]: Se han producido NaNs <BLANKLINE> nan ********************************************************************** ``` URL: sagemath#38294 Reported by: Antonio Rojas Reviewer(s): Matthias Köppe
sagemathgh-38294: Filter out R warnings These are causing some doctest failures after sagemath#35396 ``` ********************************************************************** File "/usr/lib/python3.12/site-packages/sage/interfaces/r.py", line 51, in sage.interfaces.r Failed example: v = 2*x+y+1; v Expected: [1] 32.2 17.8 10.3 20.2 66.1 21.8 22.6 12.8 16.9 50.8 43.5 Got: R[write to console]: Además: R[write to console]: Aviso: <BLANKLINE> R[write to console]: In sage10 + sage6 : R[write to console]: <BLANKLINE> R[write to console]: longitud de objeto mayor no es múltiplo de la longitud de uno menor <BLANKLINE> [1] 32.2 17.8 10.3 20.2 66.1 21.8 22.6 12.8 16.9 50.8 43.5 ********************************************************************** File "/usr/lib/python3.12/site-packages/sage/interfaces/r.py", line 78, in sage.interfaces.r Failed example: r(-17).sqrt() Expected: [1] NaN Got: R[write to console]: Además: R[write to console]: Aviso: <BLANKLINE> R[write to console]: In sqrt(sage10) : R[write to console]: Se han producido NaNs <BLANKLINE> [1] NaN ********************************************************************** File "/usr/lib/python3.12/site-packages/sage/interfaces/r.py", line 356, in sage.interfaces.r._setup_r_to_sage_converter Failed example: r(-17).sqrt().sage() Expected: nan Got: R[write to console]: Además: R[write to console]: Aviso: <BLANKLINE> R[write to console]: In sqrt(sage4) : R[write to console]: Se han producido NaNs <BLANKLINE> nan ********************************************************************** ``` URL: sagemath#38294 Reported by: Antonio Rojas Reviewer(s): Matthias Köppe
📚 Description
As a follow-up on:
sage.features: Addsage.libs.singular, features for standard Python packages #35237we make
rpy2a dynamically detected feature, enabling the automatic run of doctests tagged# optional - rpy2; we use a file-level doctest tag for ther.pyfile.We also update the spkg documentation for #35347
Resolves #35347
📝 Checklist
⌛ Dependencies
sage.features: Addsage.libs.singular, features for standard Python packages #35237