Skip to content

feat(stovepipe): define the repair executor extension - #929

Merged
mnoah1 merged 2 commits into
mainfrom
mnoah1/stovepipe-repair-executor
Oct 23, 2026
Merged

mnoah1 merged 2 commits into
mainfrom
mnoah1/stovepipe-repair-executor

Conversation

@mnoah1

@mnoah1 mnoah1 commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Why?

Add a RepairExecutor contract. For now, we have a Submit method, but this contract could expand to include other functionality such as inspecting the status of a submitted request. Internally, we'll use this to submit a fix when detected.

What?

  • Add fixer.RepairExecutor.Submit(context.Context, entity.OpenIssue) (string, error).
  • Add queue configuration, the factory interface, generated GoMock mocks, and Bazel targets.
  • Document that a nonempty attempt ID means submission was accepted. Errors may follow acceptance, so callers must avoid automatic resubmission.

Follow-up layers will add first-failure selection, submission/history handling, and build-analysis trigger wiring.

Test Plan

  • Regenerate mocks and Bazel files with make mocks gazelle.
  • Run make fmt lint check-tidy check-gazelle.
  • Compile //stovepipe/extension/fixer:go_default_library and //stovepipe/extension/fixer/mock:go_default_library.

Revert Plan

Revert this change.

@mnoah1
mnoah1 force-pushed the mnoah1/stovepipe-repair-executor branch 2 times, most recently from 1a474a1 to d73907d Compare October 23, 2026 19:01
@mnoah1
mnoah1 marked this pull request as ready for review October 23, 2026 19:04
@mnoah1
mnoah1 requested review from a team, behinddwalls and sbalabanov as code owners October 23, 2026 19:04
@mnoah1
mnoah1 force-pushed the mnoah1/stovepipe-repair-executor branch 2 times, most recently from 965a1b3 to d56cc49 Compare October 23, 2026 19:34
@mnoah1
mnoah1 changed the base branch from main to codex/stovepipe-open-issue-list October 23, 2026 19:34
mnoah1 added a commit that referenced this pull request Oct 23, 2026
Summary:
Add a fix controller that accepts a build ID, pages through open issues, and
submits one matching issue to the configured RepairExecutor. Record submission
outcomes in logs and metrics, acknowledging provider errors because acceptance
may already have occurred.

Add fixrequest.Publish for issue tracking to call after persistence, using a
stable message identity per build. Builds on #929's executor contract.

Test Plan:
Run ./tool/bazel test //stovepipe/controller/fix:go_default_test
//stovepipe/core/fixrequest:go_default_test
//stovepipe/core/messagequeue:go_default_test --test_output=errors.
Run make fmt lint check-tidy check-gazelle.

Revert Plan:
Revert this commit.
mnoah1 and others added 2 commits October 23, 2026 19:44
Summary:
Add RepairExecutor.Submit accepting one OpenIssue. Define queue-scoped
factory resolution and submission acceptance/error semantics, with generated
mocks and Bazel targets.

Revert Plan:
Revert this commit.
@mnoah1
mnoah1 force-pushed the mnoah1/stovepipe-repair-executor branch from c146174 to cd39a5f Compare October 23, 2026 19:45
@mnoah1
mnoah1 changed the base branch from codex/stovepipe-open-issue-list to main October 23, 2026 19:45
mnoah1 added a commit that referenced this pull request Oct 23, 2026
Summary:
Add a fix controller that accepts a build ID, pages through open issues, and
submits one matching issue to the configured RepairExecutor. Record submission
outcomes in logs and metrics, acknowledging provider errors because acceptance
may already have occurred.

Add fixrequest.Publish for issue tracking to call after persistence, using a
stable message identity per build. Builds on #929's executor contract.

Test Plan:
Run ./tool/bazel test //stovepipe/controller/fix:go_default_test
//stovepipe/core/fixrequest:go_default_test
//stovepipe/core/messagequeue:go_default_test --test_output=errors.
Run make fmt lint check-tidy check-gazelle.

Revert Plan:
Revert this commit.
@mnoah1
mnoah1 enabled auto-merge October 23, 2026 19:46
@mnoah1
mnoah1 added this pull request to the merge queue Oct 23, 2026
Merged via the queue into main with commit fae9097 Oct 23, 2026
21 checks passed
@mnoah1
mnoah1 deleted the mnoah1/stovepipe-repair-executor branch October 23, 2026 20:05
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.

2 participants