Repository navigation
Setup a restart backoff for the github-runner-manager service - #647
Merged
Merged
Conversation
Collaborator
Author
|
Currently, integration test with juju deploy containers fails. |
yhaliaw
marked this pull request as ready for review
November 14, 2025 00:48
yhaliaw
requested review from
cbartz,
javierdelapuente and
yanksyoon
as code owners
November 14, 2025 00:48
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR configures systemd restart behavior for the github-runner-manager service to handle network instability more gracefully. The key change removes the restart limit and implements a progressive backoff strategy that starts with a 30-second delay and extends up to 10 minutes after 5 consecutive failures.
Key Changes:
- Removed restart limit (
StartLimitIntervalSec=0) to prevent the service from permanently stopping during network instability - Added restart backoff configuration with 30-second initial delay, 5-step progression, and 10-minute maximum delay
- Minor code formatting and linting improvements
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/manager_service.py | Added systemd restart configuration with backoff strategy |
| tests/integration/conftest.py | Reformatted function call for consistency |
| pyproject.toml | Added pylint good-names configuration |
| github-runner-manager/pyproject.toml | Added pylint good-names configuration and removed blank line |
| .github/workflows/docs.yaml | Removed trailing blank line |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applicable spec:
Overview
Rework the automatic restart of the github-runner-manager.
StartLimitIntervalSec.Rationale
We have observe the
StartLimitIntervalSecwas being triggered when the network is very unstable.This cause the systemd to not restart the github-runner-manager service.
Checklist
urgent,trivial,complex).github-runner-manager/pyproject.toml.The change should be transparent to the users.
The application is not updated in this PR.