github / github/gh-stack

Stacked PR checks unrelated to the topmost PR are skipped

Đang mở
#379 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug topic: ci
Ngôn ngữ chính
Go
Star
1.5k
Fork
70
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
7

Mô tả

### 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by tracing how CI workflows are selected for a published stack and reproduce the issue with two stacked PRs that affect unrelated repository areas. Done means each PR in the stack runs workflows relevant to its own changes, including lower PRs when the topmost PR does not trigger them.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
go
Lĩnh vực
ci-cd
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
50/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.