Skip to content

[Dev][Archery][Crossbow] Queue.put() should use Job.queue setter #20456

Description

@asfimport

This is related to ARROW-18028.

Comment bot reports the following error with ARROW-18028:

#14409 (comment)


'NoneType' object has no attribute 'github_commit'
The Archery job run can be found at: https://github.com/apache/arrow/actions/runs/3246777470

https://github.com/apache/arrow/actions/runs/3246777470/jobs/5325931408#step:5:101


ERROR:archery:'NoneType' object has no attribute 'github_commit'
Traceback (most recent call last):
  File "/home/runner/work/arrow/arrow/arrow/dev/archery/archery/bot.py", line 153, in handle_issue_comment
    self.handler(command, issue=issue, pull_request=pull,
  File "/home/runner/work/arrow/arrow/arrow/dev/archery/archery/bot.py", line 56, in __call__
    return self.invoke(ctx)
  File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/site-packages/click/decorators.py", line 38, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/home/runner/work/arrow/arrow/arrow/dev/archery/archery/bot.py", line 276, in submit
    pull_request.create_issue_comment(report.show())
  File "/home/runner/work/arrow/arrow/arrow/dev/archery/archery/crossbow/reports.py", line 333, in show
    url=self.task_url(task)
  File "/home/runner/work/arrow/arrow/arrow/dev/archery/archery/crossbow/reports.py", line 69, in task_url
    if task.status().build_links:
  File "/home/runner/work/arrow/arrow/arrow/dev/archery/archery/crossbow/core.py", line 869, in status
    github_commit = self._queue.github_commit(self.commit)
AttributeError: 'NoneType' object has no attribute 'github_commit'

Reporter: Kouhei Sutou / @kou
Assignee: Kouhei Sutou / @kou

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-18047. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions