Skip to content

Commit

Permalink
Merge branch 'main' into Thanhphan1147/ISD-820
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo-seijas authored Sep 12, 2023
2 parents f8b7d2b + 90c3da7 commit d9f0ec7
Show file tree
Hide file tree
Showing 11 changed files with 164 additions and 181 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
name: Integration test charm with no runner
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
juju: [3.1, 2.9]
steps:
Expand All @@ -31,6 +32,7 @@ jobs:
name: Integration test charm
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
juju: [3.1, 2.9]
steps:
Expand All @@ -54,6 +56,7 @@ jobs:
name: Integration test charm with fork repo
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
juju: [3.1, 2.9]
steps:
Expand All @@ -77,6 +80,7 @@ jobs:
name: Integration test charm scheduled events
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
juju: [3.1, 2.9]
steps:
Expand Down
10 changes: 2 additions & 8 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,8 @@ options:
Minutes between each reconciliation between the current state and the target state of the
runners. On reconciliation the charm polls the state of runners, such as, the number of
container runners, and see if actions are needed. A random delay of 25% is added. Changes to
this time interval will apply when next interval is triggered.
update-interval:
type: int
default: 60
description: >
Minutes between each check for new versions of the runner binary and services the charm
depends on. A random delay of 25% is added. Changes to the time interval will apply when next
interval is triggered.
this time interval will apply when next interval is triggered. Update will be applied to
packages and services used by the software.
test-mode:
type: string
description: >
Expand Down
15 changes: 3 additions & 12 deletions src-docs/charm.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Charm for creating and managing GitHub self-hosted runner instances.

---

<a href="../src/charm.py#L54"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/charm.py#L57"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `catch_charm_errors`

Expand All @@ -34,7 +34,7 @@ Catch common errors in charm.

---

<a href="../src/charm.py#L78"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/charm.py#L85"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `catch_action_errors`

Expand Down Expand Up @@ -63,7 +63,7 @@ Catch common errors in actions.
## <kbd>class</kbd> `GithubRunnerCharm`
Charm for managing GitHub self-hosted runners.

<a href="../src/charm.py#L113"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/charm.py#L124"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `__init__`

Expand Down Expand Up @@ -129,12 +129,3 @@ Event representing a periodic check to ensure runners are ok.



---

## <kbd>class</kbd> `UpdateDependenciesEvent`
Event representing a periodic check for new versions of the runner binary and services.





13 changes: 11 additions & 2 deletions src-docs/errors.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Error for missing juju configuration.

Attrs: configs: The missing configurations.

<a href="../src/errors.py#L45"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/errors.py#L49"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `__init__`

Expand All @@ -43,6 +43,15 @@ Construct the MissingConfigurationError.



---

## <kbd>class</kbd> `MissingRunnerBinaryError`
Error for missing runner binary.





---

## <kbd>class</kbd> `RunnerBinaryError`
Expand Down Expand Up @@ -113,7 +122,7 @@ Error for Subprocess calls.

Attrs: cmd: Command in list form. return_code: Return code of the subprocess. stdout: Content of stdout of the subprocess. stderr: Content of stderr of the subprocess.

<a href="../src/errors.py#L70"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/errors.py#L74"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `__init__`

Expand Down
14 changes: 7 additions & 7 deletions src-docs/runner_manager.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Used as a returned type to method querying runner information.
## <kbd>class</kbd> `RunnerManager`
Manage a group of runners according to configuration.

<a href="../src/runner_manager.py#L86"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/runner_manager.py#L87"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `__init__`

Expand Down Expand Up @@ -52,7 +52,7 @@ Construct RunnerManager object for creating and managing runners.

---

<a href="../src/runner_manager.py#L147"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/runner_manager.py#L148"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `check_runner_bin`

Expand All @@ -69,7 +69,7 @@ Check if runner binary exists.

---

<a href="../src/runner_manager.py#L392"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/runner_manager.py#L396"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `flush`

Expand All @@ -92,7 +92,7 @@ Remove existing runners.

---

<a href="../src/runner_manager.py#L260"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/runner_manager.py#L261"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `get_github_info`

Expand All @@ -109,7 +109,7 @@ Get information on the runners from GitHub.

---

<a href="../src/utilities.py#L155"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/utilities.py#L156"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `get_latest_runner_bin_url`

Expand Down Expand Up @@ -138,7 +138,7 @@ The runner binary URL changes when a new version is available.

---

<a href="../src/runner_manager.py#L289"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/runner_manager.py#L293"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `reconcile`

Expand All @@ -162,7 +162,7 @@ Bring runners in line with target.

---

<a href="../src/utilities.py#L193"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/utilities.py#L194"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `update_runner_bin`

Expand Down
Loading

0 comments on commit d9f0ec7

Please sign in to comment.