Skip to content

[CI] Fix check_error_codes workflow - #568

Merged
urfeex merged 1 commit into
UniversalRobots:masterfrom
urfeex:fix_error_code_check_action
Sep 14, 2026
Merged

urfeex merged 1 commit into
UniversalRobots:masterfrom
urfeex:fix_error_code_check_action

Conversation

@urfeex

@urfeex urfeex commented Sep 11, 2026

Copy link
Copy Markdown
Member

Before, the PR body wasn't indented correctly.

Also add a trigger for this workflow on PRs that modify this workflow file.


Note

Low Risk
GitHub Actions workflow-only changes; no runtime or application code affected.

Overview
CI workflow fixes for check_error_codes: the workflow now runs on pull requests that touch .github/workflows/check_error_codes.yml, so changes to the workflow are validated in PRs.

Auto-remediation is disabled on PR runs. Steps that create the error-codes-outdated label and open an auto-update PR only run when github.event_name != 'pull_request' (scheduled/dispatch). PR runs still perform the version check and fail on mismatch via the dedicated Fail if version mismatch step.

PR body formatting is fixed by moving the auto-PR description into a PR_BODY environment variable (with GitHub Actions expressions for versions) and passing --body "$PR_BODY" to gh pr create, instead of a long inline --body string with broken indentation/escaping.

Reviewed by Cursor Bugbot for commit 5eefaa4. Bugbot is set up for automated code reviews on this repo. Configure here.

@urfeex
urfeex requested review from a team and a balanced review from Copilot September 11, 2026 07:31
@urfeex urfeex added the CI label Sep 11, 2026
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.12%. Comparing base (1b732f9) to head (5eefaa4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #568      +/-   ##
==========================================
+ Coverage   79.96%   81.12%   +1.15%     
==========================================
  Files         119      119              
  Lines        7179     7178       -1     
  Branches     3220     3220              
==========================================
+ Hits         5741     5823      +82     
+ Misses       1047      965      -82     
+ Partials      391      390       -1     
Flag Coverage Δ
check_version_ur10-3.15.8 11.21% <ø> (+0.04%) ⬆️
check_version_ur10e-10.11.0 11.17% <ø> (ø)
check_version_ur10e-5.15.2 11.41% <ø> (+0.04%) ⬆️
check_version_ur12e-10.12.1 11.17% <ø> (ø)
check_version_ur12e-5.25.1 11.17% <ø> (ø)
check_version_ur15-10.12.1 11.17% <ø> (ø)
check_version_ur15-5.25.1 11.26% <ø> (+0.08%) ⬆️
check_version_ur16e-10.12.1 11.17% <ø> (-0.09%) ⬇️
check_version_ur16e-5.25.1 11.17% <ø> (-0.74%) ⬇️
check_version_ur18-10.12.1 11.17% <ø> (ø)
check_version_ur18-5.25.1 11.21% <ø> (+0.04%) ⬆️
check_version_ur20-10.12.1 11.17% <ø> (ø)
check_version_ur20-5.25.1 11.36% <ø> (ø)
check_version_ur3-3.14.3 11.41% <ø> (+0.23%) ⬆️
check_version_ur30-10.12.1 11.17% <ø> (ø)
check_version_ur30-5.25.1 11.17% <ø> (ø)
check_version_ur3e-10.11.0 11.21% <ø> (+0.04%) ⬆️
check_version_ur3e-5.9.4 11.21% <ø> (+0.04%) ⬆️
check_version_ur5-3.15.8 11.36% <ø> (+0.19%) ⬆️
check_version_ur5e-10.11.0 11.17% <ø> (ø)
check_version_ur5e-5.12.8 11.41% <ø> (+0.19%) ⬆️
check_version_ur7e-10.11.0 11.17% <ø> (ø)
check_version_ur7e-5.22.2 11.36% <ø> (ø)
check_version_ur8long-10.12.1 11.17% <ø> (ø)
check_version_ur8long-5.25.1 11.17% <ø> (ø)
python_scripts 75.90% <ø> (ø)
start_ursim 84.48% <ø> (-0.71%) ⬇️
ur20-latest 76.50% <ø> (-0.08%) ⬇️
ur5-3.14.3 76.42% <ø> (+0.02%) ⬆️
ur5e-10.11.0 70.92% <ø> (+0.05%) ⬆️
ur5e-10.12.0 71.96% <ø> (+0.02%) ⬆️
ur5e-10.7.0 70.68% <ø> (-0.02%) ⬇️
ur5e-5.9.4 76.91% <ø> (+0.11%) ⬆️
ur7e-10.13.0 72.54% <ø> (?)
ur7e-10.14.0 72.87% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Before, the PR body wasn't indented correctly.

Also add a trigger for this workflow on PRs that modify this workflow
file.
@urfeex
urfeex force-pushed the fix_error_code_check_action branch from bfbb96c to 5eefaa4 Compare September 11, 2026 07:33

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.

🟡 Changes recommended

PR-controlled code still runs with a write-capable token.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the error-code workflow to validate workflow changes on PRs and correctly format generated PR descriptions.

Changes:

  • Adds a path-filtered pull_request trigger.
  • Guards automatic label and PR creation steps during PR runs.
  • Uses a multiline environment variable for the generated PR body.
File summaries
File Description
.github/workflows/check_error_codes.yml Updates triggers, automation guards, PR-body formatting, and mismatch-step naming.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +7 to +9
pull_request:
paths:
- '.github/workflows/check_error_codes.yml'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

GitHub always gives GITHUB_TOKEN read-only on pull_request from forks, no matter what the workflow declares. So the write permissions don’t apply there.

Copilot AI review requested due to automatic review settings September 11, 2026 07:34

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.

🟢 Approval recommended

The workflow-only changes are fully reviewed with no unresolved blocking issues.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@mergify

mergify Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@urfeex
urfeex merged commit 46ca314 into UniversalRobots:master Sep 14, 2026
59 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants