The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-8960-6db4a642d0c9eabbc56c2c9a10a61b72da9af064 has failed. Run started by GitHub user Xiao-zhen-Liu (triggered by Xiao-zhen-Liu).
Head commit for run: 27fd8c49c1395aa84892ac7896c83fd756a21e5e / carloea2 <[email protected]> fix(pyamber): keep peek side effect free (#8960) ### What changes were proposed in this PR? Keep queue peeking from advancing the round-robin cursor. Scan with a local index so observing a queue does not change the next message returned by `get()`. The regression also starts at a nonzero cursor and calls the public `peek()` while wrapping past empty and disabled queues in either order. Repeated peeks preserve the next `get()` result, and an unavailable queue returns `None`. ### Any related issues, documentation, discussions? Closes #8225. Replaces #8226, which the stale bot closed. ### How was this PR tested? Retested with Python 3.12 on Windows from freshly fetched upstream main `1ec692c5da`. Before the implementation, the original regression and both new wraparound cases fail. Afterward, all 56 customized-queue tests pass. >From `amber`, with `PYTHONPATH=src/main/python`: ```text python -m pytest src/test/python/core/util/customized_queue -q --tb=short -p no:cacheprovider 56 passed python -m pytest src/test/python/core/util src/test/python/core/architecture src/test/python/core/runnables --deselect=src/test/python/core/util/test_expression_evaluator.py::TestExpressionEvaluator::test_evaluate_object_expression --deselect=src/test/python/core/util/test_expression_evaluator.py::TestExpressionEvaluator::test_evaluate_container_expressions -q --tb=short -p no:cacheprovider 716 passed, 2 deselected ruff check src/main/python src/test/python ruff format --check src/main/python src/test/python ``` The two deselected expression-evaluator tests also fail on unmodified main on Windows because object addresses in `repr()` have leading zeros. No expression-evaluator code changed. Ruff lint and formatting passed for all 218 Python files. `git diff --check` passed. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Codex (GPT-6) Report URL: https://github.com/apache/texera/actions/runs/42949135420 With regards, GitHub Actions via GitBox
