Skip to content

Quantum: Enhance job event logging by adding elapsed time and error code to events - #10204

Draft
Konstantin Averkiev (kaverkiev) wants to merge 4 commits into
Azure:mainfrom
kaverkiev:v-kaverkiev/list-job-events-log
Draft

Quantum: Enhance job event logging by adding elapsed time and error code to events#10204
Konstantin Averkiev (kaverkiev) wants to merge 4 commits into
Azure:mainfrom
kaverkiev:v-kaverkiev/list-job-events-log

Conversation

@kaverkiev

@kaverkiev Konstantin Averkiev (kaverkiev) commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes
⚠️ None
⚠️Azure CLI Extensions Breaking Change Test
⚠️quantum
rule cmd_name rule_message suggest_message
⚠️ 1001 - CmdAdd quantum job events cmd quantum job events added

Copilot AI lite review requested due to automatic review settings August 11, 2026 22:22
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Konstantin Averkiev (@kaverkiev),
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@kaverkiev

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 events command wired to a new list_events operation and transform_events table output.
  • Implemented lifecycle event extraction (_get_job_events) and elapsed-time formatting (_format_duration).
  • Bumped extension version to 1.0.0b21 and 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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@kaverkiev
Konstantin Averkiev (kaverkiev) marked this pull request as draft August 12, 2026 19:18
@kaverkiev Konstantin Averkiev (kaverkiev) changed the title Enhance job event logging by adding elapsed time and error code to events Quantum: Enhance job event logging by adding elapsed time and error code to events Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants