Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Stacked PR checks unrelated to the topmost PR are skipped

Offen
#379 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
50/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
go
Bereich
ci-cd

Rechercherichtung

Beginne damit, nachzuverfolgen, wie CI-Workflows für einen veröffentlichten Stack ausgewählt werden, und reproduziere das Problem mit zwei gestapelten PRs, die voneinander unabhängige Bereiche des Repositorys betreffen. Als erledigt gilt die Aufgabe, wenn jeder PR im Stack die für seine eigenen Änderungen relevanten Workflows ausführt, einschließlich darunterliegender PRs, wenn der oberste PR diese nicht auslöst.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug topic: ci
What happened

For a stack of pull requests, CI workflows are skipped when they are unrelated to the topmost PR in the stack, even if they are relevant to a lower PR.

Reproduction
  1. Configure separate CI workflows that run for changes to different parts of the repository.
  2. Create PR A from the trunk branch with a change that should trigger one of those workflows.
  3. Create PR B on top of A with an unrelated change that does not trigger that workflow.
  4. Publish A and B as a stack.
  5. Observe that the workflow relevant to PR A is skipped because it is unrelated to the topmost PR, PR B.
Expected behavior

Each PR in the stack should run the CI workflows relevant to its own changes.

Actual behavior

CI workflows are selected based on the topmost PR in the stack. Workflows unrelated to that PR are skipped across the stack, including workflows that are relevant to lower PRs.

Example consequence

PR A changes a database migration and should trigger migration tests. PR B adds an unrelated application change on top. If the migration workflow is unrelated to PR B, it is skipped, leaving PR A without the CI coverage relevant to its changes.

This is distinct from #319, where stale or missing merge refs prevent pull request workflows from running at all.

Vorherrschende Sprache
Go
Sterne
1.5k
Forks
73
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
7

Beitragsleitfaden

Beitragsleitfaden öffnen

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 github/gh-stack

Alle Issues in github/gh-stack

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

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