Skip to content

Commit

Permalink
sagemathgh-36948: build/pkgs/gnumake_tokenpool: Update to fix `Alar…
Browse files Browse the repository at this point in the history
…mInterrupt` problems

<!-- ^^^^^
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 -->
The new release 0.0.4 provides cysignals integration:
- milahu/gnumake-tokenpool#4

Fixes sagemath#36944

To verify that the tokenpool mechanism is being used:
```
$ DEBUG_JOBCLIENT=1 make ptest
```

<!-- 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. -->

### 📝 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.
- [ ] 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#36948
Reported by: Matthias Köppe
Reviewer(s): John H. Palmieri
  • Loading branch information
Release Manager committed Dec 23, 2023
2 parents a5ba431 + f1be152 commit 0e6b3a4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=configure-VERSION.tar.gz
sha1=2389d2b093493c568deda190ffc326ff2b835169
md5=545e80b50deb4efa46f14d0a543ba98f
cksum=169905223
sha1=0b58b8fa04d2590c91a19e160a8ea219d1733381
md5=c7dd26a429da115d401f6f909e54127a
cksum=3537476925
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
73e52a419812253c3c3ce72bab7f1a5ddf4c0461
9d3998794e4bfcccec9c2e3b101480a2afa41845
6 changes: 3 additions & 3 deletions build/pkgs/gnumake_tokenpool/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tarball=gnumake_tokenpool-VERSION-py3-none-any.whl
sha1=a060f03e0306a85bc1a91a450e457be83ed371e9
md5=834ccc4d6d52741c5eabac1bdb8f39b2
cksum=1679797266
sha1=3dfcc8c466c17f974d90694f81f4481c3d84aecc
md5=5dae4c65e9609853085ae1970d4fe143
cksum=612213211
upstream_url=https://pypi.io/packages/py3/g/gnumake_tokenpool/gnumake_tokenpool-VERSION-py3-none-any.whl
2 changes: 1 addition & 1 deletion build/pkgs/gnumake_tokenpool/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gnumake-tokenpool
gnumake-tokenpool >= 0.0.4
2 changes: 1 addition & 1 deletion build/pkgs/gnumake_tokenpool/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.3
0.0.4
7 changes: 4 additions & 3 deletions src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1806,12 +1806,13 @@ def parallel_dispatch(self):
job_client = None
try:
from gnumake_tokenpool import JobClient, NoJobServer
except ImportError:
pass
else:
try:
job_client = JobClient()
job_client = JobClient(use_cysignals=True)
except NoJobServer:
pass
except ImportError:
pass

source_iter = iter(self.controller.sources)

Expand Down

0 comments on commit 0e6b3a4

Please sign in to comment.