You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Dev][Archery] crossbow notify-token-expiration fails with TypeError and drops its sender/recipient options #55269
Describe the bug, including details regarding any error messages, version, and platform.
archery crossbow notify-token-expiration raises a TypeError before it builds a message, so the command cannot run at all, and its --sender-name, --sender-email and --recipient-email options are never passed on.
and Report.__init__ raises ValueError(f'Missing keyword argument {field}') for anything missing, so even written as TokenExpirationEmailReport(report=report) it fails with ValueError: Missing keyword argument sender_name. EmailReport.render() needs those three to set the From and To headers, and ReportUtils.send_email() takes no addresses of its own — it just hands the rendered message to smtplib.
Where it came from
288cd43bdc (GH-48623, #48624, first released in 24.0.0) replaced
with the positional call above when it introduced the TokenExpirationEmailReport subclass. The sibling nightly-report command was converted in the same commit and still passes all four keyword arguments, so only this command is affected.
Nothing in the repository invokes notify-token-expiration, which is presumably why this has gone unnoticed.
changed the title [-][Archery] crossbow notify-token-expiration fails with TypeError and drops its sender/recipient options[/-][+][Dev][Archery] crossbow notify-token-expiration fails with TypeError and drops its sender/recipient options[/+]on Oct 26, 2026
Activity
[-][Archery] crossbow notify-token-expiration fails with TypeError and drops its sender/recipient options[/-][+][Dev][Archery] crossbow notify-token-expiration fails with TypeError and drops its sender/recipient options[/+]