-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
src/tox.ini
(coverage:run): Set concurrency = multiprocessing,threads
#37010
Conversation
d66e3fd
to
31971bf
Compare
31971bf
to
123fbd9
Compare
123fbd9
to
d84231b
Compare
d84231b
to
fd155f8
Compare
fd155f8
to
bde14eb
Compare
87be537
to
3565c33
Compare
Documentation preview for this PR (built with commit c1758ed; changes) is ready! 🎉 |
Let's run this again. |
Hm... |
8e39c51
to
0a1dae9
Compare
Thanks for the fix! Now it seems to work well |
There are still a few warnings |
Are we using "--parallel-mode" flag? |
Ah, yes. I see "-p". |
In build.yml, I see - name: Test all files (sage -t --long ${{ matrix.tests }})
if: (success() || failure()) && steps.container.outcome == 'success'
run: |
mkdir .coverage
rm -rf /sage/.coverage
ln -s $(pwd)/.coverage /sage/
cd /sage
./sage -python -m pip install coverage
./sage -python -m coverage run --rcfile=src/tox.ini src/bin/sage-runtests --force-lib --long -p4 --format github --random-seed=286735480429121101562228604801325644303 ${{ matrix.tests }} In src/tox.ini, I see [testenv:coverage.py]
# https://coverage.readthedocs.io/en/latest/index.html
description =
run the Sage doctester with Coverage.py
## This toxenv bypasses the virtual environment set up by tox.
passenv = {[sagedirect]passenv}
setenv = {[sagedirect]setenv}
envdir = {[sagedirect]envdir}
allowlist_externals = {[sagedirect]allowlist_externals}
commands_pre =
{env:SAGE} -pip install -U coverage
commands =
{env:SAGE} --python -m coverage run "{toxinidir}/../venv/bin/sage-runtests" -p 0 {posargs:--all}
commands_post =
{env:SAGE} --python -m coverage combine
{env:SAGE} --python -m coverage report
...
[coverage:run]
source = sage
concurrency = multiprocessing
data_file = .coverage/.coverage
disable_warnings = no-data-collected There is "-p" in the command in tox.ini, but there is no "-p" in the command in build.yml. Is this flag applied to the coverage command in the workflow? |
There's a |
Co-authored-by: Kwankyu Lee <ekwankyu@gmail.com>
0a1dae9
to
c1758ed
Compare
isn't it for |
I feel that we did not fix the root problem yet... |
All the |
OK. Then the
Don't we need this flag? (That was perhaps what I was thinking a month ago) |
No, because that is configured in |
Sorry but where in |
It's the very line that is modified here, in the |
Do you mean |
Do you agree with this? |
Anyway, this PR is likely to alleviate the situation. Let's merge. |
Let's keep the issue #36539 open though. |
Yes. Thanks for the review! |
…ltiprocessing,threads` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- 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". --> <!-- If your change requires a documentation PR, please link it appropriately. --> - Partially addresses sagemath#36539 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] 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 accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#37010 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee
📝 Checklist
⌛ Dependencies