Skip to content

Add repor to issue_details#36

Merged
stewartshea merged 4 commits intomainfrom
update/script-generic-add-report-to-issue-details
Jan 16, 2026
Merged

Add repor to issue_details#36
stewartshea merged 4 commits intomainfrom
update/script-generic-add-report-to-issue-details

Conversation

@stewartshea
Copy link
Copy Markdown
Contributor

@stewartshea stewartshea commented Jan 16, 2026

Enhance dynamic issue reporting in runbooks by adding support for report data. Updated methods in runbook.robot and DynamicIssues.py to include optional report data (stdout, stderr, history) when creating issues. This improves the clarity and context of generated issues, facilitating better debugging and tracking.


Note

Improves context for dynamically created issues and streamlines metric handling.

  • Enhance RW.DynamicIssues to accept optional report_data and append it to details for both process_file_based_issues and process_json_query_issues (including extracted JSON path)
  • Update git-script-cmd-env/runbook.robot and git-script-cmd-json/runbook.robot to build report_data (from rsp.stdout) and pass it to RW.DynamicIssues.Process File Based Issues and Process Json Query Issues
  • Simplify SLIs (git-script-cmd-*/sli.robot): remove automatic issue creation on non-numeric output/failed return codes; default non-numeric output to 0 and compute metric via METRIC_MODE
  • Add .test scripts and README under both bundles to validate METRIC_MODE behaviors

Written by Cursor Bugbot for commit 468b279. This will update automatically on new commits. Configure here.

…ng. Removed redundant issue logging for non-numeric outputs and command failures, defaulting to 0 for invalid metrics. This change enhances clarity and reduces unnecessary complexity in error handling.
…ort data. Updated methods in runbook.robot and DynamicIssues.py to include optional report data (stdout, stderr, history) when creating issues. This improves the clarity and context of generated issues, facilitating better debugging and tracking.
@stewartshea stewartshea requested a review from a team as a code owner January 16, 2026 14:36
…tained a user-provided script execution task with environment variable support, which is no longer needed. The removal enhances clarity and reduces complexity in the project.
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Comment thread codebundles/git-script-cmd-env/runbook.robot Outdated
…eneration. Removed conditional checks for report data preparation, ensuring consistent concatenation of stdout for issue reporting. This change enhances clarity and reduces complexity in the reporting logic.
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.



${report_data}= Catenate SEPARATOR=\n
... Stdout: ${rsp.stdout}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Report data missing stderr and history fields

Medium Severity

The report_data variable only includes Stdout: ${rsp.stdout} but the PR description states it should include "stdout, stderr, history" for issue context. Both ${rsp.stderr} and ${history} variables are available and used later in the code for reporting, but they are not included in report_data that gets passed to the DynamicIssues methods. This reduces the debugging context available in generated issues, particularly missing error output which is often the most valuable information for troubleshooting failures.

Additional Locations (1)

Fix in Cursor Fix in Web

@stewartshea stewartshea merged commit 99d9edb into main Jan 16, 2026
1 check passed
@stewartshea stewartshea deleted the update/script-generic-add-report-to-issue-details branch January 16, 2026 14:59
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