Skip to content

Automate fixes for reproduced bugs with retained context - #21079

Merged
ewdurbin merged 13 commits into
mainfrom
codex/combined-bug-fix-automation
Aug 13, 2026
Merged

ewdurbin merged 13 commits into
mainfrom
codex/combined-bug-fix-automation

Conversation

@astral-automations-bot

Copy link
Copy Markdown
Contributor

This extends our automations for issue triage to take reproducible bugs with a regression-test and attempt to generate a PR fixing the issue.

  • Context from the issue triage and reproduction are carried over into the job to attempt to fix the bug
  • The issue branch is updated with details on the fix attempt and result
  • If a fix is proposed, a draft PR is opened stacked on the regression test PR

This also introduces re-usable actions for loading the issue context and codex thread from another workflow.

PARENT_PULL_REQUEST: ${{ inputs.parent-pull-request }}
REPRODUCTION_RESULT: ${{ inputs.reproduction-result }}
run: |
mkdir -p "$RUNNER_TEMP/codex-home"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nitpick: I'd love it if we could lift these big run: blocks into dedicated scripts, if only so we can shellcheck/lint/etc. them more consistently 😅

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah I think in this case we can, in others we can't as we want to run the workflow/script/prompt from a specific branch (like main).

I think a larger refactor to address these is probably best since it will be case-by-case for all the automations.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah I looked into this and that's a blocker.

We can write actions though and invoke them that way, e.g., astral-sh#546 there's a big stack of them in uv-dev that just need to be driven forward.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh it looks like @ewdurbin picked a couple of those into here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's also plausible we'll write these in Python or something in the future

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense. I'm fine with it as-is, just flagging as something that might be nice when we iterate further later!

@zanieb

zanieb commented Aug 12, 2026

Copy link
Copy Markdown
Member

If you're happy with this, I'm happy to ship and iterate without close review

@ewdurbin
ewdurbin merged commit fcd1653 into main Aug 13, 2026
144 of 155 checks passed
@ewdurbin
ewdurbin deleted the codex/combined-bug-fix-automation branch August 13, 2026 12:11
ewdurbin added a commit that referenced this pull request Aug 13, 2026
VedantMadane added a commit to VedantMadane/uv that referenced this pull request Sep 21, 2026
…1079)

This extends our automations for issue triage to take reproducible bugs
with a regression-test and attempt to generate a PR fixing the issue.

- Context from the issue triage and reproduction are carried over into
the job to attempt to fix the bug
- The issue branch is updated with details on the fix attempt and result
- If a fix is proposed, a draft PR is opened stacked on the regression
test PR

This also introduces re-usable actions for loading the issue context and
codex thread from another workflow.

---------

Co-authored-by: Ee Durbin <[email protected]>
Co-authored-by: Zanie Blue <[email protected]>
VedantMadane added a commit to VedantMadane/uv that referenced this pull request Sep 21, 2026

This branch was previously deployed

1 inactive deployment
automations — d9d3d2df Deployed Aug 12, 2026 by astral-automations-bot[bot] via review / security review #44597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal:automations Related to internal automations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants