fix cli#30
Conversation
tomjemmett
commented
May 20, 2026
- fixes the status checks
- fixes clean up, looks up container group name from ats
- adds vscode debug support
- improves the status cli command
now shows the dataset/model run id from ats
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #30 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 11 11
Lines 325 352 +27
Branches 33 37 +4
=========================================
+ Hits 325 352 +27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Updates the NHP ACI CLI to improve status reporting and cleanup behavior by linking ACI container groups back to model-run metadata in Azure Table Storage, plus adds VS Code debug configuration.
Changes:
cleannow resolves the ACI container group name via Table Storage status before deleting queue blobs / container groups (and adds tests for missing status/container group).statusoutput is reformatted into a table and status/progress selection logic is updated.- Current model runs listing now enriches ACI container groups with
(dataset, model_run_id)from Table Storage, and adds a VS Codelaunch.json.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/nhp/aci/test_clean_up.py | Updates/extends cleanup tests for dataset+model_run_id lookup and edge cases. |
| tests/unit/nhp/aci/test___main__.py | Adjusts CLI status tests for new progress keys and table output. |
| tests/unit/nhp/aci/status/test_status_list_current_model_runs.py | Adds coverage for ATS incomplete-run lookup + updated shape of get_current_model_runs(). |
| src/nhp/aci/status/list_current_model_runs.py | Adds ATS query for incomplete runs and enriches ACI status results. |
| src/nhp/aci/clean_up.py | Makes cleanup depend on model-run status to find container group name before deleting resources. |
| src/nhp/aci/main.py | Changes status output formatting and progress display logic; updates clean invocation. |
| .vscode/launch.json | Adds VS Code debugpy launch configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot can you re-review the changes? I dismissed all previous comments as either fixed or not implementing |
Re-reviewed the current changes — all 73 tests pass and linting is clean. Here's a summary of the current state:
No new issues introduced beyond that one pre-existing concern. |
yiwen-h
left a comment
There was a problem hiding this comment.
Thank you! Tested starting model runs, checking status of all current runs, checking status of a single model run, and cleaning model runs - all work great.