Quantum: Enhance job event logging by adding elapsed time and error code to events - #10204
Quantum: Enhance job event logging by adding elapsed time and error code to events#10204Konstantin Averkiev (kaverkiev) wants to merge 4 commits into
Conversation
|
Hi Konstantin Averkiev (@kaverkiev), |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
@microsoft-github-policy-service agree |
There was a problem hiding this comment.
Pull request overview
This PR introduces a new az quantum job events command that surfaces an Azure Quantum job’s lifecycle events and augments each event with elapsed time since the prior event plus failure details (status/error code/message), along with the corresponding help text, tests, and version bump.
Changes:
- Added
az quantum job eventscommand wired to a newlist_eventsoperation andtransform_eventstable output. - Implemented lifecycle event extraction (
_get_job_events) and elapsed-time formatting (_format_duration). - Bumped extension version to
1.0.0b21and added release notes + unit tests for the new behavior.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/quantum/setup.py | Bumps extension version to 1.0.0b21. |
| src/quantum/HISTORY.rst | Adds 1.0.0b21 release notes entry for the new job events command. |
| src/quantum/azext_quantum/tests/latest/test_quantum_jobs.py | Adds unit tests for event extraction, duration formatting, and list_events client usage. |
| src/quantum/azext_quantum/operations/job.py | Adds list_events, _get_job_events, and _format_duration to generate lifecycle events with elapsed time and error info. |
| src/quantum/azext_quantum/commands.py | Registers quantum job events and adds transform_events for table output. |
| src/quantum/azext_quantum/_help.py | Adds CLI help and example for az quantum job events. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| @@ -150,6 +150,58 @@ def get(cmd, job_id, resource_group_name=None, workspace_name=None): | |||
| return client.get(job_id) | |||
There was a problem hiding this comment.
updated
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
…iption and resource group
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
🤖 PR Validation —⚠️ Review suggested