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

Aperta
#549 7 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
git, github, go
Ambito
ci-cd, devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)

Lingua principale
Go
Stelle
7
Fork
9
Merge medio
22h 37m
PR unite (30g)
118

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di redhat-et/ProtoBot

Tutte le issue di redhat-et/ProtoBot

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.