-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix to failing PETSc compile in tests #76
base: master
Are you sure you want to change the base?
Conversation
Update install.sh
Test seemed to fail for v3.10 but might pass for others. Want to see if petsc and petsc4py successful compile now that pip is pinned to 23.0.1.
Suggestion from warning message: ```DEPRECATION: petsc4py is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559```
Lets see if this one still fails to build petsc!
@Neutrino155 you're a wizard if this works haha, thank you! Yes the PETSc tests take a while but we're well below the timeout limit of 6 hours, and they have worked in the past. I would love to reduce the amount of time these things take to run but I'm not sure how without compromising some of the tests! |
@matthewcarbone almost! Unfortunately seems to be just a partial fix. It still fails for Python versions 3.10 and 3.11! I introduced https://github.com/Neutrino155/GGCE/actions/runs/4892412153/jobs/8734137644 It seems to fix the tests for Python versions 3.7, 3.8 and 3.9 but still fails for 3.10 and 3.11. 3.10 seems to refuse to fall back to the legacy mode and reproduces the error:
3.11 builds |
Is it possible to split up the tests perhaps? It would be nice for users if there were a "quick" (less than 10 minutes ideally) test suite to go alongside the longer test suites for PETSc etc. This would be beneficial for quicker iterative testing. |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## master #76 +/- ##
==========================================
+ Coverage 79.76% 79.90% +0.14%
==========================================
Files 11 12 +1
Lines 1685 1697 +12
==========================================
+ Hits 1344 1356 +12
Misses 341 341
|
Nice catch! This is strange though: I tried the same locally with Py3.10 and Py3.11, and installation falls back to legacy mode with no problems, One issue I'll note is that locally for me, installing |
From screwing around a bit in another PR, it seems like |
openjournals/joss-reviews#5115
Some of the tests were failing with the error:
Error: Failed building wheel for petsc.
Looking at this merge request: https://gitlab.com/petsc/petsc/-/merge_requests/6333, it seems that the issue is that
petsc
does not have apyproject.toml
file. It seems the current way to fix this is to anchor to[email protected]
and use--no-use-pep517
to actively askpip
to install using a legacy mode.I found that this still seemed to fail for
[email protected]
when anchoring topetsc==3.18.4
, but this didn't appear to be an issue when anchoring to the latest versionpetsc==3.19.1
.Unfortunately, the CI still fails to complete and errors with:
Error: The operation was canceled.
I think this is due to the CI tests taking too long (they seem to collectively cut out at 50 minutes).
I think it would be a good idea to try to reduce the time it takes for the tests to complete.