-
Notifications
You must be signed in to change notification settings - Fork 367
Harden create_issue concurrency limits and remove dead copilot assignment queue code
#27533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
02ac899
b1ff372
3f1f518
f5563aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,7 +16,6 @@ const { hasUnresolvedTemporaryIds, replaceTemporaryIdReferences, replaceArtifact | |||||||||||
| const { generateMissingInfoSections } = require("./missing_info_formatter.cjs"); | ||||||||||||
| const { setCollectedMissings } = require("./missing_messages_helper.cjs"); | ||||||||||||
| const { writeSafeOutputSummaries } = require("./safe_output_summary.cjs"); | ||||||||||||
| const { getIssuesToAssignCopilot } = require("./create_issue.cjs"); | ||||||||||||
| const { getAssignToAgentAssigned, getAssignToAgentErrors, getAssignToAgentErrorCount, writeAssignToAgentSummary } = require("./assign_to_agent.cjs"); | ||||||||||||
| const { getCreateAgentSessionNumber, getCreateAgentSessionUrl, writeCreateAgentSessionSummary } = require("./create_agent_session.cjs"); | ||||||||||||
| const { createReviewBuffer } = require("./pr_review_buffer.cjs"); | ||||||||||||
|
|
@@ -1048,11 +1047,6 @@ async function main() { | |||||||||||
| try { | ||||||||||||
| core.info("Safe Output Handler Manager starting..."); | ||||||||||||
|
|
||||||||||||
| // Reset create_issue handler's global state to ensure clean state for this run | ||||||||||||
| // This prevents stale data accumulation if the module is reused | ||||||||||||
| const { resetIssuesToAssignCopilot } = require("./create_issue.cjs"); | ||||||||||||
| resetIssuesToAssignCopilot(); | ||||||||||||
|
|
||||||||||||
| // Load configuration | ||||||||||||
| const config = loadConfig(); | ||||||||||||
| core.debug(`Configuration: ${JSON.stringify(Object.keys(config))}`); | ||||||||||||
|
|
@@ -1224,16 +1218,6 @@ async function main() { | |||||||||||
| // Export processed count for consistency with project handler | ||||||||||||
| core.setOutput("processed_count", successCount); | ||||||||||||
|
|
||||||||||||
|
||||||||||||
| // Preserve the legacy workflow output contract for downstream steps that still | |
| // reference issues_to_assign_copilot, even though this handler no longer populates it. | |
| core.setOutput("issues_to_assign_copilot", ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot is this output used anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes — these assign_to_agent outputs are consumed downstream. They are wired by pkg/workflow/compiler_safe_outputs_job.go into safe_outputs job outputs and then referenced by workflow/error-notification paths (for example in pkg/workflow/notify_comment.go and generated lock workflows such as smoke-agent-public-approved.lock.yml, issue-monster.lock.yml, and workflow-generator.lock.yml).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When group-by-day finds an existing issue and posts a comment, the handler returns success without recording the
temporaryId-> existing issue mapping intemporaryIdMap. If a caller provides an explicittemporary_idand later messages reference it, those references will remain unresolved even though the content was associated withtodayIssue. Consider storing a mapping totodayIssue.number(and repo) before returning from the grouped path.