Repository navigation
[Misc] Strengthen batch execution with recovery-aware runtimes and atomic state updates - #2360
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the batch job processing system in Aibrix, introducing job-bound driver instances, worker-local status tracking, and a new input validation module. It also improves local storage reliability through atomic file writes and enhances end-to-end test coverage. The review identified several critical issues that need to be addressed: an AttributeError in batch_manager.py due to assigning to read-only properties, a potential re-execution of completed requests in base.py, a NameError in batch_job.py from a missing copy import, file descriptor leaks in local.py during temporary file creation, and the loss of legacy options in k8s_transformer.py due to overwriting instead of merging.
c45e4c0 to
ba0c326
Compare
565caa2 to
071d1b2
Compare
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
8b812a1 to
b97b3e4
Compare
Add test case for cancellation during service discovery. Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
DwyaneShi
left a comment
There was a problem hiding this comment.
The overall direction and the enhancements in this PR look reasonable to me. Given the scope of the changes, I didn't review all the details. I think it's fine to merge this as a first step and continue improving it.
Pull Request Description
This PR reviews the abnormal test script (python/aibrix/tests/batch/test_e2e_abnormal_job_behavior.py) to systematically validate the batch system's robustness against accidental failure events.
What Changed
Batch manager and lifecycle handling
Driver / progress interface redesign
Concurrent worker execution and status aggregation
Runtime durability and reconnection
Kubernetes runtime changes
Validation flow changes
Scheduler behavior
Config updates
Test coverage
Impact
Contribution Guidelines (Expand for Details)
We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:
Pull Request Title Format
Your PR title should start with one of these prefixes to indicate the nature of the change:
[Bug]: Corrections to existing functionality[CI]: Changes to build process or CI pipeline[Docs]: Updates or additions to documentation[API]: Modifications to aibrix's API or interface[CLI]: Changes or additions to the Command Line Interface[Misc]: For changes not covered above (use sparingly)Note: For changes spanning multiple categories, use multiple prefixes in order of importance.
Submission Checklist
By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.