Closed dataflake closed 1 year ago
Assigning @mamico - he added the test code.
@dataflake a quick test might be to increase the 'sleep' times here https://github.com/zopefoundation/Products.ZCatalog/blob/master/src/Products/ZCatalog/tests/test_plan.py#L247
... or something more cleaver to simulate a slow index
My first guess here would not be a race condition, but a set getting converted to a list (sets do not keep their members in insertion order the way modern dicts do).
On Wed, Nov 16, 2022 at 6:24 AM Mauro Amico @.***> wrote:
@dataflake https://github.com/dataflake a quick test might be to increase the 'sleep' times here https://github.com/zopefoundation/Products.ZCatalog/blob/master/src/Products/ZCatalog/tests/test_plan.py#L247
... or something more cleaver to simulate a slow index
— Reply to this email directly, view it on GitHub https://github.com/zopefoundation/Products.ZCatalog/issues/140#issuecomment-1317103588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAL65R3A5242WJEIVIJBMTWITVBTANCNFSM6AAAAAASCHSE7Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Oh, but this is a test of the query planner? Then yeah, something related to timing seems likely.
On Wed, Nov 16, 2022 at 6:56 AM David Glick @.***> wrote:
My first guess here would not be a race condition, but a set getting converted to a list (sets do not keep their members in insertion order the way modern dicts do).
On Wed, Nov 16, 2022 at 6:24 AM Mauro Amico @.***> wrote:
@dataflake https://github.com/dataflake a quick test might be to increase the 'sleep' times here https://github.com/zopefoundation/Products.ZCatalog/blob/master/src/Products/ZCatalog/tests/test_plan.py#L247
... or something more cleaver to simulate a slow index
— Reply to this email directly, view it on GitHub https://github.com/zopefoundation/Products.ZCatalog/issues/140#issuecomment-1317103588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAL65R3A5242WJEIVIJBMTWITVBTANCNFSM6AAAAAASCHSE7Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
The unit test
test_getCatalogPlan_partial
routinely fails on the macOS GitHub Actions runners when run as part of the Zopealltests
test script, which tests Zope in conjunction with other important Zope packages, see traceback and GHA runner log output URL below. This test never fails for me on my local macOS setup. This leads me to believe that either the code being tested or the test itself can show race conditions in certain environments.Example at https://github.com/zopefoundation/Zope/actions/runs/3479685094/jobs/5818540212