xihaian251 commented on PR #995: URL: https://github.com/apache/burr/pull/995#issuecomment-6599596721
Cross-checking #995 against #1019, which also touches `_astep`. Sharing measurements rather than adding another opinion on the code — I replayed both onto current `main` (`3f16c1e6`) in separate local worktrees. **Overlap with #980** The production change here is byte-identical to #980's apart from one docstring paragraph, so #980 and #995 are the same fix rather than two designs. #995 is the stronger of the two: it pins the dependency-factory call count and object identity across `step`, `astep` + sync action, and `astep` + async action, which #980 does not assert. **Overlap with #1019** #995 is a strict subset of #1019 in `burr/core/application.py`. Diffing the two results leaves only the `_astep` `_processed_inputs` parameter and the four `stream_result`/`astream_result` hunks on #1019's side. **Scope** #995 fixes #979 for `astep` and leaves the streaming entry points untouched, so #1017 and #1007 stay open after it. Measured on a 19-case cross-entry consistency matrix: `main` 16 failed / 3 passed; #995 alone 12 failed / 7 passed; #1019 19 passed. So this is a genuine but partial fix — not a criticism of it, just worth knowing before merge. **Suggested sequencing, if maintainers agree** Land #995 for #979 first, then have #1019 rebase and drop its now-duplicated `_step`/`_astep` hunks so it becomes purely the streaming-entry fix. I rehearsed that combination locally: `tests/core/test_application.py` goes to 152 passing, and the cross-entry matrix to 19/19. **One gap either way** No PR currently tests that `astream_result`'s non-streaming halt invokes a dependency factory exactly once. #1019's `test_stream_result_shares_one_processed_inputs_dict` covers only the sync entry point, while the async halt path depends on the new `_astep(_processed_inputs=...)` parameter. Happy to supply that test if useful. **CI** Hosted CI has not run on this PR: `Build Burr` is `action_required` (awaiting maintainer approval to run) and `documentation` shows `startup_failure` on every PR head including unrelated ones, so it carries no signal about this change. All numbers above are local, CPython 3.12, `pytest` + `pytest-asyncio` with `tests/pytest.ini`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
