Skip to content

Reports failing with SMTP errors #95

@jonkeane

Description

@jonkeane

Our reporting has started failing (I noticed this from the dashboard, but you can even see in the commits our CSVs of results haven't been updating.

It looks like we're getting an SMPT auth failure:

fatal: not a git repository (or any of the parent directories): .git
Sending report for job nightly-tests-2025-04-29-0...
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.10/x64/bin/archery", line 8, in <module>
    sys.exit(archery())
             ^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/click/core.py", line 14[43](https://github.com/ursacomputing/crossbow/actions/runs/14724826651/job/41325177307#step:7:44), in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/click/decorators.py", line [45](https://github.com/ursacomputing/crossbow/actions/runs/14724826651/job/41325177307#step:7:46), in new_func
    return f(get_current_context().obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/crossbow/cli.py", line 400, in report
    ReportUtils.send_email(
  File "/home/runner/work/crossbow/crossbow/arrow/dev/archery/archery/crossbow/reports.py", line 253, in send_email
    server.login(smtp_user, smtp_password)
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/smtplib.py", line 7[50](https://github.com/ursacomputing/crossbow/actions/runs/14724826651/job/41325177307#step:7:51), in login
    raise last_exception
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/smtplib.py", line 739, in login
    (code, resp) = self.auth(
                   ^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/smtplib.py", line 662, in auth
    raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: ([53](https://github.com/ursacomputing/crossbow/actions/runs/14724826651/job/41325177307#step:7:54)5, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8  https://support.google.com/mail/?p=BadCredentials af79cd13be357-7c958d86d65sm711606185a.86 - gsmtp')

@raulcd Do you know where this goes / what we might need to do to update that?

Alternatively (or in addition) I might try and adjust the job to not fail on email failure, since the reports don't all require the email to be sent to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions