fix: harden linked issue validation - #881
Conversation
Signed-off-by: Nabin Mulepati <nmulepati@nvidia.com>
Greptile SummaryThe PR hardens linked-issue validation and resolves the previously reported stale-check behavior.
|
| Filename | Overview |
|---|---|
| .github/workflows/pr-linked-issue.yml | Adds issue-state validation, event-driven rechecks, aligned first-reference matching, and paginated bot-comment lookup; the prior stale-check issue is fixed. |
| CONTRIBUTING.md | Accurately documents open-and-triaged issue validation and the workflow’s advisory status unless repository rules require it. |
Reviews (2): Last reviewed commit: "Handle linked issue state changes" | Re-trigger Greptile
| github.repository_owner == 'NVIDIA-NeMo' | ||
| && github.event_name == 'issues' | ||
| && github.event.label.name == 'triaged' | ||
| && github.event.issue.state == 'open' | ||
| runs-on: ubuntu-latest |
There was a problem hiding this comment.
Issue state changes leave stale checks
When a linked issue is closed or reopened after its PR check completes, neither transition triggers revalidation, leaving a successful check green for a closed issue or a prior failure red for a reopened issue until an unrelated PR event occurs.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/pr-linked-issue.yml
Line: 239-243
Comment:
**Issue state changes leave stale checks**
When a linked issue is closed or reopened after its PR check completes, neither transition triggers revalidation, leaving a successful check green for a closed issue or a prior failure red for a reopened issue until an unrelated PR event occurs.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Code Review: PR #881 —
|
Signed-off-by: Nabin Mulepati <nmulepati@nvidia.com>
Summary
triagedLinked Issue Check / checkRoot cause
The workflow validated the
triagedlabel without checking issue state, did not re-run when issue validity later changed, used different reference-selection rules between validation and retriggering, and only inspected the first page of PR comments. The contribution guidance also described the check as a required merge gate even though the currentmainprotection does not require that status context.These issues were identified while reviewing and fixing the corresponding workflow in NVIDIA-NeMo/DataDesignerPlugins#82.
Validation
.github/workflows/pr-linked-issue.ymlwithyqbash -nacross every embedded workflow shell blockjqfixturesgit diff --checkmake check-allmake test— 4,020 passed, 1 skipped