- 10 Sep, 2023 1 commit
-
-
Jim Fulton authored
-
- 01 Aug, 2023 2 commits
-
-
Jens Vagelpohl authored
-
Jens Vagelpohl authored
-
- 19 Jul, 2023 1 commit
-
-
Michael Howitz authored
* Bumped version for breaking release. * Drop support for Python 2.7, 3.5, 3.6. --------- Co-authored-by:
Jens Vagelpohl <jens@plyp.com>
-
- 18 Jul, 2023 2 commits
-
-
Jens Vagelpohl authored
-
Jens Vagelpohl authored
-
- 17 Jul, 2023 1 commit
-
-
Lars Kellogg-Stedman authored
The newt db project appears to be dead; the domain name now leads to a domain parking website.
-
- 26 May, 2023 1 commit
-
-
Kirill Smelkov authored
positive_id was added in 2004 in f7b96aea (ZODB.utils grows a new function positive_id(), which returns the id() of an object as a non-negative integer ...) to workaround change in behaviour Python2.3 -> 2.4 for `'%x' % <negative-number>`. And nowdays `positive_id` is used only in one place in Connection.__repr__ to mimic approximately what Python already gives for a default __repr__ out of the box. On https://github.com/zopefoundation/ZODB/actions/runs/5067242751/jobs/9098062772 we recently hit ZODB.POSException.InvalidObjectReference: <unprintable InvalidObjectReference object> for the following code: if self._jar.get_connection(database_name) is not obj._p_jar: raise InvalidObjectReference( "Attempt to store a reference to an object from " "a separate connection to the same database or " "multidatabase", self._jar, obj, ) ( https://github.com/zopefoundation/ZODB/blob/5.8.0-24-g8a7e3162d/src/ZODB/serialize.py#L366-L371 ) for which the "unprintable ..." part is produced by `Lib/traceback.py` who tries to do `str(ex)` and returns `unprintable ...` if that str failed: https://github.com/python/cpython/blob/v3.8.16-18-g9f89c471fb1/Lib/traceback.py#L153-L157 Since one of the reasons for that failure might have been a bit non-trivial code and assert in positive_id, let's remove it and rely on builtin python behaviour for Connection repr. repr for Connection: before this patch: <Connection at 0x7fef09989d10> after this patch: <ZODB.Connection.Connection object at 0x7fef09989d10> /reviewed-by @dataflake, @d-maurer /reviewed-at https://github.com/zopefoundation/ZODB/pull/384
-
- 24 May, 2023 1 commit
-
-
Kirill Smelkov authored
The last usage of WarningsHook was removed in 2011 in f1b04dd8 (Lots of code cleanups.). And when we need to capture warnings there is `warnings.catch_warnings` that is available out of the box from stdlib on both py2 and py3.
-
- 04 May, 2023 1 commit
-
-
templiert authored
-
- 18 Apr, 2023 3 commits
-
-
Dieter Maurer authored
`racetest` improvement
-
dieter authored
-
Kirill Smelkov authored
- Rename `TestGroup` -> `TestWorkGroup`. I originally named it as just WorkGroup similarly to sync.WorkGroup in pygolang, but later added "Test" prefix to highlight the difference that this class manages working group of threads that take part in tests, instead of group of arbitrary threads. However in that process I dropped the "Work" part which turned the name to be somewhat ambiguous: it is not clear whether "TestGroup" is a group of threads serving one test, or a group of separate tests without any relation to threading. To remove the ambiguity let's restore the "Work" in the name so that both "Test" and "WorkGroup" are there. - Review test_racetest.py a bit: * make it a bit more robust by increasing "ok" timeout from 0.1s to 10s. in my experience 0.1s is too little and will regularly hit "timeout" when CI machines are overloaded. I'm still somewhat uncomfortable with 0.1s timeout we left in tests that exercise timeout handling, but let's leave it as is for now and see how it goes. * add test for cases when only one thread fails out of many, and when several threads fail too. * minor cosmetics. - spellcheck.
-
- 17 Apr, 2023 3 commits
- 15 Apr, 2023 1 commit
-
-
dieter authored
Add the thread name to failure reports due to exceptions. First update `TestGroup.threadv` before the thread is started.
-
- 14 Apr, 2023 1 commit
-
-
Kirill Smelkov authored
- Factor common logic to spawn and run group of test threads into TestGroup. This way the extra checks and robustness improvements, that Dieter just added to check_race_external_invalidate_vs_disconnect, become available to all tests in racetest module. Rework moved code so that nwork is not fixed beforehand and test threads can be added dynamically. - fix waiting logic in Finished: * on py2 Condition.wait does not return True/False as it does on py3 - we need to manually inspect the state. * fix race for when wait is called with already met condition: previously in such case it was waiting indefinitely and reporting failure on timeout - rename Finished to well-established concept of WaitGroup and adjust its interface accordingly (see https://pkg.go.dev/sync#WaitGroup, https://lab.nexedi.com/nexedi/pygolang/blob/master/golang/sync.py and https://lab.nexedi.com/nexedi/pygolang/blob/39dde7eb/golang/sync.cpp#L153-200) - no need to wrap try/except with additional try/finally, as try/except/finally works out of the box.
-
- 13 Apr, 2023 4 commits
- 28 Mar, 2023 1 commit
-
-
Michael Howitz authored
-
- 12 Mar, 2023 2 commits
-
-
Jens Vagelpohl authored
Corrected a few typos
-
Mikael Lövqvist authored
-
- 06 Feb, 2023 1 commit
-
-
Dieter Maurer authored
Fix `racetest` problems
-
- 03 Feb, 2023 5 commits
-
-
dieter authored
-
Jens Vagelpohl authored
-
dieter authored
-
dieter authored
-
dieter authored
treat failure for a test thread to finish as a test failure
-
- 09 Nov, 2022 4 commits
-
-
Jens Vagelpohl authored
-
Jens Vagelpohl authored
-
Jens Vagelpohl authored
-
Maurits van Rees authored
Add support for Python 3.11
-
- 08 Nov, 2022 4 commits
-
-
Maurits van Rees authored
-
Maurits van Rees authored
-
Maurits van Rees authored
-
Maurits van Rees authored
-
- 02 Sep, 2022 1 commit
-
-
Kirill Smelkov authored
Because `--all` takes precedence over any followup `-a X` on command line in e.g. `tox -- -a 1`. See https://github.com/zopefoundation/ZEO/commit/06f8e1461c05 and https://github.com/zopefoundation/ZEO/pull/210#pullrequestreview-1094352596 for details.
-