Skip to content

Handle 404 from Bugzilla user lookup in probe expiry alerts - #1075

Merged
akkomar merged 1 commit into
mainfrom
expiry_alert_fix
Sep 14, 2026
Merged

akkomar merged 1 commit into
mainfrom
expiry_alert_fix

Conversation

@akkomar

@akkomar akkomar commented Sep 13, 2026

Copy link
Copy Markdown
Member

Bugzilla now returns HTTP 404 (still with error code 51) when a user does not exist. check_bugzilla_user_exists only handled 400, so the first probe with an alert email that has no Bugzilla account (passwords-dev@mozilla.org, PWMGR_IMPORT_LOGINS_FROM_FILE_CATEGORICAL expiring in 160) made probe-expiry-alerts fail with an unhandled HTTPError. The task has been failing daily since 2026-09-10.

Treat code 51 as "user not found" for both 400 and 404, and cover both status codes in the test.

Bugzilla now returns HTTP 404 (still with error code 51) when a user
does not exist. check_bugzilla_user_exists only handled 400, so the
first probe with an alert email that has no Bugzilla account
(passwords-dev@mozilla.org, PWMGR_IMPORT_LOGINS_FROM_FILE_CATEGORICAL
expiring in 160) made probe-expiry-alerts fail with an unhandled
HTTPError. The task has been failing daily since 2026-09-10.

Treat code 51 as "user not found" for both 400 and 404, and cover
both status codes in the test.
@akkomar
akkomar requested a review from BenWu September 13, 2026 16:32
@akkomar
akkomar merged commit a2ad720 into main Sep 14, 2026
9 checks passed
@akkomar
akkomar deleted the expiry_alert_fix branch September 14, 2026 15:27
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