Skip to content

Add cre workflow logs command#262

Open
nadahalli wants to merge 2 commits intomainfrom
add-workflow-logs-command
Open

Add cre workflow logs command#262
nadahalli wants to merge 2 commits intomainfrom
add-workflow-logs-command

Conversation

@nadahalli
Copy link
Contributor

Summary

  • Adds cre workflow logs <workflow-name> subcommand that queries the GraphQL API for execution history
  • Shows timestamps, status, duration, and error details for failed executions
  • Supports --follow / -f for continuous polling (like tail -f) and --limit / -n to control page size
  • Takes a workflow name directly (no project folder required), only needs credentials

Example output

Workflow: blocknumber-tracker-staging

TIMESTAMP                 STATUS        DURATION    EXECUTION ID
2026-02-12T15:58:00Z      failure       1.0s        b14b7903
  -> confidential-http@1.0.0-alpha: [2]Unknown: Private:method SendRequest not found
2026-02-12T15:59:00Z      failure       1.0s        2b40e730
  -> confidential-http@1.0.0-alpha: [2]Unknown: Private:method SendRequest not found
2026-02-12T16:00:01Z      failure       0ms         e5d860c8
  -> confidential-http@1.0.0-alpha: [2]Unknown: Private:method SendRequest not found

Notes

  • Uses existing workflowExecutions and workflowExecutionEvents GraphQL queries (same as the web dashboard)
  • Excluded from isLoadSettings in root.go since it doesn't need a project folder or workflow settings
  • UX difference from other workflow subcommands: takes <workflow-name> directly instead of <workflow-folder-path> since it's a read-only query, not a contract interaction

Queries the GraphQL API for workflow execution history, showing
timestamps, status, duration, and error details for failures.

Supports --follow for continuous polling and --limit to control
how many recent executions to display.
@nadahalli nadahalli requested a review from a team as a code owner February 12, 2026 16:44
@github-actions
Copy link

👋 nadahalli, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

Suppress errcheck on io.Copy in test helper, regenerate docs.
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.

1 participant