Skip to content

Traceback when using the action in rust-keylime repository #4

Description

@ansasaki

When the workflow is triggered by a new pull-request, the job fails with the following trace back:

Traceback (most recent call last):
  File "/home/runner/work/_actions/actions-automation/pull-request-responsibility/main/src/request", line 205, in <module>
    main()
  File "/home/runner/work/_actions/actions-automation/pull-request-responsibility/main/src/request", line 202, in main
    auto_request(pr=pr, org=org, token=token, team_name=team_name, num_to_request=num_to_request)
  File "/home/runner/work/_actions/actions-automation/pull-request-responsibility/main/src/request", line 161, in auto_request
    migrate(requesting, reviewers, availability, int(num_to_request)) # Get some non-suggested.
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/_actions/actions-automation/pull-request-responsibility/main/src/request", line 88, in migrate
    one = random.sample(src, 1)[0]
          ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/random.py", line 413, in sample
    raise TypeError("Population must be a sequence.  "
TypeError: Population must be a sequence.  For dicts or sets, use sorted(d).

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