Skip to content

fix(github_graphql): skip pull requests that no longer resolve - #9439

Open
ahnazary wants to merge 1 commit into
apache:mainfrom
ahnazary:fix/github-graphql-skip-unresolvable-pr
Open

ahnazary wants to merge 1 commit into
apache:mainfrom
ahnazary:fix/github-graphql-skip-unresolvable-pr

Conversation

@ahnazary

@ahnazary ahnazary commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Treat Could not resolve to a PullRequest as an ignorable GraphQL data error, like the existing Issue case.
  • One deleted or App-hidden OPEN PR no longer fails Collect Pull Requests on every run; the rest of the batch is still refreshed.

Does this close any open issues?

Closes #9438

Refreshing stored OPEN pull requests fails the whole Collect Pull Requests
subtask when GitHub answers "Could not resolve to a PullRequest" for one of
them (deleted, or hidden from the GitHub App). The pipeline then fails on
every run. Treat it like the existing unresolvable-issue case so the other
pull requests in the batch are still collected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ahnazary
ahnazary marked this pull request as ready for review November 23, 2026 11:24
Copilot AI balanced review requested due to automatic review settings November 23, 2026 11:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the change to skip unresolved pull requests during GraphQL collection.

No open issues 🎉

What changed in this PR

This PR addresses #9438 by allowing DevLake’s GraphQL collector to skip pull requests that no longer resolve, rather than failing collection for the entire batch.

Changes:

  • Treat GitHub’s unresolved pull-request error as ignorable alongside existing issue errors.
  • Include the original error in skip warnings and clarify the helper’s documentation.
  • Add a unit-test assertion for the pull-request error message.
File Description
backend/​helpers/​pluginhelper/​api/​graphql_collector.go Recognizes unresolved pull-request errors and improves skip warnings and documentation.
backend/​helpers/​pluginhelper/​api/​graphql_collector_test.go Tests that unresolved pull-request errors are ignorable.

Review effort: Balanced

Sign up for free to 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.

[Bug][github_graphql] Collect Pull Requests fails every run when a stored OPEN PR no longer resolves

2 participants