Skip to content

File the bug even if the upstream commits can't be listed. Fixes #435 - #436

Merged
tomrittervg merged 1 commit into
masterfrom
2026-10-20-tjr-file-bug-without-commit-list
Oct 20, 2026
Merged

tomrittervg merged 1 commit into
masterfrom
2026-10-20-tjr-file-bug-without-commit-list

Conversation

@tomrittervg

Copy link
Copy Markdown
Collaborator

Listing the upstream commits for a new bug's description means cloning the upstream repo. If that failed, the exception escaped _process_new_job after the job was created but before the bug was filed, leaving the job in CREATED with no bug. The next run cleaned it up as an unexpected state and marked it done, so the version was never reported. This happened to libvorbis when gitlab.xiph.org returned a 502.

Catch the failure and file the bug anyway, with a description that says the commits couldn't be fetched and includes the error. Also add cache_clear() to @memoize functions so tests can make check_for_update run again.

Listing the upstream commits for a new bug's description means cloning the
upstream repo. If that failed, the exception escaped _process_new_job after the
job was created but before the bug was filed, leaving the job in CREATED with no
bug. The next run cleaned it up as an unexpected state and marked it done, so
the version was never reported. This happened to libvorbis when
gitlab.xiph.org returned a 502.

Catch the failure and file the bug anyway, with a description that says the
commits couldn't be fetched and includes the error. Also add cache_clear() to
@memoize functions so tests can make check_for_update run again.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused fallback preserves bug filing and job handling, with regression coverage and no unresolved findings.

No open issues 🎉

What changed in this PR

Keeps vendoring updates reportable when upstream commit retrieval fails, rather than leaving jobs without bugs.

Changes:

  • File bugs with an explanatory fallback description when commit retrieval fails.
  • Expose memoization cache clearing for tests.
  • Add regression coverage for clone failures, including simultaneous vendoring failures.
File Description
tests/​functionality_utilities.py Allow simulated upstream clone failures.
tests/​functionality_all_platforms.py Test bug filing and job progression after failures.
tasktypes/​vendoring.py Continue bug filing without upstream commit details.
components/​utilities.py Expose cache_clear() on memoized functions.
components/​bugzilla.py Add the fallback bug-description template.

Review effort: Balanced

@tomrittervg
tomrittervg merged commit 6f55cdc into master Oct 20, 2026
17 checks passed
@tomrittervg
tomrittervg deleted the 2026-10-20-tjr-file-bug-without-commit-list branch October 20, 2026 15:11
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.

2 participants