Hackbot agent failed to publish source changes

Offen
#7,589 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
git, python
Bereich
devtools, tooling

Rechercherichtung

Start with hackbot_runtime/changes.py, especially _git and _has_uncommitted at the stack trace locations, and inspect how commit_all obtains and uses the repository path. Reproduce the failed git status --porcelain call in the Hackbot agent environment and identify why Git exits with status 128. Done means the agent can collect and publish source changes successfully in that scenario.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

hackbot

Sentry Issue: HACKBOT-AGENTS-S

CalledProcessError: Command '['git', '-C', '/workspace/firefox', 'status', '--porcelain']' returned non-zero exit status 128.
(2 additional frame(s) were not displayed)
...
  File "hackbot_runtime/changes.py", line 353, in collect
    wrapped = commit_all(repo, message)
  File "hackbot_runtime/changes.py", line 105, in commit_all
    if not _has_uncommitted(repo):
  File "hackbot_runtime/changes.py", line 91, in _has_uncommitted
    return bool(_git(repo, "status", "--porcelain").strip())
  File "hackbot_runtime/changes.py", line 49, in _git
    return subprocess.run(
  File "subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,

Failed to publish source changes
Vorherrschende Sprache
Python
Sterne
580
Forks
373
Ø Merge
2 T. 14 Std.
Gemergte PRs (30 T.)
159

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus mozilla/bugbug

Alle Issues in mozilla/bugbug

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.