keylime / keylime/rust-keylime
Keylime-bot crashes on pull-request-responsibility check
- Dominant language
- Rust
- Stars
- 162
- Forks
- 76
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 3
Description
As seen in PR https://github.com/keylime/rust-keylime/pull/1150, the job `[keylime-bot / pull-request-responsibility (pull_request_target)](https://github.com/keylime/rust-keylime/actions/runs/19503631530/job/55823854469?pr=1150)
keylime-bot / pull-request-responsibility (pull_request_target)` crashes:
```
--- COPY-LABELS-LINKED ---
/home/runner/work/_actions/actions-automation/pull-request-responsibility/main/src/copy-labels-linked:78: SyntaxWarning: invalid escape sequence '\s'
regex = re.compile("(close[sd]?|fix|fixe[sd]?|resolve[sd]?)\s*:?\s+#(\d+)", re.I)
keylime/rust-keylime#1150:
Run if [[ "request,assign,copy-labels-linked" =~ (^|,)"request"(,|$) ]]; then
--- REQUEST ---
Traceback (most recent call last):
File "/home/runner/work/_actions/actions-automation/pull-request-responsibility/main/src/request", line 205, in
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 160, in auto_request
migrate(requesting, suggested, availability, len(requesting) + 1) # Get one 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).
Error: Process completed with exit code 1.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the pull-request-responsibility action's src/request entry point, especially migrate at line 88, and compare its input with the Python 3.12 traceback from PR 1150. Re-run the pull-request-responsibility job with a comparable pull request; done means the request step completes without the TypeError and the workflow finishes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, python
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100