Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ parts:
- git # for installing git source of pylxd
- libffi-dev # for cffi
- libssl-dev # for cryptography
- rust-all # for cryptography
- pkg-config # for cryptography
build-snaps:
- rustup # for cryptography
Comment thread
cbartz marked this conversation as resolved.
override-build: |
rustup default stable
craftctl default
bases:
- build-on:
- name: "ubuntu"
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This changelog documents user-relevant changes to the GitHub runner charm.

## 2025-11-11

- Added Grafana dashboard using Prometheus data source.

## 2025-08-27

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class GithubRunnerNotFoundError(Exception):


# Parameters of the function decorated with retry
ParamT = ParamSpec("ParamT")
ParamT = ParamSpec("ParamT") # pylint: disable=invalid-name
# Return type of the function decorated with retry
ReturnT = TypeVar("ReturnT")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,14 @@ def _parse_metrics_contents(metrics_contents_map: dict[Path, str | None]) -> _Pa
try:
pre_job_metrics = PreJobMetrics.parse_obj(json.loads(pre_job))
except (json.JSONDecodeError, ValidationError):
logger.warning("Corrupt pre-job metrics: %s")
logger.warning("Corrupt pre-job metrics: %s", pre_job)

post_job_metrics: PostJobMetrics | None = None
if post_job := metrics_contents_map.get(POST_JOB_METRICS_FILE_PATH, None):
try:
post_job_metrics = PostJobMetrics.parse_obj(json.loads(post_job))
except (json.JSONDecodeError, ValidationError):
logger.warning("Corrupt post-job metrics %s")
logger.warning("Corrupt post-job metrics %s", post_job)

return _ParsedMetricContents(
runner_installed_timestamp=runner_installed_timestamp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


# Parameters of the function decorated with retry
ParamT = ParamSpec("ParamT")
ParamT = ParamSpec("ParamT") # pylint: disable=invalid-name
# Return type of the function decorated with retry
ReturnT = TypeVar("ReturnT")

Expand Down
Loading
Loading