Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Stacked PR checks unrelated to the topmost PR are skipped

Ouverte
#379 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
50/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Calme
Stack technique
go
Domaine
ci-cd

Piste de recherche

Commencez par retracer la manière dont les workflows CI sont sélectionnés pour une stack publiée, puis reproduisez le problème avec deux PRs empilées qui concernent des zones sans rapport du dépôt. Le travail est considéré comme terminé lorsque chaque PR de la stack exécute les workflows pertinents pour ses propres modifications, y compris les PRs inférieures lorsque la PR au sommet ne les déclenche pas.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Go
Étoiles
1.5k
Forks
73
Merge moyen
1 j 8 h
PR mergées (30 j)
7

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de github/gh-stack

Toutes les issues de github/gh-stack

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.