xihaian251 commented on PR #1019:
URL: https://github.com/apache/burr/pull/1019#issuecomment-6599597651

   Follow-up to the earlier review — this is about integration sequencing 
rather than the code, which I re-ran against current `main` (`3f16c1e6`) in a 
local worktree.
   
   **Relationship to #995**
   This PR is a strict superset of #995 in `burr/core/application.py`. If #995 
lands first, a rebase leaves exactly four meaningful hunks here: the `_astep` 
`_processed_inputs` parameter, and the process-before-hook plus halt-forwarding 
changes in `stream_result` and `astream_result`. The `_step`/`_astep` hook-side 
hunks would become duplicates and can be dropped, which makes the remaining 
diff much easier to review.
   
   **What this PR is uniquely responsible for**
   #995 does not touch the streaming entry points. On a 19-case cross-entry 
consistency matrix (`step`, `astep`, `stream_result`, `astream_result` × 
sync/async × streaming/halt × valid/missing/reserved inputs): `main` 16 failed 
/ 3 passed, #995 alone 12 failed / 7 passed, this PR 19 passed. It is also the 
only change that fixes the non-streaming halt processing inputs twice (#1007) — 
verified with a separate 8-case probe that fails 6/8 on `main` and on #995, and 
passes 6/6 here (2 cases skipped because `stream_result` cannot drive an async 
action).
   
   **Two suggestions after a rebase**
   1. Port the three tests from #995. This PR has no assertion that `_astep`'s 
dependency factory runs exactly once, nor that the hook and the action share 
one injected object. `test_step_and_astep_share_one_processed_inputs_dict` is 
currently the only test that pins that guarantee, and it would be lost if this 
PR merges alone.
   2. Add an `astream_result` counterpart to 
`test_stream_result_shares_one_processed_inputs_dict`. The async halt path is 
the only part of this change that depends on the new `_astep` parameter, and it 
is the part with no committed test. A working version is available if useful.
   
   **Minor**
   `# In this case we allow the self._step to do input processing` and `# In 
this case we want to process inputs because we run the function directly` are 
no longer accurate after this change — #995 removes both.
   
   **CI**
   Hosted CI has not run here either: `Build Burr` is `action_required` 
(awaiting maintainer approval to run), and `documentation` shows 
`startup_failure` on every PR head including unrelated ones. All figures above 
are local, CPython 3.12.
   


-- 
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]

Reply via email to