sivakumar-mahalingam opened a new pull request, #980: URL: https://github.com/apache/burr/pull/980
Fixes #979. Ensure `Application.astep()` validates and processes action inputs before invoking `pre_run_step` lifecycle hooks, matching the behavior of `Application.step()`. ## Changes - Process inputs before invoking async `pre_run_step` hooks. - Pass processed inputs instead of the original caller-provided dictionary. - Reuse the same processed inputs when executing synchronous actions through `astep()`. - Prevent step hooks from running when input validation fails. - Add regression tests for synchronous and asynchronous actions. - Test undeclared-input filtering and missing-required-input validation. ## How I tested this - New regression tests: `4 passed` - `tests/core/test_application.py`: `146 passed` - Core test suite excluding Graphviz rendering tests: `434 passed, 4 deselected` - Black formatting check passed. - isort import-order check passed. - flake8 passed. - ASF header validation passed. - Python compilation passed. - `git diff --check` passed. No documentation changes were made because this bug fix aligns `astep()` with the existing `step()` lifecycle-hook behavior. The complete pre-commit suite was not run. Black, isort, flake8, ASF header validation, Python compilation, and `git diff --check` passed for the modified files. ## Checklist - [x] PR has an informative and human-readable title (this will be pulled into the release notes) - [x] Changes are limited to a single goal (no scope creep) - [ ] Code passed the pre-commit check & code is left cleaner/nicer than when first encountered. - [x] Any _change_ in functionality is tested - [x] New functions are documented (no new functions were added) - [x] Placeholder code is flagged / future TODOs are captured in comments - [ ] Project documentation has been updated if adding/changing functionality. -- 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]
