mozilla-releng / mozilla-releng/scriptworker
Integration tests for signal hendling
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5
- Forks
- 39
- Avg merge
- 4h 18m
- Merged PRs (30d)
- 6
Description
This is a follow up for https://github.com/mozilla-releng/scriptworker/pull/374#pullrequestreview-267417405
It would be great to have integration tests for signal handling. Example tests:
- run a script
- send SIGTERM
- verify it exits within
poll_interval
- run a script
- start a fake task
- send SIGTERM
- verify it cancels the task and exits within ??? seconds
- run a script
- send SIGUSR1
- verify it exits within
poll_interval
- run a script
- start a fake task
- send SIGUSR1
- verify it doesn't cancel the task
...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or existing tests are named; start by locating the signal-handling integration-test entry points and the script and fake-task setup. Exercise the listed SIGTERM and SIGUSR1 scenarios, including the unspecified cancellation timeout, and consider the work done when the expected exit and task-cancellation behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100