You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Description
- `test_request_ordering_with_mixed_operations[shared]` flaked on master
([CI
run](https://github.com/apify/apify-sdk-python/actions/runs/26878160055/job/79270923478))
with the reclaimed forefront request being fetched before the newly
added forefront request.
- In the shared request queue access mode, the relative order of
requests added or reclaimed close together is not guaranteed due to the
API propagation delay (see #808). The order-sensitive tests
(`test_request_ordering_with_mixed_operations`,
`test_forefront_requests_ordering`) now only verify that forefront
requests come before regular ones in shared mode, asserting membership
instead of exact positions. The strict ordering assertions are kept for
the deterministic single access mode.
- Additionally, based on review findings:
- In shared mode, the tests now wait for forefront operations to
propagate to the queue head before draining the queue, so the
forefront-before-regular boundary assertions are not exposed to the same
propagation delay either.
- `test_request_reclaim_with_forefront` had the identical
reclaim-to-forefront-then-fetch strict ordering assertion and gets the
same propagation wait (its assertion stays strict, since after
propagation it is deterministic).
- `test_forefront_requests_ordering` now asserts `len(fetched_urls) ==
5`, so the set-based shared-mode assertions cannot mask duplicate or
extra fetches.
- The propagation-delay rationale is documented once in the module-level
note; the inline comments point at it.
- Verified locally: 10/10 consecutive runs of each affected `[shared]`
variant passed against the real API (before the follow-up commit, which
only makes the assertions stricter/more robust).
0 commit comments