Sync the fix-agent branch onto origin/main in a pre-script wrapper

オープン
#549 コメント 7 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
git, github, go
領域
ci-cd, devtools

調査の方向性

Read the wrapper files introduced by PR #532 and the pinned upstream scripts/pre-fix.sh, along with the Fullsend v0.56.1 harness configuration. Trace how the existing pre-script delegates and how the post-script handles pushes; check the behavior for stale branches and conflicting rebases. Done means a live /fs-fix run meets all four validation criteria, including stopping on conflict without force-pushing; this needs a trusted runner and a human decision.

索引モデルが issue の本文から書いたものです。

説明

blocked bug infra needs-human

What happened

Agents bring their own branch up to date, and they do it wrong.

  • PR #523: the agent ran a sync that placed copies of main commits on top of the pull request commits. The three-dot diff grew from one file to 28 files and +3227/-1924 lines. The copied fix: commits then inflated the iteration counter.
  • PR #496: the branch lagged main by 73 commits. Review runs crashed on the removed create_issues configuration key before the review agent started. The stale base also caused false artifact.operation_missing failures.

An agent cannot read main reliably, because the sandbox has no github.com egress.

Proposed change

Add a repository pre-script for the fix harness:

  1. Run the pinned upstream scripts/pre-fix.sh unchanged.
  2. Run git fetch origin main.
  3. Rebase the workspace onto origin/main.
  4. Push the result, or leave the push to the existing post-script.

Fullsend v0.56.1 allows one pre_script per harness. A local override replaces the base value, so the wrapper must delegate to the upstream script. PR #532 already uses this wrapper pattern for the cache bootstrap. Extend those files instead of adding a second pre-script.

Why a human must decide

  • The pre-script runs on the trusted runner and receives PUSH_TOKEN. It can rewrite the pull request branch.
  • A rebase can produce conflicts that need a resolution policy.
  • The behaviour cannot be verified in the sandbox. It needs one live /fs-fix run on a stale branch.

Validation criteria

  1. One live /fs-fix run on a branch that is behind main starts from a rebased workspace, and the pull request diff contains only the pull request files.
  2. No merge commit authored by fullsend-fix appears on the branch.
  3. The upstream pre-script still parses /fs-fix instructions and enforces the caps.
  4. A conflicting rebase stops the run with a clear message and does not force-push.

Related issues

  • Blocked by #524. PR #532 introduces the wrapper files this change extends.

(AI generated)

主要言語
Go
スター
7
フォーク
9
平均マージ
22時間 37分
マージ済み PR(30日)
118

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

redhat-et/ProtoBot のほかの issue

redhat-et/ProtoBot の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。