Skip to content

fix(kanban): fail closed when projectItems truncation could hide the kanban card (#190) - #193

Merged
LukasWodka merged 1 commit into
developfrom
fix/190-projectitems-truncation-fail-closed
Aug 10, 2026
Merged

fix(kanban): fail closed when projectItems truncation could hide the kanban card (#190)#193
LukasWodka merged 1 commit into
developfrom
fix/190-projectitems-truncation-fail-closed

Conversation

@LukasWodka

@LukasWodkaLukasWodka commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Bugbot #190 (Medium). The projectItemstotalCount>20 guard in advance-deploy-env.yml only warned — unlike its sibling closingIssuesReferences guard, which sets RUN_FAILED. So if an issue is on >20 projects and its engineering-kanban card is beyond the first 20 we fetch, ITEM_ID is empty, the card is skipped as "not on project", and the run stays green — the silent-skip this guard was meant to close.

Fix

Moved the truncation check into the not-found branch and set RUN_FAILED there. We fail only when the card was actually not found AND the list was truncated (pi_total>20). A normal issue on <=20 projects still skips cleanly — no false failures (avoids the over-fail of an unconditional guard).

Closes the last fail-open in the drift-fix code (companion to #181).


Note

Low Risk
Workflow-only change to error handling when GraphQL projectItems is truncated; no app runtime or auth impact.

Overview
Closes a fail-open path in advance-deploy-env.yml when advancing closed issues linked to promoted PRs: if an issue’s engineering-kanban card isn’t in the first 20 projectItems returned, the step used to treat it as “not on project” and keep the run green.

The pi_total > 20 guard is moved into the missing ITEM_ID branch and sets RUN_FAILED, matching the sibling closingIssuesReferences truncation behavior. Issues on ≤20 projects still skip cleanly when they’re genuinely not on the project; only not-found + truncated list fails the run so a possibly lagging card isn’t silently ignored.

Reviewed by Cursor Bugbot for commit b15af8f. Bugbot is set up for automated code reviews on this repo. Configure here.

…kanban card
Bugbot .github#190 (Medium). The projectItems totalCount>20 guard only warned,
so if an issue is on >20 projects and its engineering-kanban card sits beyond
the first 20 we fetch, ITEM_ID comes back empty and the card is silently
skipped as "not on project" while the run stays green — the exact silent-skip
the guard was meant to close (the sibling closingIssuesReferences guard already
fails closed).
Move the truncation check into the not-found branch and set RUN_FAILED there:
we only fail when the card was actually not found AND the list was truncated
(pi_total>20), so a normal issue-on-<=20-projects still skips cleanly with no
false failures.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@LukasWodka
LukasWodka merged commit b04c241 into developAug 10, 2026
11 checks passed
@LukasWodka
LukasWodka deleted the fix/190-projectitems-truncation-fail-closed branch August 14, 2026 13:53
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@LukasWodka@saadqbal