Add update description runner endpoint#293
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #293 +/- ##
==========================================
- Coverage 80.89% 80.76% -0.13%
==========================================
Files 109 109
Lines 9514 9570 +56
==========================================
+ Hits 7696 7729 +33
- Misses 1818 1841 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
702d236 to
ba6c7a9
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds a new v4 runner command endpoint to update an experiment’s description, wiring it through the router into runner implementations and adding endpoint-level tests. It extends the runner interface with an update_description capability and implements it for both local and SSH runners.
Changes:
- Add
/v4/runners/command/update-experiment-descriptionendpoint guarded by runner endpoint configuration. - Implement
update_description()inLocalRunnerandSSHRunner, and add the method to the baseRunnerinterface. - Add tests covering disabled endpoint, valid request, invalid profile, and runner failure.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
autosubmit_api/routers/v4/runners.py |
Adds the new update-experiment-description endpoint and endpoint category enum usage. |
autosubmit_api/runners/base.py |
Extends the runner interface with update_description. |
autosubmit_api/runners/local_runner.py |
Implements local execution of the autosubmit update-description command. |
autosubmit_api/runners/ssh_runner.py |
Implements SSH execution of the autosubmit update-description command. |
tests/test_endpoints_v4.py |
Adds tests validating the new endpoint behavior and error cases. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Closes BSC-ES/autosubmit-gui#429