chore: sync actions from gh-aw@v0.81.5#174
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Automated sync of the setup/js action helpers from gh-aw@v0.81.5, updating the safe-outputs/harness logic and related workflow tooling used by this repository’s Actions-based automation.
Changes:
- Extend safe-outputs tooling (new helper to detect “expected” outputs; allow explicit local
branchforpush_to_pull_request_branch; enforce runtime policy for create-pull-request). - Improve harness/runtime diagnostics (retry classification tweaks; suppress certain false-red conditions; broaden model-not-found detection; standardize some error-code prefixes).
- Add/update various context and handler helpers (PR context detection, label intent plumbing, log parser heuristics, chroot config patch script).
Show a summary per file
| File | Description |
|---|---|
| setup/js/update_context_helpers.cjs | Refactors PR-context detection logic and PR event list handling. |
| setup/js/set_issue_type.cjs | Prefixes a validation error with a standardized error code. |
| setup/js/safeoutputs_cli.cjs | Adds hasExpectedSafeOutputs helper and exports it for harnesses. |
| setup/js/safe_outputs_tools.json | Extends push_to_pull_request_branch tool schema/description with optional branch. |
| setup/js/safe_outputs_handlers.cjs | Accepts agent-supplied branch for PR-branch pushes with fallback to current HEAD. |
| setup/js/safe_outputs_bootstrap.cjs | Enforces a runtime policy gate for create-pull-request configuration. |
| setup/js/pr_review_buffer.cjs | Adds standardized error code prefix for non-transient API failures. |
| setup/js/patch_awf_chroot_config.cjs | New helper script to patch AWF config with chroot settings for ARC/DinD runners. |
| setup/js/log_parser_bootstrap.cjs | Adds heuristic to treat certain post-completion MCP launch failures as non-fatal. |
| setup/js/detect_agent_errors.cjs | Broadens regex to detect additional “model not found” error forms. |
| setup/js/copilot_harness.cjs | Adds safe-output based suppression for “numerous permission denied” false-reds and refines auth retry classification. |
| setup/js/codex_harness.cjs | Uses hasExpectedSafeOutputs to suppress false-red permission-denied verdicts. |
| setup/js/claude_harness.cjs | Uses hasExpectedSafeOutputs to suppress false-red permission-denied verdicts. |
| setup/js/add_labels.cjs | Adds issue-intents label spec parsing and (currently) forwards specs into the REST add-labels call. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 14/14 changed files
- Comments generated: 4
- Review effort level: Low
| repo: repoParts.repo, | ||
| issue_number: itemNumber, | ||
| labels: uniqueLabels, | ||
| labels: labelsRequestPayload, |
| } | ||
|
|
||
| const message = `create-pull-request is disabled by runtime policy: ${policyVarName}=false. ` + `Remove safe-outputs.create-pull-request or set ${policyVarName}=true.`; | ||
| logger.debugError(message); |
| * @param {Array|null|undefined} entries | ||
| * @returns {boolean} | ||
| */ | ||
| function agentRanToCompletion(entries) { |
| const failedServers = mcpFailures.join(", "); | ||
| if (safeOutputEntriesCount > 0) { | ||
| core.warning(`MCP server(s) failed to launch (${failedServers}), but agent completed with ${safeOutputEntriesCount} safe output ${safeOutputEntriesCount === 1 ? "entry" : "entries"}`); | ||
| } else if (agentRanToCompletion(logEntries)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated sync of actions from gh-aw at
v0.81.5.