Skip to content

feat(cli): add evaluation event logs - #231

Merged
zpzjzj merged 5 commits into
alibaba:mainfrom
JHWang-1997:feat/eval-event-log
Sep 4, 2026
Merged

zpzjzj merged 5 commits into
alibaba:mainfrom
JHWang-1997:feat/eval-event-log

Conversation

@JHWang-1997

Copy link
Copy Markdown
Collaborator

Summary

  • add opt-in --event-log output and repeatable --event-attribute metadata
  • connect the deterministic execution plan and runner observers to the evaluation event lifecycle
  • validate output paths before opening the JSONL file and preserve graceful finalization on cancellation
  • document the CLI contract and add unit and end-to-end coverage

Compatibility

The existing evaluation path is unchanged when --event-log is omitted. No event objects, files, or heartbeat work are created in that mode, and existing stdout, reports, and exit behavior are preserved.

When event output is enabled, sink errors are returned with the command result according to SUP-0005.

Testing

  • make fmt
  • make verify
  • env -u QODER_PERSONAL_ACCESS_TOKEN make test
  • env -u QODER_PERSONAL_ACCESS_TOKEN make GOFLAGS="-buildvcs=false -parallel=1" e2e

Builds on #228 and #229.
Addresses #206.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-02T11:01:55.269552Z 2da9c37 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2da9c37efe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/cli/run_events.go Resolved

@zpzjzj zpzjzj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed all 8 changed files, including CLI/runner/lifecycle integration, path validation, serialization, tests, and documentation. This review contains 0 blockers, 1 major finding, and 0 informational findings. make test (race-enabled), make verify, and the default E2E suite passed. Credential-gated full LLM/OpenSandbox paths were not validated.

Comment thread internal/cli/run_events.go Resolved

@zpzjzj zpzjzj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed all 9 changed files at f33051b, including CLI flags/configuration, runner/evaluator scheduling and cleanup, lifecycle serialization, reports/exit status, tests, and documentation. The two previously reported issues are fixed. This review contains 0 blockers, 2 major findings (P2), and 0 informational findings.

make test (race-enabled) and make verify passed. Normal event-lifecycle and SIGINT/SIGTERM subprocess E2E tests passed on rerun; an initial signal test timed out before startup, and a separate runtime timing test passed on rerun. Both findings below were reproduced with the actual CLI and mock engine. Credential-gated live-engine/OpenSandbox paths were not exercised.

Comment thread internal/cli/run_events.go Resolved
Comment thread internal/cli/run_events.go Resolved

@zpzjzj zpzjzj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed all 14 changed files at e9c0150, including cancellation scheduling, workspace cleanup, result and exit semantics, lifecycle serialization, tests, and documentation. The two previously reported cancellation issues are fixed. This review contains 0 blockers, 1 major finding (P2), and 0 informational findings.

make test (race-enabled), make verify, Windows cross-compilation, and the targeted event-log E2E scenarios passed, including SIGINT, SIGTERM, future-artifact preservation, baseline cancellation with a non-zero exit, and the normal lifecycle. The full credential-gated E2E path was not validated because the live Qoder client was not authenticated.

Comment thread e2e/event_log_signal_unix_test.go Resolved

@zpzjzj zpzjzj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@zpzjzj
zpzjzj added this pull request to the merge queue Sep 4, 2026
Merged via the queue into alibaba:main with commit ebc7aa0 Sep 4, 2026
12 checks passed
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.

2 participants